Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c8ba39d0605200c81f43c59418871e036d973685
Commit:     c8ba39d0605200c81f43c59418871e036d973685
Parent:     8552855f9860b222673e86a88de2543f53f83dc2
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 10 18:53:34 2007 -0500
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:06:39 2008 -0800

    libertas: improve reliability of firmware reloading on USB
    
    Increase the delay between issuing the RESET command and the usb reset,
    and be prepared to discard more than one 'normal' packet from it before
    it resets.
    
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/if_usb.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/libertas/if_usb.c 
b/drivers/net/wireless/libertas/if_usb.c
index 8ff57a6..0a37950 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -389,9 +389,9 @@ static int if_usb_reset_device(struct usb_card_rec *cardp)
        cmd->params.reset.action = cpu_to_le16(CMD_ACT_HALT);
        usb_tx_block(cardp, cardp->bulk_out_buffer, 4 + S_DS_GEN + 
sizeof(struct cmd_ds_802_11_reset));
 
-       msleep(10);
+       msleep(100);
        ret = usb_reset_device(cardp->udev);
-       msleep(10);
+       msleep(100);
 
        lbs_deb_leave_args(LBS_DEB_USB, "ret %d", ret);
 
@@ -500,7 +500,7 @@ static void if_usb_receive_fwload(struct urb *urb)
                return;
        }
 
-       if (cardp->bootcmdresp == 0) {
+       if (cardp->bootcmdresp <= 0) {
                memcpy (&bootcmdresp, skb->data + IPFIELD_ALIGN_OFFSET,
                        sizeof(bootcmdresp));
                if (le16_to_cpu(cardp->udev->descriptor.bcdDevice) < 0x3106) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to