Skip to content

Commit 1c6af10

Browse files
Amit Kumar Mahapatramichalsimek
authored andcommitted
mtd: spi-nor: gigadevice: Disable 16bit SR operation for gd25lx256e flash
Gigadevice gd25lx256e flash doesn't support 16bit Status Register(SR) read/write operations, but during flash lock/unlock spi-nor issues 16Bit SR operations that results in flash protection failure. Disable 16bit SR read/write for gd25lx256e in spi-nor fixups. Fixes: 9cc5feb ("mtd: spi-nor: gigadevice: Add support for GD25LX256E") Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
1 parent 4cce023 commit 1c6af10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/spi-nor/gigadevice.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ static void gd25lx256e_default_init(struct spi_nor *nor)
110110
{
111111
struct spi_nor_flash_parameter *params = spi_nor_get_params(nor, 0);
112112

113+
nor->flags &= ~SNOR_F_HAS_16BIT_SR;
113114
params->set_octal_dtr = spi_nor_gigadevice_octal_dtr_enable;
114115
params->set_4byte_addr_mode = gd25lx256e_set_4byte_addr_mode;
115116
}

0 commit comments

Comments
 (0)