Currently the driver tries to disable the BIOS write protection automatically even if this is not what the user wants. For this reason modify the driver so that by default it does not touch the write protection. Only if specifically asked by the user (setting writeable=1 command line parameter) the driver tries to disable the BIOS write protection.
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -19,11 +19,13 @@ enum intel_spi_type { · 18 unmodified lines | ||
| 19 | 19 | /** |
| 20 | 20 | * struct intel_spi_boardinfo - Board specific data for Intel SPI driver |
| 21 | 21 | * @type: Type which this controller is compatible with |
| 22 | − * @writeable: The chip is writeable | |
| 22 | + * @set_writeable: Try to make the chip writeable (optional) | |
| 23 | + * @data: Data to be passed to @set_writeable can be %NULL | |
| 23 | 24 | */ |
| 24 | 25 | struct intel_spi_boardinfo { |
| 25 | 26 | enum intel_spi_type type; |
| 26 | − bool writeable; | |
| 27 | + bool (*set_writeable)(void __iomem *base, void *data); | |
| 28 | + void *data; | |
| 27 | 29 | }; |
| 28 | 30 | |
| 29 | 31 | #endif /* INTEL_SPI_PDATA_H */ |