From 33662e369c8ab09e07979d375ebcbe06d2f4657c Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Mon, 19 Mar 2007 03:35:45 +0000 Subject: Wait SCLK to be stable after LPS enabled. This should fix NMI problem in fwphy_rddata(). PR: kern/94146 kern/100356 MFC: after 3 days --- sys/dev/firewire/fwohci.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 98de97d8e04d8..e5285b6d7411e 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -423,6 +423,8 @@ fwohci_probe_phy(struct fwohci_softc *sc, device_t dev) * It is not actually available port on your PC . */ OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_LPS); + DELAY(500); + reg = fwphy_rddata(sc, FW_PHY_SPD_REG); if((reg >> 5) != 7 ){ -- cgit v1.3