Hello.
Jonas Andersson wrote:
g_printer reqiured "set interface" request from host. Not all hosts send
this request.
This patch enable the interface when it get "set configuration" request
from host.
Signed-off-by: Jonas Andersson <jonas@xxxxxxxxxxx>
--- a/drivers/usb/gadget/printer.c 2011-03-15 02:20:32.000000000 +0100
+++ b/drivers/usb/gadget/printer.c 2011-03-21 13:16:12.000000000 +0100
@@ -1189,6 +1189,8 @@
else if (gadget->a_alt_hnp_support)
DBG(dev, "HNP needs a different root
port\n");
value = printer_set_config(dev, wValue);
+ if( !value )
Please run your patch thru scripts/checkpatch.pl. There should be space
after *if* and there should be no spaces around '!value'.
+ value = set_interface(dev,
PRINTER_INTERFACE);
break;
case USB_REQ_GET_CONFIGURATION:
if (ctrl->bRequestType != USB_DIR_IN)
Also, all the tabs in the patch were replaced by spaces by your mailer, so
that the patch couldn't be applied.
WBR, Sergei
--
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