Re: [PATCH 4/7] clk: qcom: gcc-sc8180x: Use retention for PCIe power domains
From: Dmitry Baryshkov
Date: Mon Mar 09 2026 - 16:10:25 EST
On Sun, Mar 08, 2026 at 10:00:26PM -0300, Val Packett wrote:
> As the PCIe host controller driver does not yet support dealing with the
> loss of state during suspend, use retention for relevant GDSCs.
>
> This fixes the link not surviving upon resume:
>
> nvme 0002:01:00.0: Unable to change power state from D3cold to D0, device inaccessible
> nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS read failed (134)
> nvme 0002:01:00.0: Unable to change power state from D3cold to D0, device inaccessible
> nvme nvme0: Disabling device after reset failure: -19
>
> Fixes: 4433594bbe5d ("clk: qcom: gcc: Add global clock controller driver for SC8180x")
> Signed-off-by: Val Packett <val@xxxxxxxxxxxx>
> ---
>
> In case [1] gets expanded to cover all SoC including this one, or an
> alternative solution ends up being implemented very soon (looks like
> it's not going to be [2]??), I can drop this here.
>
> [1]: https://lore.kernel.org/all/20260102-pci_gdsc_fix-v1-0-b17ed3d175bc@xxxxxxxxxxxxxxxx/
> [2]: https://lore.kernel.org/all/zfs6krk2whthgdjl2s2w4o5pjwimzw37afoiyrqllykrk6jugt@4ijk5iqplohr/
>
> ---
> drivers/clk/qcom/gcc-sc8180x.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry