diff options
author | Tom Rini <trini@konsulko.com> | 2018-06-06 07:16:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-06-06 07:16:43 -0400 |
commit | 5b2e9a8cf98c0c074a45d497136af63d29b62fff (patch) | |
tree | c8967389aa70e922c58f6f1af14c976ceba57815 /drivers/mtd/spi/spi_flash.c | |
parent | 6b6255cd8a7752b95ec6ea3d76d446c5b42cf64d (diff) | |
parent | b1f2b72e39465f2d4582bb4d8c426489ee94e2d9 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r-- | drivers/mtd/spi/spi_flash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 0ed23175547..c1591242591 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -128,6 +128,7 @@ static int clean_bar(struct spi_flash *flash) if (flash->bank_curr == 0) return 0; cmd = flash->bank_write_cmd; + flash->bank_curr = 0; return spi_flash_write_common(flash, &cmd, 1, &bank_sel, 1); } |