On Mar 26 Peter Hurley wrote:
> --- a/drivers/firewire/ohci.c
> +++ b/drivers/firewire/ohci.c
> @@ -2268,8 +2268,8 @@ static int ohci_enable(struct fw_card *card,
>                 OHCI1394_HCControl_postedWriteEnable);
>       flush_writes(ohci);
>  
> -     for (lps = 0, i = 0; !lps && i < 3; i++) {
> -             msleep(50);
> +     for (lps = 0, i = 0; !lps && i < 150; i++) {
> +             msleep(1);
>               lps = reg_read(ohci, OHCI1394_HCControlSet) &
>                     OHCI1394_HCControl_LPS;
>       }

This duplicates a mistake (?) that we already did a few times elsewhere in
firewire-ohci:  msleep(1) may put the thread to sleep for much, much longer
than 1 millisecond.  I will propose a patch soon.
-- 
Stefan Richter
-=====-===-= -=-- ===--
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to