On Wednesday, February 12, 2014 2:34 PM, Stephen Warren wrote: > On 02/04/2014 02:45 PM, [email protected] wrote: > > From: Dinh Nguyen <[email protected]> > > > > This means that the driver can be in host or peripheral mode when the > > appropriate > > connector is used. When an A-cable is plugged in, the driver behaves in host > > mode, and when a B-cable is used, the driver will be in peripheral mode. > > Sorry for the slow response. When building ARCH=arm bcm2835_defconfig, I > get build errors: > > > drivers/built-in.o: In function `dwc2_gadget_init': > > drivers/usb/dwc2/s3c-hsotg.c:3335: undefined reference to > > `usb_add_gadget_udc' > > drivers/built-in.o: In function `s3c_hsotg_remove': > > drivers/usb/dwc2/s3c-hsotg.c:3358: undefined reference to > > `usb_del_gadget_udc' > > drivers/usb/dwc2/s3c-hsotg.c:3364: undefined reference to > > `usb_gadget_unregister_driver'
These errors happen when CONFIG_USB_GADGET=n. 's3c-hsotg.c' supports only gadget mode. In the case of USB_DWC2_HOST mode, CONFIG_USB_GADGET is NOT enabled. I don't know how to solve it. Best regards, Jingoo Han -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
