diff options
author | Rouven Behr <u-boot@behr-iss.de> | 2016-04-10 13:38:13 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2016-04-13 13:43:37 +0200 |
commit | 7570a0cc7524ed5818b92a35f00a3fd10b33bc65 (patch) | |
tree | 9be42d056248848b80ea85fa604ff07440b9fbc2 /drivers/mtd | |
parent | 39fbd987164336adc2ff7e5ab7a4268b8dcdee92 (diff) | |
download | u-boot-imx-7570a0cc7524ed5818b92a35f00a3fd10b33bc65.zip u-boot-imx-7570a0cc7524ed5818b92a35f00a3fd10b33bc65.tar.gz u-boot-imx-7570a0cc7524ed5818b92a35f00a3fd10b33bc65.tar.bz2 |
mtd: cfi: Unlock current sector instead of sector 0 before buffered write
Unlock current sector instead of sector 0 before buffered write.
[Patch subject and commit text slightly reworded, Stefan]
Signed-off-by: Rouven Behr <u-boot@behr-iss.de>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/cfi_flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 18831c6..8ccaff0 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -979,7 +979,7 @@ static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp, case CFI_CMDSET_AMD_STANDARD: case CFI_CMDSET_AMD_EXTENDED: - flash_unlock_seq(info,0); + flash_unlock_seq(info, sector); #ifdef CONFIG_FLASH_SPANSION_S29WS_N offset = ((unsigned long)dst - info->start[sector]) >> shift; |