]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: spi: Set the current bank of flash to zero after doing clear bar
authorVipul Kumar <vipul.kumar@xilinx.com>
Fri, 20 Apr 2018 05:06:23 +0000 (10:36 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 11:18:02 +0000 (13:18 +0200)
commit9c61ac52c5b51e85b51cd162fb5e338c0a2428de
tree751fbf60e7611fc7499ca55ec2d52600a4b018e9
parent54cc0dd036bba10b528be0765f5c7f3443a10073
mtd: spi: Set the current bank of flash to zero after doing clear bar

clean_bar() function selecting bank zero but not setting the
flash current bank to zero. After erase operation, bank zero is selected
but the flash current bank is pointing to bank one. So, during
write operation, while trying to write bank one, it actually writes in
bank zero.
This patch fixed this issue by setting the current bank of flash
to zero after doing clear_bar() after erase, write and read operations.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/spi/spi_flash.c