usb: pci-quirks: disable D3cold on xhci suspend for s2idle on AMD Renoir
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 27 May 2021 15:45:34 +0000 (10:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 08:36:00 +0000 (10:36 +0200)
commitd1658268e43980c071dbffc3d894f6f6c4b6732a
tree2a0917c82d3038fde87dd539a3659bf7c6fe4d65
parent1958ff5ad2d4908b44a72bcf564dfe67c981e7fe
usb: pci-quirks: disable D3cold on xhci suspend for s2idle on AMD Renoir

The XHCI controller is required to enter D3hot rather than D3cold for AMD
s2idle on this hardware generation.

Otherwise, the 'Controller Not Ready' (CNR) bit is not being cleared by
host in resume and eventually this results in xhci resume failures during
the s2idle wakeup.

Link: https://lore.kernel.org/linux-usb/1612527609-7053-1-git-send-email-Prike.Liang@amd.com/
Suggested-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Cc: stable <stable@vger.kernel.org> # 5.11+
Link: https://lore.kernel.org/r/20210527154534.8900-1-mario.limonciello@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.h