From baldrick@free.fr Fri Jan 13 02:13:02 2006 From: Duncan Sands To: Greg KH Subject: [PATCH 13/13] USBATM: -EILSEQ workaround Date: Fri, 13 Jan 2006 11:12:58 +0100 Message-Id: <200601131112.59414.baldrick@free.fr> 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 Signed-off-by: Greg Kroah-Hartman --- drivers/usb/atm/usbatm.c | 5 ++++- drivers/usb/atm/usbatm.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/usb/atm/usbatm.c +++ gregkh-2.6/drivers/usb/atm/usbatm.c @@ -270,7 +270,10 @@ static void usbatm_complete(struct urb * 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); --- gregkh-2.6.orig/drivers/usb/atm/usbatm.h +++ gregkh-2.6/drivers/usb/atm/usbatm.h @@ -88,6 +88,7 @@ #define UDSL_SKIP_HEAVY_INIT (1<<0) #define UDSL_USE_ISOC (1<<1) +#define UDSL_IGNORE_EILSEQ (1<<2) /* mini driver */