Re: [PATCH v2] drivers/usb/gadget/f_mass_storage: Send Reply for Get Max LUN request.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux