]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29ac228901e1e5a0a0debb74d3dcf570c97344ab
tree2a0917c82d3038fde87dd539a3659bf7c6fe4d65
parentd25762bf0c01a3a9bc5a6b8d22996362990abeeb
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