]> 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)
commitb2d95fb0e71924324e45bd116332044cab91cacf
tree2a0917c82d3038fde87dd539a3659bf7c6fe4d65
parent6ccb7e11232c3cefb92228f9990076a7e26bb8d5
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