OSDN Git Service

PCI: Add generic quirk for increasing D3hot delay
authorDaniel Drake <drake@endlessm.com>
Wed, 27 Nov 2019 05:38:35 +0000 (13:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:34:41 +0000 (08:34 +0100)
commit3931158181bf85bfc2c4873a7465e47ad1c6d0b1
tree617f49715cab61cb33154f8f3bd4fd70b4d86202
parent0674762c9cc7f25ea4d993dd92f822785286f51f
PCI: Add generic quirk for increasing D3hot delay

[ Upstream commit 62fe23df067715a21c4aef44068efe7ceaa8f627 ]

Separate the D3 delay increase functionality out of quirk_radeon_pm() into
its own function so that it can be shared with other quirks, including the
AMD Ryzen XHCI quirk that will be introduced in a followup commit.

Tweak the function name and message to indicate more clearly that the delay
relates to a D3hot-to-D0 transition.

Link: https://lore.kernel.org/r/20191127053836.31624-1-drake@endlessm.com
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/quirks.c