From: Neil Jones <neiljay@xxxxxxxxx> Date: Mon, 12 Apr 2010 10:35:47 +0100 Subject: [PATCH] drivers/usb/gadget/f_mass_storage: Send Reply for Get Max LUN request. The response to a control transfer request for maximimum no. of LUNs was not being sent. Signed-off-by: Neil Jones <neiljay@xxxxxxxxx> --- drivers/usb/gadget/f_mass_storage.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index a37640e..341bf6b 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -614,7 +614,9 @@ static int fsg_setup(struct usb_function *f, return -EDOM; VDBG(fsg, "get max LUN\n"); *(u8 *) req->buf = fsg->common->nluns - 1; - return 1; + + return usb_ep_queue(fsg->gadget->ep0, req, GFP_ATOMIC); + } VDBG(fsg, -- 1.5.5.2
Attachment:
0001-drivers-usb-gadget-f_mass_storage-Send-Reply-for-Ge.patch
Description: Binary data