bcm43xx-d80211: Lower mac_suspend timeout
Subsystems (3)
PATCH 1/1 bcm43xx-d80211: Lower mac_suspend timeout
Lower mac_suspend timeout.
This timeout won't ever trigger, if the hardware and driver is not horribly faulty. It's just a safety net to not lock up the kernel on bugs.
Signed-off-by Michael Buesch <[email protected]>
drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c +2 -2
@@ -2195,11 +2195,11 @@bcm43xx_read32 (bcm, BCM43xx_MMIO_STATUS_BITFIELD) & ~BCM43xx_SBF_MAC_ENABLED);bcm43xx_read32 (bcm, BCM43xx_MMIO_GEN_IRQ_REASON);/* dummy read */ -for (i =100000 ; i; i--) { +for (i =10000 ; i; i--) { tmp =bcm43xx_read32 (bcm, BCM43xx_MMIO_GEN_IRQ_REASON);if (tmp & BCM43xx_IRQ_READY) goto out; -udelay (10 ); +udelay (1 ); } printkl(KERN_ERR PFX "MAC suspend failed\n"); }
Signature · 1 line
Greetings Michael.