Hi Mike,
The 'page4' pointer should be initialized here. Otherwise you can't
guarantee a 16KB
transfer if req->dma (req->buf) is not started at the page boundary.

Toshi

diff --git a/drivers/usb/gadget/msm72k_udc.c b/drivers/usb/gadget/msm72k_udc.c
index f366950..e8a6d9a 100644
--- a/drivers/usb/gadget/msm72k_udc.c
+++ b/drivers/usb/gadget/msm72k_udc.c
@@ -470,6 +470,7 @@ int usb_ept_queue_xfer(struct msm_endpoint *ept,
struct usb_request *_req)
        item->page1 = (req->dma + 0x1000) & 0xfffff000;
        item->page2 = (req->dma + 0x2000) & 0xfffff000;
        item->page3 = (req->dma + 0x3000) & 0xfffff000;
+       item->page4 = (req->dma + 0x4000) & 0xfffff000;

        /* Add the new request to the end of the queue */
        last = ept->last;

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

To unsubscribe from this group, send email to 
android-kernel+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to