Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions drivers/pci/controller/pcie-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -6870,15 +6870,13 @@ static int apple_pcie_check_adopted_s2idle(struct apple_pcie *pcie)
int error = 0;

/*
* Qualified on the J716c, the K114c, the K116s and the J714s: the same
* T6050 host with the N1 adopted on port 0. The K116s and the J714s
* (16- and 14-inch M5 Pro) also have a kernel-trained SD reader port.
* Other adopted platforms and deeper sleep remain unqualified.
* Every host whose links the boot loader trained (hw->adopt_link) keeps
* them across suspend-to-idle: the root complex, every port's link and
* the devices below must still be up and in D0, which the checks below
* read from the hardware, before and after the sleep. Deeper sleep
* remains unqualified.
*/
if (!(of_machine_is_compatible("apple,j716c") ||
of_machine_is_compatible("apple,k114c") ||
of_machine_is_compatible("apple,k116s") ||
of_machine_is_compatible("apple,j714s")) || !pm_suspend_no_platform())
if (!pm_suspend_no_platform())
return -EBUSY;

if (!(readl(pcie->base + CORE_RC_CTL) & CORE_RC_CTL_RUN) ||
Expand Down
Loading