]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCI/PM: Revert "PCI/PM: Apply D2 delay as milliseconds, not microseconds"
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Sep 2020 19:24:11 +0000 (14:24 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Sep 2020 22:01:46 +0000 (17:01 -0500)
commit638c133e5f52a3793cb5494897df008f5cef0ddd
treee6096ced43b63c67477a8a04e199150990deed8d
parent454d082dbb47febbfe2998c3953e62cd917abbbf
PCI/PM: Revert "PCI/PM: Apply D2 delay as milliseconds, not microseconds"

This reverts commit 7e24bc347e57992d532bc2ed700209b0fc0a4bf5.

7e24bc347e57 was based on PCIe r5.0, sec 5.9, which claims we need a 200 ms
delay when transitioning to or from D2.  However, sec 5.3.1.3 states the
delay as 200 μs (microseconds), as does the table in PCIe r4.0, sec 5.9.1.

This looks like a typo in the r5.0 spec, so revert back to a 200 μs delay
instead of a 200 ms delay.

Fixes: 7e24bc347e57 ("PCI/PM: Apply D2 delay as milliseconds, not microseconds")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci.c
drivers/pci/pci.h