From ca19084f368d896d27147d3f07af45d8c4cce5e6 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 7 Apr 2019 08:58:09 +0000 Subject: [PATCH] Give new home to the comment from ppt_pci_reset(), explaining a nuance of power reset. Noted by: soralx@cydem.org Sponsored by: Mellanox Technologies MFC after: 12 days --- sys/dev/pci/pci.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 0bad1097356c..28fde9c8b136 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -6394,6 +6394,11 @@ pcie_flr(device_t dev, u_int max_delay, bool force) return (true); } +/* + * Attempt a power-management reset by cycling the device in/out of D3 + * state. PCI spec says we can only go into D3 state from D0 state. + * Transition from D[12] into D0 before going to D3 state. + */ int pci_power_reset(device_t dev) {