aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/microchip-spi.c
diff options
context:
space:
mode:
authorJakub Czapiga <[email protected]>2025-07-25 12:25:42 +0000
committerMark Brown <[email protected]>2025-07-25 12:44:36 +0000
commit87aa3c8d8c4aa2e2567fe04126d14eb9fde815e5 (patch)
tree0d74573b14f2822b57a54623acf3a05b3683b8e6 /drivers/fpga/microchip-spi.c
parentspi: sophgo: Add SPI NOR controller for SG2042 (diff)
downloadkernel-87aa3c8d8c4aa2e2567fe04126d14eb9fde815e5.tar.gz
kernel-87aa3c8d8c4aa2e2567fe04126d14eb9fde815e5.zip
spi: intel: Allow writeable MTD partition with module param
The MTD device is blocked from writing to the SPI-NOR chip if any region of it is write-protected, even if "writeable=1" module parameter is set. Add ability to bypass this behaviour by introducing new module parameter "ignore_protestion_status" which allows to rely on the write protection mechanism of SPI-NOR chip itself, which most modern chips (since the 1990'+) have already implemented. Any erase/write operations performed on the write-protected section will be rejected by the chip. Signed-off-by: Jakub Czapiga <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions