On Tue, 13 Apr 2010 18:45:54 +0200, Neil Jones <neiljay@xxxxxxxxx> wrote:
The response to a control transfer request for maximimum no. of LUNs is 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,
This has been already fixed, please refer to commit <b00ce11f00c9e86442de000e8bd3dd42f089c8e1> (<URL:http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=b00ce11f00c9e86442de000e8bd3dd42f089c8e1>). -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał "mina86" Nazarewicz (o o) ooo +---[mina86@xxxxxxxxxx]---[mina86@jabber.org]---ooO--(_)--Ooo-- -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html