diff options
author | Duncan Sands <baldrick@free.fr> | 2006-01-13 11:12:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-31 17:23:40 -0800 |
commit | a3673d3cd1cdeec6b503ffa418ca2d5aeff82fd7 (patch) | |
tree | e68c34bc9fe633afa557b0f3153b0c61df6a2ae3 /drivers/usb/atm/usbatm.c | |
parent | 9b0e54addf3ea8488c7b57166fb38feeb8ea28fd (diff) | |
download | linux-3.10-a3673d3cd1cdeec6b503ffa418ca2d5aeff82fd7.tar.gz linux-3.10-a3673d3cd1cdeec6b503ffa418ca2d5aeff82fd7.tar.bz2 linux-3.10-a3673d3cd1cdeec6b503ffa418ca2d5aeff82fd7.zip |
[PATCH] USBATM: -EILSEQ workaround
Don't throttle on -EILSEQ urb status if requested by a minidriver.
It seems the ueagle modems are buggy, giving -EILSEQ when they
have no data to send. The ueagle change will be sent separately
by the ueagle guys. Patch by Matthieu Castet.
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/atm/usbatm.c')
-rw-r--r-- | drivers/usb/atm/usbatm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c index c925e3a4267..5d339af1624 100644 --- a/drivers/usb/atm/usbatm.c +++ b/drivers/usb/atm/usbatm.c @@ -270,7 +270,10 @@ static void usbatm_complete(struct urb *urb, struct pt_regs *regs) spin_unlock_irqrestore(&channel->lock, flags); - if (unlikely(urb->status)) { + if (unlikely(urb->status) && + (!(channel->usbatm->flags & UDSL_IGNORE_EILSEQ) || + urb->status != -EILSEQ )) + { if (printk_ratelimit()) atm_warn(channel->usbatm, "%s: urb 0x%p failed (%d)!\n", __func__, urb, urb->status); |