summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_vr.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2001-05-14 19:13:02 +0000
committerwpaul <wpaul@FreeBSD.org>2001-05-14 19:13:02 +0000
commitcec00d25651e4ef292151b8418a07870db451943 (patch)
treee30606b42f6f3639f9a63af5a0ea3c7d36423b9f /sys/pci/if_vr.c
parentc03c679bb8c2a8d8f60394a320dfbd8cb6dec2d1 (diff)
downloadFreeBSD-src-cec00d25651e4ef292151b8418a07870db451943.zip
FreeBSD-src-cec00d25651e4ef292151b8418a07870db451943.tar.gz
Close PR 22208: bring chip out of suspend mode, because Windows might
have put the chip to sleep at shutdown. This is really only for the VT6102, but it doesn't hurt the older chips.
Diffstat (limited to 'sys/pci/if_vr.c')
-rw-r--r--sys/pci/if_vr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c
index 2d14680..93fba3e 100644
--- a/sys/pci/if_vr.c
+++ b/sys/pci/if_vr.c
@@ -724,6 +724,13 @@ static int vr_attach(dev)
goto fail;
}
+ /*
+ * Windows may put the chip in suspend mode when it
+ * shuts down. Be sure to kick it in the head to wake it
+ * up again.
+ */
+ VR_CLRBIT(sc, VR_STICKHW, (VR_STICKHW_DS0|VR_STICKHW_DS1));
+
/* Reset the adapter. */
vr_reset(sc);
OpenPOWER on IntegriCloud