Enable TC9563 PCIe switch pwrctl driver by default. This is needed
to power the PCIe switch which is present in Qualcomm RB3gen2 platform.
Without this the switch will not powered up and we can't use the
endpoints connected to the switch.
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index e3a2d37bd10423b028f59dc40d6e8ee1c610d6b8..fe5c9951c437a67ac76bf939a9e436eafa3820bf 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -249,6 +249,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y
CONFIG_PCI_ENDPOINT=y
CONFIG_PCI_ENDPOINT_CONFIGFS=y
CONFIG_PCI_EPF_TEST=m
+CONFIG_PCI_PWRCTRL_TC9563=m
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_FW_LOADER_USER_HELPER=y
--
2.34.1
On Wed, Oct 29, 2025 at 05:00:00PM +0530, Krishna Chaitanya Chundru wrote: > Enable TC9563 PCIe switch pwrctl driver by default. This is needed > to power the PCIe switch which is present in Qualcomm RB3gen2 platform. > Without this the switch will not powered up and we can't use the > endpoints connected to the switch. > > Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > There is some broken logic in your commit order. How comes defconfig changes come before the driver which actually defines that Kconfig entry? Please reorder your patches _logically_: - DT bindings - driver changes - DTS changes - defconfig changes -- With best wishes Dmitry
On 10/30/2025 5:34 AM, Dmitry Baryshkov wrote: > On Wed, Oct 29, 2025 at 05:00:00PM +0530, Krishna Chaitanya Chundru wrote: >> Enable TC9563 PCIe switch pwrctl driver by default. This is needed >> to power the PCIe switch which is present in Qualcomm RB3gen2 platform. >> Without this the switch will not powered up and we can't use the >> endpoints connected to the switch. >> >> Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> >> --- >> arch/arm64/configs/defconfig | 1 + >> 1 file changed, 1 insertion(+) >> > There is some broken logic in your commit order. How comes defconfig > changes come before the driver which actually defines that Kconfig > entry? > > Please reorder your patches _logically_: > - DT bindings > - driver changes > - DTS changes > - defconfig changes Ack. - Krishna Chaitanya. >
On Wed, Oct 29, 2025 at 12:30 PM Krishna Chaitanya Chundru
<krishna.chundru@oss.qualcomm.com> wrote:
>
> Enable TC9563 PCIe switch pwrctl driver by default. This is needed
> to power the PCIe switch which is present in Qualcomm RB3gen2 platform.
> Without this the switch will not powered up and we can't use the
> endpoints connected to the switch.
>
> Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
> ---
> arch/arm64/configs/defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index e3a2d37bd10423b028f59dc40d6e8ee1c610d6b8..fe5c9951c437a67ac76bf939a9e436eafa3820bf 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -249,6 +249,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y
> CONFIG_PCI_ENDPOINT=y
> CONFIG_PCI_ENDPOINT_CONFIGFS=y
> CONFIG_PCI_EPF_TEST=m
> +CONFIG_PCI_PWRCTRL_TC9563=m
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y
> CONFIG_FW_LOADER_USER_HELPER=y
>
> --
> 2.34.1
>
Can't we just do the following in the respective Kconfig entry?
config PCI_PWRCTRL_TC9563
tristate ...
default m if ARCH_QCOM
Bart
On Wed, Oct 29, 2025 at 02:15:37PM +0100, Bartosz Golaszewski wrote: > On Wed, Oct 29, 2025 at 12:30 PM Krishna Chaitanya Chundru > <krishna.chundru@oss.qualcomm.com> wrote: > > > > Enable TC9563 PCIe switch pwrctl driver by default. This is needed > > to power the PCIe switch which is present in Qualcomm RB3gen2 platform. > > Without this the switch will not powered up and we can't use the > > endpoints connected to the switch. > > > > Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> > > --- > > arch/arm64/configs/defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > > index e3a2d37bd10423b028f59dc40d6e8ee1c610d6b8..fe5c9951c437a67ac76bf939a9e436eafa3820bf 100644 > > --- a/arch/arm64/configs/defconfig > > +++ b/arch/arm64/configs/defconfig > > @@ -249,6 +249,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y > > CONFIG_PCI_ENDPOINT=y > > CONFIG_PCI_ENDPOINT_CONFIGFS=y > > CONFIG_PCI_EPF_TEST=m > > +CONFIG_PCI_PWRCTRL_TC9563=m > > CONFIG_DEVTMPFS=y > > CONFIG_DEVTMPFS_MOUNT=y > > CONFIG_FW_LOADER_USER_HELPER=y > > > > -- > > 2.34.1 > > > > Can't we just do the following in the respective Kconfig entry? > > config PCI_PWRCTRL_TC9563 > tristate ... > default m if ARCH_QCOM I believe the driver is supposed to support all Toshiba TC9563 switches, but since we have some hooks for toggling PERST# and they are only added for QCOM platforms atm, it is OK to select the driver in Kconfig. - Mani -- மணிவண்ணன் சதாசிவம்
On 10/29/2025 6:45 PM, Bartosz Golaszewski wrote: > On Wed, Oct 29, 2025 at 12:30 PM Krishna Chaitanya Chundru > <krishna.chundru@oss.qualcomm.com> wrote: >> Enable TC9563 PCIe switch pwrctl driver by default. This is needed >> to power the PCIe switch which is present in Qualcomm RB3gen2 platform. >> Without this the switch will not powered up and we can't use the >> endpoints connected to the switch. >> >> Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> >> --- >> arch/arm64/configs/defconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig >> index e3a2d37bd10423b028f59dc40d6e8ee1c610d6b8..fe5c9951c437a67ac76bf939a9e436eafa3820bf 100644 >> --- a/arch/arm64/configs/defconfig >> +++ b/arch/arm64/configs/defconfig >> @@ -249,6 +249,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y >> CONFIG_PCI_ENDPOINT=y >> CONFIG_PCI_ENDPOINT_CONFIGFS=y >> CONFIG_PCI_EPF_TEST=m >> +CONFIG_PCI_PWRCTRL_TC9563=m >> CONFIG_DEVTMPFS=y >> CONFIG_DEVTMPFS_MOUNT=y >> CONFIG_FW_LOADER_USER_HELPER=y >> >> -- >> 2.34.1 >> > Can't we just do the following in the respective Kconfig entry? > > config PCI_PWRCTRL_TC9563 > tristate ... > default m if ARCH_QCOM Ack, I will do in next series - Krishna Chaitanya. > Bart
© 2016 - 2026 Red Hat, Inc.