> -----Original Message----- > From: Krzysztof Wilczy?ski <kwilczynski@xxxxxxxxxx> > Sent: 2024年11月4日 4:57 > To: Hongxing Zhu <hongxing.zhu@xxxxxxx> > Cc: bhelgaas@xxxxxxxxxx; lorenzo.pieralisi@xxxxxxx; Frank Li > <frank.li@xxxxxxx>; mani@xxxxxxxxxx; linux-pci@xxxxxxxxxxxxxxx; > linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; > kernel@xxxxxxxxxxxxxx; imx@xxxxxxxxxxxxxxx > 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 Hi Krzysztof: Thanks for your pick up. I combine this dwc bug fix with the other one. Can you help to replace this commit by the following series? https://lkml.org/lkml/2024/10/10/240 Best Regards Richard Zhu > > https://git.ker/ > nel.org%2Fpci%2Fpci%2Fc%2Fec008c493c25&data=05%7C02%7Chongxing.z > hu%40nxp.com%7C99612c264e704deef3f508dcfc4a1205%7C686ea1d3bc2b > 4c6fa92cd99c5c301635%7C0%7C0%7C638662642267419531%7CUnknown > %7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1ha > WwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=rlIjV2gZWnnruUR8DynTqyU > vnO%2B%2BxvzxiCDw%2FneoQMw%3D&reserved=0 > > Krzysztof