Re: [PATCH] PCI: rockchip-host: Support hibernation with endpoints in D0

From: Igor Velkov

Date: Tue Dec 01 2026 - 21:42:56 EST


On Tue, 1 Dec 2026, Anand Moon wrote:
> Could you give this patch a try? My RK3399 dev board is currently broken,
> so I can't test it myself.

Hi Anand,

Tested on v7.4-rc3 (your base), with ep_gpio renamed to perst_gpio.

Helios64, where vpcie3v3 is switchable: s2idle fails 2 of 2 with the
diff ("PCIe link training gen1 timeout!", resume_noirq returns -110),
8 of 9 without it. The JMB585 gets power back while PERST# is still
asserted and the link does not train. The one failure without the diff
is a config read abort after resume, which plain rc3 also shows.

ROCK Pi 4A: vcc3v3_pcie and vcc_0v9 are regulator-always-on, so the
diff does not cut them; 10 of 11 with it, 11 of 12 without.

The enable counts look balanced already: suspend and resume toggle
only vpcie0v9. Which failure does the change fix?

--
Igor Velkov <iav@xxxxxx>