* [PATCH v2] PCI: imx6: Enable L1SS support when supports_clkreq is true
@ 2026-11-09 2:21 hongxing.zhu
2026-11-09 2:23 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: hongxing.zhu @ 2026-11-09 2:21 UTC (permalink / raw)
To: frank.li, jingoohan1, l.stach, lpieralisi, kwilczynski, mani,
robh, bhelgaas, s.hauer, kernel, festevam
Cc: linux-pci, linux-arm-kernel, imx, linux-kernel, Richard Zhu
From: Richard Zhu <hongxing.zhu@nxp.com>
Enable L1SS for the i.MX6 PCIe controller when the `supports_clkreq` flag
is set. This ensures that the PCIe endpoint can enter low-power states
efficiently when the link is not in use.
The commit a00bba406b5a ("PCI: dwc: Advertise L1 PM Substates only if
driver requests it") clears L1SS capabilities by default. However, the
i.MX PCIe controller supports L1SS as indicated by the settings in the L1SS
capabilities register. By setting `dw_pcie.l1ss_support` to true when
`supports_clkreq` is true, enable proper utilization of L1SS for i.MX6 PCIe
configurations.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
Changes in v2:
Updated the commit message to provide an explanation of why enabling L1SS
support is necessary for the i.MX6 PCIe controller when the supports_clkreq
flag is set.
---
drivers/pci/controller/dwc/pci-imx6.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index 83fbd998551d0..4eee02e135656 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -1501,6 +1501,9 @@ static int imx_pcie_host_init(struct dw_pcie_rp *pp)
imx_setup_phy_mpll(imx_pcie);
+ if (imx_pcie->supports_clkreq)
+ pci->l1ss_support = true;
+
return 0;
err_phy_off:
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] PCI: imx6: Enable L1SS support when supports_clkreq is true
2026-11-09 2:21 [PATCH v2] PCI: imx6: Enable L1SS support when supports_clkreq is true hongxing.zhu
@ 2026-11-09 2:23 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-09 2:23 UTC (permalink / raw)
To: hongxing.zhu; +Cc: linux-pci
> From: Richard Zhu <hongxing.zhu@nxp.com>
>
> Enable L1SS for the i.MX6 PCIe controller when the `supports_clkreq` flag
> is set. This ensures that the PCIe endpoint can enter low-power states
> efficiently when the link is not in use.
>
> The commit a00bba406b5a ("PCI: dwc: Advertise L1 PM Substates only if
> driver requests it") clears L1SS capabilities by default. However, the
> i.MX PCIe controller supports L1SS as indicated by the settings in the L1SS
> capabilities register. By setting `dw_pcie.l1ss_support` to true when
> `supports_clkreq` is true, enable proper utilization of L1SS for i.MX6 PCIe
> configurations.
>
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261109022139.3226052-1-hongxing.zhu@oss.nxp.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-09 2:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 2:21 [PATCH v2] PCI: imx6: Enable L1SS support when supports_clkreq is true hongxing.zhu
2026-11-09 2:23 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox