Re: [PATCH] usb: gadget: Fix os desc test

2015-01-26 Thread Andrzej Pietrasiewicz

W dniu 26.01.2015 o 12:47, Mario Schuknecht pisze:

USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR
with bRequestType instead of bRequest.

Signed-off-by: Mario Schuknecht mario.schukne...@dresearch-fe.de


Acked-by: Andrzej Pietrasiewicz andrze...@samsung.com


---
  drivers/usb/gadget/composite.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 6178353..13adfd1 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -1655,7 +1655,7 @@ unknown:
 * OS descriptors handling
 */
if (cdev-use_os_string  cdev-os_desc_config 
-   (ctrl-bRequest  USB_TYPE_VENDOR) 
+   (ctrl-bRequestType  USB_TYPE_VENDOR) 
ctrl-bRequest == cdev-b_vendor_code) {
struct usb_request  *req;
struct usb_configuration*os_desc_cfg;



--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] usb: gadget: Fix os desc test

2015-01-26 Thread Felipe Balbi
On Mon, Jan 26, 2015 at 01:26:19PM +0100, Andrzej Pietrasiewicz wrote:
 W dniu 26.01.2015 o 12:47, Mario Schuknecht pisze:
 USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR
 with bRequestType instead of bRequest.
 
 Signed-off-by: Mario Schuknecht mario.schukne...@dresearch-fe.de
 
 Acked-by: Andrzej Pietrasiewicz andrze...@samsung.com

I don't have the patch and I was never Cced to this. Please resend

-- 
balbi


signature.asc
Description: Digital signature