> The Toshiba TC9563 GPIO controller is embedded in the Toshiba TC9563 > PCIe switch, and its auxiliary device is instantiated by the TC9563 PCI > Power Control driver. Hence make GPIO_TC9563 depend on > PCI_PWRCTRL_TC9563, to prevent asking the user about the GPIO driver > when configuring a kernel without TC9563 PCI Power Control support. > > Drop the dependency of PCI_PWRCTRL_TC9563 on GPIO_TC9563, which > represents the inverse and wrong relationship. > Let PCI_PWRCTRL_TC9563 select AUXILIARY_BUS, as this is no longer > guaranteed through GPIO_TC9563. > > Fixes: eea9a072221d97ab ("PCI/pwrctrl: tc9563: Add GPIO auxiliary device support") > Fixes: 81ec9c22d06aea92 ("gpio: tc9563: Add support for the embedded GPIO controller") > Signed-off-by: Geert Uytterhoeven > --- > v2: > - Let PCI_PWRCTRL_TC9563 select AUXILIARY_BUS. > --- > drivers/gpio/Kconfig | 1 + > drivers/pci/pwrctrl/Kconfig | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 5d3f076c539b3a64..c5556b1638b8c113 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -1893,6 +1893,7 @@ endmenu > > config GPIO_TC9563 > tristate "Toshiba TC9563 GPIO support" > + depends on PCI_PWRCTRL_TC9563 || COMPILE_TEST > default m if ARCH_QCOM > select AUXILIARY_BUS > select GPIO_REGMAP > diff --git a/drivers/pci/pwrctrl/Kconfig b/drivers/pci/pwrctrl/Kconfig > index 38aab596aa04b8b1..a2fc2a359702e861 100644 > --- a/drivers/pci/pwrctrl/Kconfig > +++ b/drivers/pci/pwrctrl/Kconfig > @@ -29,7 +29,7 @@ config PCI_PWRCTRL_TC9563 > select PCI_PWRCTRL > default m if ARCH_QCOM > depends on I2C > - depends on GPIO_TC9563 > + select AUXILIARY_BUS > select REGMAP_I2C > help > Say Y here to enable the PCI Power Control driver of TC9563 PCIe > -- > 2.43.0 > Acked-by: Lorenzo Bianconi