On 10/22/2014 03:27 PM, Paul Bolle wrote: > On Tue, 2014-10-21 at 15:47 -0500, Dinh Nguyen wrote: >> On 10/20/2014 02:42 PM, Paul Bolle wrote: >>> (Side note: drivers/usb/dwc2/Kconfig is sourced (in drivers/usb/Kconfig) >>> even if USB is _not_ set. But USB_DCW2 still depends on USB. Why is >>> that?) >> >> Because USB is for Host-Side support. DWC2 driver should only get built >> for when USB is enabled. I think you're getting USB and USB_SUPPORT >> mixed up. > > No, I don't think I did. Because in drivers/usb/Kconfig we see > if USB > > [...] > > endif > > [...] > > source "drivers/usb/dwc2/Kconfig" > > [...] Well, CONFIG_USB enables the host stack that is needed by the DWC2 driver, without CONFIG_USB, the DWC2 driver will not be able to build. > >> In addition, thanks to your comment, I realized that DWC2 should also be >> available to build when USB_GADGET is enabled. A patch has been sent: >> >> http://marc.info/?l=linux-usb&m=141392377124818&w=2 > > I haven't checked, but doesn't this mean USB_DWC2 could just depend on > USB_SUPPORT? > I don't think so because USB_SUPPORT will not select USB or USB_GAGDGET, and the DWC2 driver will need either 1 or both for it to build correctly. Dinh -- 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