Skip to content
Unverified Commit 18d7d01a authored by Amit Kumar Mahapatra's avatar Amit Kumar Mahapatra Committed by Tudor Ambarus
Browse files

mtd: spi-nor: Avoid setting SRWD bit in SR if WP# signal not connected



Setting the status register write disable (SRWD) bit in the status
register (SR) with WP# signal of the flash left floating or wrongly tied to
GND (that includes internal pull-downs), will configure the SR permanently
as read-only. If WP# signal is left floating or wrongly tied to GND, avoid
setting SRWD bit while writing the SR during flash protection.

Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Reviewed-by: default avatarMichael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20230630142233.63585-3-amit.kumar-mahapatra@amd.com


Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
parent cfc2928c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment