From 06767d306bc828148750c983dcb2d833fe567bc7 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Mon, 19 Mar 2007 03:41:27 +0000 Subject: [PATCH] Poll only while interrupt is disabled. MFC: 3 days after --- sys/dev/firewire/fwohci_pci.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c index 56baf872b6e..d3224a05c54 100644 --- a/sys/dev/firewire/fwohci_pci.c +++ b/sys/dev/firewire/fwohci_pci.c @@ -516,10 +516,12 @@ fwohci_pci_add_child(device_t dev, int order, const char *name, int unit) * Clear the bus reset event flag to start transactions even when * interrupt is disabled during the boot process. */ - DELAY(250); /* 2 cycles */ - s = splfw(); - fwohci_poll((void *)sc, 0, -1); - splx(s); + if (cold) { + DELAY(250); /* 2 cycles */ + s = splfw(); + fwohci_poll((void *)sc, 0, -1); + splx(s); + } return (child); }