]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: cfi_cmdset_0002: Split do_write_oneword() to reduce exit paths
authorTokunori Ikegami <ikegami.t@gmail.com>
Mon, 5 Aug 2019 19:03:25 +0000 (04:03 +0900)
committerVignesh Raghavendra <vigneshr@ti.com>
Tue, 27 Aug 2019 12:25:53 +0000 (17:55 +0530)
commit0bcf880b062ef88d144ffe90918c56dd11e3d935
treec37f5607bb17bf06869a6f5e6386e001e4ccfb1c
parent6beb3ea746db88904a5ab8f2cc87837489e46612
mtd: cfi_cmdset_0002: Split do_write_oneword() to reduce exit paths

The do_write_oneword_done() is called twice at the exit paths.
By splitting the retry functionality it can be reduced to call once.

Cc: Fabio Bettoni <fbettoni@gmail.com>
Co: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/chips/cfi_cmdset_0002.c