>From c35e54a6500e3b99fa90544bbbbd123df306d11f Mon Sep 17 00:00:00 2001 This reverts commit 44a6e1bfed98cd636b55a1191426ce2c373e15b2.
Before this commit USB gadgets work if you boot with cable connected. eg. download kernel over FEL, mount NFS root over g_ether. After this commit gadgets only come up if cable is unplugged. eg. boot, load g_ether (nothing) unplug and replug cable - USB gadget is seen by the host on the other end of the cable. Only tested the FEL boot because I have no kernel installed on device. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/usb/sunxi_usb/udc/sw_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/sunxi_usb/udc/sw_udc.c b/drivers/usb/sunxi_usb/udc/sw_udc.c index 283ae4c..1e054a5 100644 --- a/drivers/usb/sunxi_usb/udc/sw_udc.c +++ b/drivers/usb/sunxi_usb/udc/sw_udc.c @@ -2757,12 +2757,12 @@ static int sw_udc_set_pullup(struct sw_udc *udc, int is_on) { DMSG_DBG_UDC("sw_udc_set_pullup\n"); - is_udc_enable = is_on; if(!is_peripheral_active()){ DMSG_PANIC("ERR: usb device is not active\n"); return 0; } + is_udc_enable = is_on; if(is_on){ sw_udc_enable(udc); -- 1.7.10.4 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.