]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: improve kconfig 2.0
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 31 Jul 2013 14:21:13 +0000 (16:21 +0200)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:47 +0000 (09:54 +0800)
commitad2e2f72f627062ed3c0140c5a196c07d6a69937
tree7555228eaf44207e66bb5894c46462f18d54bfe5
parent15a37e4eae19091c356f85800f3800824fa0dc4c
usb: chipidea: improve kconfig 2.0

This patch provides a cleaner solution to the problem described in
commit 20a677fd ("usb: chipidea: improve kconfig").

The goal to be achieved is to force USB_CHIPIDEA=m if either
USB_EHCI_HCD=m or USB_GADGET=m.
If both are 'y' USB_CHIPIDEA may be selected to be 'm' or 'y'.

The old patch had the drawback, that USB_CHIPIDEA could be chosen as
'y' though USB_EHCI_HCD or USB_GADGET (or both) were 'm' leading to a
situation where USB_CHIPIDEA_HOST or USB_CHIPIDEA_UDC vanished from
the config options producing a compilable but dysfunctional driver.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Reviewed-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/usb/chipidea/Kconfig