prism54 Bug in timeout scheduling
Subsystems (3)
PATCH 2/4 prism54 Bug in timeout scheduling
2004-10-02 Margit Schubert-While <[email protected]>
* 02_schedbug.patch
* Bug in loop around schedule_timeout
* We must rearm the task
*
* Make timeout message meaningful
Margit
drivers/net/wireless/prism54/islpci_dev.c +3 -2
@@ -486,6 +486,7 @@/* The software reset acknowledge needs about 220 msec here. * Be conservative and wait for up to one second. */ +set_current_state (TASK_UNINTERRUPTIBLE ); remaining =schedule_timeout (HZ );if (remaining >0 ) {
@@ -496,14 +497,14 @@/* If we're here it's because our IRQ hasn't yet gone through. * Retry a bit more... */ -printk (KERN_ERR "%s: reset problem: no 'reset complete' IRQ seen\n" , +printk (KERN_ERR "%s: no 'reset complete' IRQ seen - retrying\n" , priv->ndev->name); }finish_wait (&priv->reset_done, &wait);if (result) { -printk (KERN_ERR "%s: islpci_reset_if: failure\n" , priv->ndev->name); +printk (KERN_ERR "%s: interface reset failure\n" , priv->ndev->name);return result; }
drivers/net/wireless/prism54/islpci_mgt.c +1 -0
@@ -473,6 +473,7 @@int timeleft;struct islpci_mgmtframe *frame; +set_current_state (TASK_UNINTERRUPTIBLE ); timeleft =schedule_timeout (wait_cycle_jiffies); frame =xchg (&priv->mgmt_received,NULL );if (frame) {
_______________________________________________
Prism54-devel mailing list
[email protected]
http://prism54.org/mailman/listinfo/prism54-devel