Skip to contentSkip to conversation

spi-nor: intel-spi: Remove EXPERT dependency

PATCH Applied Bin Meng 4 participants 4 messages Oct 24, 2017

Subsystems (2)
lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 spi-nor: intel-spi: Remove EXPERT dependency

The idea to have the intel-spi driver dependent on EXPERT was exactly because we did not want ordinary users playing with the device and inadvertently overwrite their BIOSes (if it is not protected). This seems to be superfluous hence remove it.

---

 drivers/mtd/spi-nor/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/spi-nor/Kconfig +2 -2
index abf453a..be7cfb9 100644
@@ -90,7 +90,7 @@ config SPI_INTEL_SPI
 	tristate
 
 config SPI_INTEL_SPI_PCI
-	tristate "Intel PCH/PCU SPI flash PCI driver" if EXPERT
+	tristate "Intel PCH/PCU SPI flash PCI driver"
 	depends on X86 && PCI
 	select SPI_INTEL_SPI
 	help
@@ -106,7 +106,7 @@ config SPI_INTEL_SPI_PCI
 	  will be called intel-spi-pci.
 
 config SPI_INTEL_SPI_PLATFORM
-	tristate "Intel PCH/PCU SPI flash platform driver" if EXPERT
+	tristate "Intel PCH/PCU SPI flash platform driver"
 	depends on X86 && PCI
 	select SPI_INTEL_SPI
 	select LPC_ICH
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#2 lore raw
In reply to Bin Meng
Quoted 7 lines · Bin Meng

The idea to have the intel-spi driver dependent on EXPERT was exactly because we did not want ordinary users playing with the device and inadvertently overwrite their BIOSes (if it is not protected). This seems to be superfluous hence remove it.

Thansk for cleaning this up!

#3 lore raw
In reply to Bin Meng

Le 24/10/2017 à 09:40, Bin Meng a écrit :

Quoted 7 lines

The idea to have the intel-spi driver dependent on EXPERT was exactly because we did not want ordinary users playing with the device and inadvertently overwrite their BIOSes (if it is not protected). This seems to be superfluous hence remove it.

Applied to the spi-nor/next branch of l2-mtd (reworked a little bit since the original patch depends on "spi-nor: intel-spi: Fix Kconfig dependency to LPC_ICH", see below).

Thanks!

Quoted 19 lines

---

 drivers/mtd/spi-nor/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/spi-nor/Kconfig +1 -1
index abf453a..be7cfb9 100644
@@ -90,7 +90,7 @@ config SPI_INTEL_SPI
 	tristate
 
 config SPI_INTEL_SPI_PCI
-	tristate "Intel PCH/PCU SPI flash PCI driver" if EXPERT
+	tristate "Intel PCH/PCU SPI flash PCI driver"
 	depends on X86 && PCI
 	select SPI_INTEL_SPI
 	help

drivers/mtd/spi-nor/Kconfig config SPI_INTEL_SPI_PCI · line 110

Quoted 6 lines
drivers/mtd/spi-nor/Kconfig +1 -1
@@ -106,7 +106,7 @@ config SPI_INTEL_SPI_PCI
 	  will be called intel-spi-pci.
 
 config SPI_INTEL_SPI_PLATFORM
-	tristate "Intel PCH/PCU SPI flash platform driver" if EXPERT
+	tristate "Intel PCH/PCU SPI flash platform driver"
 	depends on X86 && PCI

removed " && PCI"

drivers/mtd/spi-nor/Kconfig config SPI_INTEL_SPI_PCI · line 112

Quoted 2 lines
drivers/mtd/spi-nor/Kconfig +0 -0
 	select SPI_INTEL_SPI
 	select LPC_ICH

removed "select LPC_ICH"

Quoted 1 line