Commit 834de5c
mtd: spi-nor: Fix the disabling of write protection at init
spi_nor_spansion_clear_sr_bp() depends on spansion_quad_enable().
While spansion_quad_enable() is selected as default when
initializing the flash parameters, the nor->quad_enable() method
can be overwritten later on when parsing BFPT.
Select the write protection disable mechanism at spi_nor_init() time,
when the nor->quad_enable() method is already known.
Fixes: 191f5c2 ("mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Richard Weinberger <richard@nod.at>1 parent d45331b commit 834de5c
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3780 | 3780 | | |
3781 | 3781 | | |
3782 | 3782 | | |
3783 | | - | |
3784 | | - | |
3785 | 3783 | | |
3786 | 3784 | | |
3787 | 3785 | | |
| |||
4035 | 4033 | | |
4036 | 4034 | | |
4037 | 4035 | | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
4038 | 4039 | | |
4039 | 4040 | | |
4040 | 4041 | | |
| |||
0 commit comments