[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241103205659.GI237624@rocinante>
Date: Mon, 4 Nov 2024 05:56:59 +0900
From: Krzysztof WilczyĆski <kwilczynski@...nel.org>
To: Richard Zhu <hongxing.zhu@....com>
Cc: bhelgaas@...gle.com, lorenzo.pieralisi@....com, frank.li@....com,
mani@...nel.org, linux-pci@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kernel@...gutronix.de, imx@...ts.linux.dev
Subject: Re: [PATCH v2] PCI: dwc: Fix resume failure if no EP is connected at
some platforms
Hello,
> The dw_pcie_suspend_noirq() function currently returns success directly
> if no endpoint (EP) device is connected. However, on some platforms, power
> loss occurs during suspend, causing dw_resume() to do nothing in this case.
> This results in a system halt because the DWC controller is not initialized
> after power-on during resume.
>
> Change call to deinit() in suspend and init() at resume regardless of
> whether there are EP device connections or not. It is not harmful to
> perform deinit() and init() again for the no power-off case, and it keeps
> the code simple and consistent in logic.
Applied to controller/dwc, thank you!
[01/01] PCI: dwc: Fix resume failure if no EP is connected at some platforms
https://git.kernel.org/pci/pci/c/ec008c493c25
Krzysztof
Powered by blists - more mailing lists