• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revision2e8f68c45925123d33d476ce369b570bd989dd9a (tree)
Zeit2005-07-26 17:33:09
AutorAlan Stern <stern@rowl...>
CommiterMarcelo Tosatti

Log Message

[PATCH] file_storage and UHCI bugfixes

The patch below (as547) corrects two minor errors, one in the
file_storage gadget driver (need to send a length-zero packet if a
control response is short) and one in the alternate UHCI driver (need
to set the QH bit in the frame list). Both of these are back-ports of
things that have been in 2.6 for several releases.

Alan Stern

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

Ändern Zusammenfassung

Diff

--- a/drivers/usb/gadget/file_storage.c
+++ b/drivers/usb/gadget/file_storage.c
@@ -1454,6 +1454,7 @@ static int fsg_setup(struct usb_gadget *gadget,
14541454 /* Respond with data/status or defer until later? */
14551455 if (rc >= 0 && rc != DELAYED_STATUS) {
14561456 fsg->ep0req->length = rc;
1457+ fsg->ep0req->zero = (rc < ctrl->wLength);
14571458 fsg->ep0req_name = (ctrl->bRequestType & USB_DIR_IN ?
14581459 "ep0-in" : "ep0-out");
14591460 rc = ep0_queue(fsg);
--- a/drivers/usb/host/uhci.c
+++ b/drivers/usb/host/uhci.c
@@ -2924,7 +2924,7 @@ static int alloc_uhci(struct pci_dev *dev, unsigned int io_addr, unsigned int io
29242924 }
29252925
29262926 /* Only place we don't use the frame list routines */
2927- uhci->fl->frame[i] = uhci->skeltd[irq]->dma_handle;
2927+ uhci->fl->frame[i] = uhci->skeltd[irq]->dma_handle | UHCI_PTR_QH;
29282928 }
29292929
29302930 start_hc(uhci);
Show on old repository browser