Re: [PATCH v2] USB: don't build PCI quirks if USB support isn't configured

2015-04-23 Thread Alan Stern
On Thu, 23 Apr 2015, Tal Shorer wrote: > Why is drivers/usb/Makefile even read when CONFIG_USB is not set? CONFIG_USB means that the kernel will support host-side USB. But drivers/usb and the directories underneath it also contain drivers for peripheral-side USB. Therefore the Makefiles in th

Re: [PATCH v2] USB: don't build PCI quirks if USB support isn't configured

2015-04-22 Thread Tal Shorer
Why is drivers/usb/Makefile even read when CONFIG_USB is not set? Won't it make more sense to throw the line obj-$(CONFIG_PCI) += usb/ from drivers/Makfile? On Wed, Apr 22, 2015 at 7:11 PM, Alan Stern wrote: > The USB PCI quirks code gets built into the kernel whenever CONFIG_PCI > is enabled, e