At Tue, 04 Nov 2014 16:39:41 +0100, Guillaume Gardet wrote:
Hi,
the "patches.rpmify/chipidea-clean-up-dependencies" patch in openSUSE git repo is not working because IMX (and PCI) bits needs to be built as modules, at least when CONFIG_USB_CHIPIDEA is also a module.
I replaced the following lines: +obj-$(CONFIG_USB_CHIPIDEA_PCI) += ci_hdrc_pci.o +obj-$(CONFIG_USB_CHIPIDEA_IMX) += usbmisc_imx.o ci_hdrc_imx.o
By: +ifneq ($(CONFIG_USB_CHIPIDEA_PCI),) + obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_pci.o +endif +ifneq ($(CONFIG_USB_CHIPIDEA_IMX),) + obj-$(CONFIG_USB_CHIPIDEA) += usbmisc_imx.o ci_hdrc_imx.o +endif
That way USB is working fine on iMX6 boards (tested on Sabre Lite board), and we are more in line with upstream which uses: # PCI doesn't provide stubs, need to check ifneq ($(CONFIG_PCI),) obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_pci.o endif
ifneq ($(CONFIG_OF),) obj-$(CONFIG_USB_CHIPIDEA) += usbmisc_imx.o ci_hdrc_imx.o endif
Any comment on how I did it? I guess we could do it better, so if you have any suggestion, please share. I would like to send a patch for 13.2 and master ASAP.
It'd be much easier to change CONFIG_USB_CHIPIDEA_PCI and CONFIG_USB_CHIPIDEA_IMX from bool to tristate. Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org