Commit 87aa3c8
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]>1 parent f54b69a commit 87aa3c8
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
1248 | 1253 | | |
1249 | 1254 | | |
1250 | 1255 | | |
1251 | | - | |
1252 | | - | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1253 | 1259 | | |
1254 | 1260 | | |
1255 | 1261 | | |
1256 | 1262 | | |
1257 | | - | |
| 1263 | + | |
| 1264 | + | |
1258 | 1265 | | |
1259 | 1266 | | |
1260 | 1267 | | |
| |||
0 commit comments