[adm5120] add 2.6.24 specific patchset for the usb driver
[openwrt.git] / target / linux / adm5120 / patches-2.6.24 / 911-usb_centralize_eremoteio_handling.patch
1 Index: linux-2.6.24/drivers/usb/host/adm5120-q.c
2 ===================================================================
3 --- linux-2.6.24.orig/drivers/usb/host/adm5120-q.c
4 +++ linux-2.6.24/drivers/usb/host/adm5120-q.c
5 @@ -28,25 +28,10 @@ __releases(ahcd->lock)
6 __acquires(ahcd->lock)
7 {
8 urb_priv_free(ahcd, urb->hcpriv);
9 - urb->hcpriv = NULL;
10
11 spin_lock(&urb->lock);
12 if (likely(urb->status == -EINPROGRESS))
13 urb->status = 0;
14 -
15 - /* report short control reads right even though the data TD always
16 - * has TD_R set. (much simpler, but creates the 1-td limit.)
17 - */
18 - if (unlikely(urb->transfer_flags & URB_SHORT_NOT_OK)
19 - && unlikely(usb_pipecontrol(urb->pipe))
20 - && urb->actual_length < urb->transfer_buffer_length
21 - && usb_pipein(urb->pipe)
22 - && urb->status == 0) {
23 - urb->status = -EREMOTEIO;
24 -#ifdef ADMHC_VERBOSE_DEBUG
25 - urb_print(ahcd, urb, "SHORT", usb_pipeout(urb->pipe));
26 -#endif
27 - }
28 spin_unlock(&urb->lock);
29
30 switch (usb_pipetype(urb->pipe)) {
This page took 0.057557 seconds and 5 git commands to generate.