Skip to contentSkip to conversation

GPIO_SCH and I2C_SCH: select MFD_SUPPORT to eliminate kconfig warnings

PATCH In review Randy Dunlap 3 participants 4 messages Dec 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 GPIO_SCH and I2C_SCH: select MFD_SUPPORT to eliminate kconfig warnings

From: Randy Dunlap <[email protected]>

I2C_ISCH and GPIO_SCH need to select MFD_SUPPORT so that the dependency tree hierarchy is satisfied. This eliminates the kconfig warning:

warning: (I2C_ISCH && I2C && PCI || GPIO_SCH && GPIOLIB && PCI) selects LPC_SCH which has unmet direct dependencies (MFD_SUPPORT && PCI)

---
 drivers/gpio/Kconfig       |    1 +
 drivers/i2c/busses/Kconfig |    1 +
 2 files changed, 2 insertions(+)
drivers/gpio/Kconfig +1 -0
@@ -102,6 +102,7 @@ config GPIO_VR41XX
 config GPIO_SCH
 	tristate "Intel SCH GPIO"
 	depends on GPIOLIB && PCI
+	select MFD_SUPPORT
 	select MFD_CORE
 	select LPC_SCH
 	help
drivers/i2c/busses/Kconfig +1 -0
@@ -107,6 +107,7 @@ config I2C_I801
 config I2C_ISCH
 	tristate "Intel SCH SMBus 1.0"
 	depends on PCI
+	select MFD_SUPPORT
 	select MFD_CORE
 	select LPC_SCH
 	help
#1 lore raw

Hi Randy,

Quoted 28 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

I2C_ISCH and GPIO_SCH need to select MFD_SUPPORT so that the dependency tree hierarchy is satisfied. This eliminates the kconfig warning:

warning: (I2C_ISCH && I2C && PCI || GPIO_SCH && GPIOLIB && PCI) selects LPC_SCH which has unmet direct dependencies (MFD_SUPPORT && PCI)

---
 drivers/gpio/Kconfig       |    1 +
 drivers/i2c/busses/Kconfig |    1 +
 2 files changed, 2 insertions(+)
drivers/gpio/Kconfig +1 -0
@@ -102,6 +102,7 @@ config GPIO_VR41XX
 config GPIO_SCH
 	tristate "Intel SCH GPIO"
 	depends on GPIOLIB && PCI
+	select MFD_SUPPORT
 	select MFD_CORE
 	select LPC_SCH
 	help

drivers/i2c/busses/Kconfig config I2C_I801 · line 113

Quoted 7 lines
drivers/i2c/busses/Kconfig +1 -0
@@ -107,6 +107,7 @@ config I2C_I801
 config I2C_ISCH
 	tristate "Intel SCH SMBus 1.0"
 	depends on PCI
+	select MFD_SUPPORT
 	select MFD_CORE
 	select LPC_SCH
 	help

It seems wrong to have to select both MFD_SUPPORT and MFD_CORE. Can't the MFD subsystem be cleaned up so that subdrivers have a single symbol to select beyond their own?

I don't quite get the point of MFD_CORE. MFD_SUPPORT could be made tristate, and MFD_CORE dropped (and then MFD_SUPPORT renamed to MFD_CORE to minimize the changes.) This is exactly how I2C support is implemented, for example.

Signature · 1 line
Jean Delvare
#2 lore raw
Quoted 43 lines · Jean Delvare

Hi Randy,

Quoted 28 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

I2C_ISCH and GPIO_SCH need to select MFD_SUPPORT so that the dependency tree hierarchy is satisfied. This eliminates the kconfig warning:

warning: (I2C_ISCH && I2C && PCI || GPIO_SCH && GPIOLIB && PCI) selects LPC_SCH which has unmet direct dependencies (MFD_SUPPORT && PCI)

---
 drivers/gpio/Kconfig       |    1 +
 drivers/i2c/busses/Kconfig |    1 +
 2 files changed, 2 insertions(+)
drivers/gpio/Kconfig +1 -0
@@ -102,6 +102,7 @@ config GPIO_VR41XX
 config GPIO_SCH
 	tristate "Intel SCH GPIO"
 	depends on GPIOLIB && PCI
+	select MFD_SUPPORT
 	select MFD_CORE
 	select LPC_SCH
 	help

drivers/i2c/busses/Kconfig config I2C_I801 · line 113

Quoted 7 lines
drivers/i2c/busses/Kconfig +1 -0
@@ -107,6 +107,7 @@ config I2C_I801
 config I2C_ISCH
 	tristate "Intel SCH SMBus 1.0"
 	depends on PCI
+	select MFD_SUPPORT
 	select MFD_CORE
 	select LPC_SCH
 	help

It seems wrong to have to select both MFD_SUPPORT and MFD_CORE. Can't the MFD subsystem be cleaned up so that subdrivers have a single symbol to select beyond their own?

Quoted 4 lines

I don't quite get the point of MFD_CORE. MFD_SUPPORT could be made tristate, and MFD_CORE dropped (and then MFD_SUPPORT renamed to MFD_CORE to minimize the changes.) This is exactly how I2C support is implemented, for example.

OK, I'll look into that. Thanks.

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#3 lore raw
Quoted 4 lines · Randy Dunlap
Quoted 3 lines · Jean Delvare

Hi Randy,

On Tue, 14 Dec 2010 16:26:56 -0800, Randy Dunlap wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

From: Randy Dunlap <[email protected]>

I2C_ISCH and GPIO_SCH need to select MFD_SUPPORT so that the dependency tree hierarchy is satisfied. This eliminates the kconfig warning:

warning: (I2C_ISCH && I2C && PCI || GPIO_SCH && GPIOLIB && PCI) selects LPC_SCH which has unmet direct dependencies (MFD_SUPPORT && PCI)

Hmm, it seems that MFD_SUPPORT enables MFD_CORE, and as such, I don't think MFD_CORE can be selected without the MFD_SUPPORT.

My view would be to add MFD_NEEDED, or NEEDS_MFD which would force the MFD_SUPPORT and MFD_CORE on in one go.

Signature · 3 lines
Ben Dooks, [email protected], http://www.fluff.org/ben/

Large Hadron Colada: A large Pina Colada that makes the universe disappear.