usb: generic Kconfig fixes
Subsystems (7)
v2 cover usb: generic Kconfig fixes
This gets rid of some warnings, makes defconfigs smarter by having more proper dependencies, and general cleanups.
BTW, this is the reason USB_GADGET_MUSB_HDRC sometimes is not selected:
http://article.gmane.org/gmane.linux.kbuild.devel/5480
v2: comments by Felipe Balbi
Felipe Contreras (3):
usb: fix Kconfig warning
usb: trivial Kconfig cleanups
drivers: cleanup Kconfig stuff
drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/core/Kconfig | 3 --- drivers/usb/gadget/Kconfig | 16 ++-------------- drivers/usb/musb/Kconfig | 23 ++++++----------------- drivers/usb/otg/Kconfig | 2 ++ 6 files changed, 13 insertions(+), 35 deletions(-)
Signature · 1 line
1.7.3.1.2.g7fe2b
PATCH v2 1/3 usb: fix Kconfig warning
warning: (USB_MUSB_HDRC_HCD && USB_SUPPORT && USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG) && USB_GADGET_MUSB_HDRC || USB_MUSB_OTG && <choice> && USB && USB_GADGET && PM && EXPERIMENTAL) selects USB_OTG which has unmet direct dependencies (USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD)
This doesn't seem to happen on 2.6.36-rc8, but still doesn't make sense to keep this duplicated config that is already defined in usb/core.
--- drivers/usb/gadget/Kconfig | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-)
drivers/usb/gadget/Kconfig +0 -10
@@ -209,17 +209,6 @@ config USB_OMAP default USB_GADGET select USB_GADGET_SELECTED -config USB_OTG - boolean "OTG Support" - depends on USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD - help - The most notable feature of USB OTG is support for a - "Dual-Role" device, which can act as either a device - or a host. The initial role choice can be changed - later, when two dual-role devices talk to each other. - - Select this only if your OMAP board has a Mini-AB connector.
Re: [PATCH v2 1/3] usb: fix Kconfig warning
Quoted 10 lines · Felipe Contreras
warning: (
USB_MUSB_HDRC_HCD&&USB_SUPPORT&&USB_MUSB_HDRC&& (USB_MUSB_HOST||USB_MUSB_OTG) &&USB_GADGET_MUSB_HDRC||USB_MUSB_OTG&& <choice> && USB &&USB_GADGET&& PM && EXPERIMENTAL) selectsUSB_OTGwhich has unmet direct dependencies (USB_GADGET_OMAP&&ARCH_OMAP_OTG&&USB_OHCI_HCD)This doesn't seem to happen on 2.6.36-rc8, but still doesn't make sense to keep this duplicated config that is already defined in usb/core.
Signed-off-by Felipe Contreras <[email protected]>
Since this is related to MUSB, Greg to do you want me to queue for -rc0 cycle and re-send for you ?
Signature · 5 lines
balbi -- 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
Re: [PATCH v2 1/3] usb: fix Kconfig warning
Quoted 7 lines · Felipe Balbi
Quoted 6 lines · Felipe Contreras
warning: (
USB_MUSB_HDRC_HCD&&USB_SUPPORT&&USB_MUSB_HDRC&& (USB_MUSB_HOST||USB_MUSB_OTG) &&USB_GADGET_MUSB_HDRC||USB_MUSB_OTG&& <choice> && USB &&USB_GADGET&& PM && EXPERIMENTAL) selectsUSB_OTGwhich has unmet direct dependencies (USB_GADGET_OMAP&&ARCH_OMAP_OTG&&USB_OHCI_HCD)
Quoted 7 lines
Quoted 4 lines
This doesn't seem to happen on 2.6.36-rc8, but still doesn't make sense to keep this duplicated config that is already defined in usb/core.
Signed-off-by Felipe Contreras <[email protected]>Since this is related to MUSB, Greg to do you want me to queue for -rc0 cycle and re-send for you ?
If you ack this patch, I'll be glad to take it as-is.
thanks,
greg k-h
Re: [PATCH v2 1/3] usb: fix Kconfig warning
In reply to Felipe ContrerasQuoted 9 lines · Felipe Contreras
warning: (
USB_MUSB_HDRC_HCD&&USB_SUPPORT&&USB_MUSB_HDRC&& (USB_MUSB_HOST||USB_MUSB_OTG) &&USB_GADGET_MUSB_HDRC||USB_MUSB_OTG&& <choice> && USB &&USB_GADGET&& PM && EXPERIMENTAL) selectsUSB_OTGwhich has unmet direct dependencies (USB_GADGET_OMAP&&ARCH_OMAP_OTG&&USB_OHCI_HCD)This doesn't seem to happen on 2.6.36-rc8, but still doesn't make sense to keep this duplicated config that is already defined in usb/core.
Quoted 29 lines
Signed-off-by Felipe Contreras <[email protected]>---
drivers/usb/gadget/Kconfig| 11 -----------1 files changed, 0 insertions(+), 11 deletions(-)drivers/usb/gadget/Kconfig +0
-11@@ -209,17 +209,6 @@ config USB_OMAP default USB_GADGET select USB_GADGET_SELECTED -config USB_OTG - boolean "OTG Support" - depends on USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD - help - The most notable feature of USB OTG is support for a - "Dual-Role" device, which can act as either a device - or a host. The initial role choice can be changed - later, when two dual-role devices talk to each other. - - Select this only if your OMAP board has a Mini-AB connector. -config
USB_GADGET_PXA25Xboolean "PXA 25x or IXP 4xx" depends on (ARCH_PXA && PXA25x) || ARCH_IXP4XXSignature · 1 line
1.7.3.1.2.g7fe2b
Signature · 5 lines
balbi -- 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
PATCH v2 2/3 usb: trivial Kconfig cleanups
In reply to Felipe ContrerasNote: USB_GADGET_MUSB_HDRC is already defined in usb/gadget.
--- drivers/usb/core/Kconfig | 3 --- drivers/usb/gadget/Kconfig | 2 +- drivers/usb/musb/Kconfig | 17 ++++------------- 3 files changed, 5 insertions(+), 17 deletions(-)
drivers/usb/core/Kconfig +0 -3
@@ -110,8 +110,6 @@ config USB_OTG bool depends on USB && EXPERIMENTAL depends on USB_SUSPEND - default n - config USB_OTG_WHITELIST bool "Rely on OTG Targeted Peripherals List"
@@ -139,4 +137,3 @@ config USB_OTG_BLACKLIST_HUB external hubs. OTG hosts are allowed to reduce hardware and software costs by not supporting external hubs. So are "Embedded Hosts" that don't offer OTG support. -
drivers/usb/gadget/Kconfig +1 -1
@@ -125,7 +125,6 @@ choice config USB_GADGET_AT91 boolean "Atmel AT91 USB Device Port" depends on ARCH_AT91 && !ARCH_AT91SAM9RL && !ARCH_AT91CAP9 && !ARCH_AT91SAM9G45 - select USB_GADGET_SELECTED help Many Atmel AT91 processors (such as the AT91RM2000) have a full speed USB Device Port with support for five configurable
@@ -139,6 +138,7 @@ config USB_AT91 tristate depends on USB_GADGET_AT91 default USB_GADGET + select USB_GADGET_SELECTED config USB_GADGET_ATMEL_USBA boolean "Atmel USBA"
drivers/usb/musb/Kconfig +4 -13
@@ -8,12 +8,12 @@ comment "Enable Host or Gadget support to see Inventra options" # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller config USB_MUSB_HDRC + tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' depends on (USB || USB_GADGET) depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523)) select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) select TWL4030_USB if MACH_OMAP_3430SDP select USB_OTG_UTILS - tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' help Say Y here if your system has a dual role high speed USB controller based on the Mentor Graphics silicon IP. Then
@@ -79,8 +79,8 @@ choice # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support; # OTG needs both roles, not just USB_MUSB_HOST. config USB_MUSB_HOST - depends on USB bool "USB Host" + depends on USB help Say Y here if your system supports the USB host role. If it has a USB "A" (rectangular), "Mini-A" (uncommon),
@@ -90,8 +90,8 @@ config USB_MUSB_HOST # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral # side support ... OTG needs both roles config USB_MUSB_PERIPHERAL - depends on USB_GADGET bool "USB Peripheral (gadget stack)" + depends on USB_GADGET select USB_GADGET_MUSB_HDRC help Say Y here if your system supports the USB peripheral role.
@@ -100,8 +100,8 @@ config USB_MUSB_PERIPHERAL (With a "Mini-AB" connector, you should enable USB OTG.) config USB_MUSB_OTG - depends on USB && USB_GADGET && PM && EXPERIMENTAL bool "Both host and peripheral: USB OTG (On The Go) Device" + depends on USB && USB_GADGET && PM && EXPERIMENTAL select USB_GADGET_MUSB_HDRC select USB_OTG help
@@ -125,14 +125,6 @@ config USB_MUSB_OTG endchoice -# enable peripheral support (including with OTG) -config USB_GADGET_MUSB_HDRC - bool - depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG) -# default y -# select USB_GADGET_DUALSPEED -# select USB_GADGET_SELECTED - # enables host support (including with OTG) config USB_MUSB_HDRC_HCD bool
@@ -140,7 +132,6 @@ config USB_MUSB_HDRC_HCD select USB_OTG if USB_GADGET_MUSB_HDRC default y - config MUSB_PIO_ONLY bool 'Disable DMA (always use PIO)' depends on USB_MUSB_HDRC
Signature · 1 line
1.7.3.1.2.g7fe2b
Re: [PATCH v2 2/3] usb: trivial Kconfig cleanups
Quoted 3 lines · Felipe Contreras
Note:
USB_GADGET_MUSB_HDRCis already defined in usb/gadget.Signed-off-by Felipe Contreras <[email protected]>
Please describe _what_ trivial cleanups you did, and why you did them. Care to resend?
thanks,
greg k-h
--
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
Re: [PATCH v2 2/3] usb: trivial Kconfig cleanups
Quoted 7 lines · Greg KH
Quoted 3 lines · Felipe Contreras
Note:
USB_GADGET_MUSB_HDRCis already defined in usb/gadget.Signed-off-by Felipe Contreras <[email protected]>Please describe _what_ trivial cleanups you did, and why you did them. Care to resend?
How about:
Shuffle the code a bit so the description is at the top, remove duplicated configs (USB_GADGET_MUSB_HDRC), 'default n' is redundant, and USB_GADGET_SELECTED should go after USB_GADGET (on the appropriate config).
Signature · 1 line
Felipe Contreras
Re: [PATCH v2 2/3] usb: trivial Kconfig cleanups
Quoted 6 lines · Felipe Contreras
Quoted 5 lines · Greg KH
Quoted 3 lines · Felipe Contreras
Note:
USB_GADGET_MUSB_HDRCis already defined in usb/gadget.Signed-off-by Felipe Contreras <[email protected]>
Quoted 8 lines
Quoted 2 lines
Please describe _what_ trivial cleanups you did, and why you did them. Care to resend?
How about:
Shuffle the code a bit so the description is at the top, remove duplicated configs (USB_GADGET_MUSB_HDRC), 'default n' is redundant, andUSB_GADGET_SELECTEDshould go afterUSB_GADGET(on the appropriate config).
Sounds good, but you need to resend it with this information in it, not much I can do with it in an independant email.
thanks,
greg k-h
Re: [PATCH v2 2/3] usb: trivial Kconfig cleanups
Quoted 10 lines · Greg KH
Quoted 9 lines · Felipe Contreras
Quoted 7 lines · Greg KH
Quoted 3 lines · Felipe Contreras
Note:
USB_GADGET_MUSB_HDRCis already defined in usb/gadget.Signed-off-by Felipe Contreras <[email protected]>Please describe _what_ trivial cleanups you did, and why you did them. Care to resend?
Quoted 8 lines
Quoted 5 lines
How about:
Shuffle the code a bit so the description is at the top, remove duplicated configs (USB_GADGET_MUSB_HDRC), 'default n' is redundant, andUSB_GADGET_SELECTEDshould go afterUSB_GADGET(on the appropriate config).Sounds good, but you need to resend it with this information in it, not much I can do with it in an independant email.
I know that, I just wanted to see if it was ok before resending so I don't resend another time.
Signature · 5 lines
Felipe Contreras -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 2/3] usb: trivial Kconfig cleanups
In reply to Felipe ContrerasQuoted 7 lines · Felipe Contreras
Note:
USB_GADGET_MUSB_HDRCis already defined in usb/gadget.Signed-off-by Felipe Contreras <[email protected]>---
drivers/usb/core/Kconfig | 3 --- drivers/usb/gadget/Kconfig | 2 +- drivers/usb/musb/Kconfig | 17 ++++-------------
for drivers/usb/musb/Kconfig:
Signature · 1 line
balbi
PATCH v2 3/3 drivers: cleanup Kconfig stuff
In reply to Felipe ContrerasAdd missing dependencies, and remove redundant ones, and select sensible defaults.
--- drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/gadget/Kconfig | 3 +-- drivers/usb/musb/Kconfig | 6 ++---- drivers/usb/otg/Kconfig | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)
drivers/mfd/Kconfig +2 -1
@@ -156,6 +156,7 @@ config MENELAUS config TWL4030_CORE bool "Texas Instruments TWL4030/TWL5030/TWL6030/TPS659x0 Support" depends on I2C=y && GENERIC_HARDIRQS + default y if ARCH_OMAP3 || ARCH_OMAP4 help Say yes here if you have TWL4030 / TWL6030 family chip on your board. This core driver provides register access and IRQ handling
@@ -169,7 +170,7 @@ config TWL4030_CORE config TWL4030_POWER bool "Support power resources on TWL4030 family chips" - depends on TWL4030_CORE && ARM + depends on TWL4030_CORE help Say yes here if you want to use the power resources on the TWL4030 family chips. Most of these resources are regulators,
drivers/regulator/Kconfig +1 -0
@@ -111,6 +111,7 @@ config REGULATOR_MAX8998 config REGULATOR_TWL4030 bool "TI TWL4030/TWL5030/TWL6030/TPS695x0 PMIC" depends on TWL4030_CORE + default y help This driver supports the voltage regulators provided by this family of companion chips.
drivers/usb/gadget/Kconfig +1 -2
@@ -111,7 +111,6 @@ config USB_GADGET_SELECTED # choice prompt "USB Peripheral Controller" - depends on USB_GADGET help A USB device uses a controller to talk to its host. Systems should have only one such upstream link.
@@ -191,7 +190,6 @@ config USB_GADGET_OMAP boolean "OMAP USB Device Controller" depends on ARCH_OMAP select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_H4_OTG - select USB_OTG_UTILS if ARCH_OMAP help Many Texas Instruments OMAP processors have flexible full speed USB device controllers, with support for up to 30
@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRC help The Nokia composite gadget provides support for acm, obex and phonet in only one composite gadget driver.
drivers/usb/musb/Kconfig +2 -4
@@ -11,8 +11,7 @@ config USB_MUSB_HDRC tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' depends on (USB || USB_GADGET) depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523)) - select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) - select TWL4030_USB if MACH_OMAP_3430SDP + depends on (NOP_USB_XCEIV || TWL4030_USB) select USB_OTG_UTILS help Say Y here if your system has a dual role high speed USB
@@ -59,8 +58,7 @@ comment "Blackfin high speed USB Support" config USB_TUSB6010 boolean "TUSB 6010 support" - depends on USB_MUSB_HDRC && !USB_MUSB_SOC - select NOP_USB_XCEIV + depends on USB_MUSB_HDRC && !USB_MUSB_SOC && NOP_USB_XCEIV default y help The TUSB 6010 chip, from Texas Instruments, connects a discrete
drivers/usb/otg/Kconfig +2 -0
@@ -53,6 +53,7 @@ config TWL4030_USB tristate "TWL4030 USB Transceiver Driver" depends on TWL4030_CORE && REGULATOR_TWL4030 select USB_OTG_UTILS + default y if ARCH_OMAP3 help Enable this to support the USB OTG transceiver on TWL4030 family chips (including the TWL5030 and TPS659x0 devices).
@@ -62,6 +63,7 @@ config TWL4030_USB config NOP_USB_XCEIV tristate "NOP USB Transceiver Driver" select USB_OTG_UTILS + default y if ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN help this driver is to be used by all the usb transceiver which are either built-in with usb ip or which are autonomous and doesn't require any
Signature · 1 line
1.7.3.1.2.g7fe2b
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Review
Quoted 3 lines · Felipe Contreras
(quoted diff) +3
-0+ depends on (NOP_USB_XCEIV || TWL4030_USB) + default y if ARCH_OMAP3 + default y if ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN
it could be only me, but I see these kind of dependencies tend to disaster. They can all grow to infinity. Soon, we will have another twl family of devices, or we will have another MACH_* which will need nop_xceiv, etc etc.
Signature · 5 lines
balbi -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 10 lines · Felipe Balbi
Quoted 4 lines · Felipe Contreras
+ depends on (
NOP_USB_XCEIV||TWL4030_USB)
+ default y ifARCH_OMAP3
+ default y ifARCH_DAVINCI||MACH_OMAP3EVM|| BLACKFINit could be only me, but I see these kind of dependencies tend to disaster. They can all grow to infinity. Soon, we will have another twl family of devices, or we will have another MACH_* which will need
nop_xceiv, etc etc.
The USB_MUSB_HDRC dependency on NOP_USB_XCEIV || TWL4030_USB is already there, I'm just making it explicit. The rest are not dependencies, just sensible defaults, and they are already in drivers/usb/musb/Kconfig, I'm just moving them.
If you have a better approach to avoid manually selecting TWL4030_USB on defconfigs, and making sure USB_MUSB_HDRC works, please share it.
Signature · 1 line
Felipe Contreras
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Quoted 4 lines · Felipe Contreras
The
USB_MUSB_HDRCdependency onNOP_USB_XCEIV||TWL4030_USBis already there, I'm just making it explicit. The rest are not dependencies, just sensible defaults, and they are already indrivers/usb/musb/Kconfig, I'm just moving them.
might be true, but what will happen is that other developers will just "follow what's in the tree" so they'll keep on adding more and more "sesible defaults" to this line.
Linus had some really good comments about Kconfig usage some time ago and I'm sure he wouldn't like us adding "sensible defaults" all over the place.
Quoted 2 lines
If you have a better approach to avoid manually selecting
TWL4030_USBon defconfigs, and making sureUSB_MUSB_HDRCworks, please share it.
that's the thing. Currently, I don't think it should be automatic as we can only have one transceiver structure. Look into drivers/usb/otg/otg.c, it's just a static global pointer on that file, which prevents us from having a working solution if you enable more than one transceiver.
Ideally there would be a class or something similar to allow us to register N transceiver and use the correct one in runtime, that would make distro-makers' life easier. It'll probably help Linaro also at some point, but as of today, enabling more than one transceiver will never work.
Signature · 5 lines
balbi -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 10 lines · Felipe Balbi
Quoted 5 lines · Felipe Contreras
The
USB_MUSB_HDRCdependency onNOP_USB_XCEIV||TWL4030_USBis already there, I'm just making it explicit. The rest are not dependencies, just sensible defaults, and they are already indrivers/usb/musb/Kconfig, I'm just moving them.might be true, but what will happen is that other developers will just "follow what's in the tree" so they'll keep on adding more and more "sesible defaults" to this line.
That is actually the intention.
Quoted 3 lines
Linus had some really good comments about
Kconfigusage some time ago and I'm sure he wouldn't like us adding "sensible defaults" all over the place.
It's the other way around. He wanted to get rid of defconfigs completely by moving the complexity to Kconfigs:
http://article.gmane.org/gmane.linux.kernel/994720
http://article.gmane.org/gmane.linux.kernel/994706
http://article.gmane.org/gmane.linux.kernel/994718
You seem to be pushing for the exact opposite; keep the complexity on the defconfigs and the burden on the user creating configs.
Quoted 9 lines
Quoted 2 lines
If you have a better approach to avoid manually selecting
TWL4030_USBon defconfigs, and making sureUSB_MUSB_HDRCworks, please share it.that's the thing. Currently, I don't think it should be automatic as we can only have one transceiver structure. Look into
drivers/usb/otg/otg.c, it's just a static global pointer on that file, which prevents us from having a working solution if you enable more than one transceiver.
Quoted 5 lines
Ideally there would be a class or something similar to allow us to register N transceiver and use the correct one in runtime, that would make distro-makers' life easier. It'll probably help Linaro also at some point, but as of today, enabling more than one transceiver will never work.
Ok. But for now 'default y if ARCH_OMAP3' for TWL4030_USB doesn't hurt, nor increases the total size of Kconfigs, and solves a real problem.
Signature · 1 line
Felipe Contreras
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Quoted 1 line · Felipe Contreras
That is actually the intention.
so it's a bit messed up one :-p
Quoted 2 lines
It's the other way around. He wanted to get rid of defconfigs completely by moving the complexity to Kconfigs:
Yes, but he was suggesting to add things like Kconfig.rx51 and that would be selecting correct drivers to get rx51 working, he was definitely not suggesting to add sensible defaults all over the tree.
Quoted 6 lines
http://article.gmane.org/gmane.linux.kernel/994720
http://article.gmane.org/gmane.linux.kernel/994706
http://article.gmane.org/gmane.linux.kernel/994718You seem to be pushing for the exact opposite; keep the complexity on the defconfigs and the burden on the user creating configs.
no, you got me wrong. We do need to get rid of defconfigs, but we have to do so while keeping the resulting binary working and as of today, if you enable more than one transceiver driver, it won't work.
Quoted 3 lines
Ok. But for now 'default y if
ARCH_OMAP3' forTWL4030_USBdoesn't hurt, nor increases the total size of Kconfigs, and solves a real problem.
I don't see it that way. I see that there will be boards with one too many transceivers enabled and the resulting binary won't work, but I'll leave that for Greg to decide.
Signature · 1 line
balbi
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 5 lines · Felipe Balbi
Quoted 2 lines · Felipe Contreras
That is actually the intention.
so it's a bit messed up one :-p
Why? It makes configurations simpler.
Quoted 6 lines
Quoted 2 lines
It's the other way around. He wanted to get rid of defconfigs completely by moving the complexity to Kconfigs:
Yes, but he was suggesting to add things like
Kconfig.rx51and that would be selecting correct drivers to get rx51 working, he was definitely not suggesting to add sensible defaults all over the tree.
There are two parts, one part is to fix the Kconfigs, and another was to come up with a way to replace the horrible defconfigs. Part two is mostly fixed thanks to 'make savedefconfig', since the defconfigs are not so horrible any more, but part one is a continued effort.
For part two Linus had the idea to use Kconfigs instead of defconfigs, but they would mostly look very similar to the current ones generated by 'make savedefconfig'.
I don't know what makes you think Linus didn't want part one to be done. He wanted the Kconfig.rx51 to be human readable, and you are proposing that TWL4030_USB should be manually added there... I don't think TWL4030_USB says anything to human beings.
See the last link:
---
It's often tedious for other cases too ("I just want to enable a particular driver, what do I need to do so?")
---
Quoted 10 lines
Quoted 6 lines
http://article.gmane.org/gmane.linux.kernel/994720
http://article.gmane.org/gmane.linux.kernel/994706
http://article.gmane.org/gmane.linux.kernel/994718You seem to be pushing for the exact opposite; keep the complexity on the defconfigs and the burden on the user creating configs.
no, you got me wrong. We do need to get rid of defconfigs, but we have to do so while keeping the resulting binary working and as of today, if you enable more than one transceiver driver, it won't work.
Yes, but how do you get rid of the defconfig while also having a working USB_G_NOKIA? Somehow a transceiver should be automatically selected.
Quoted 7 lines
Quoted 3 lines
Ok. But for now 'default y if
ARCH_OMAP3' forTWL4030_USBdoesn't hurt, nor increases the total size of Kconfigs, and solves a real problem.I don't see it that way. I see that there will be boards with one too many transceivers enabled and the resulting binary won't work, but I'll leave that for Greg to decide.
That is no change from the current situation; you can still have two transceivers. My patch is not changing that.
The issue you are pointing out is a separate one, and I can write a patch for that... basically:
config NOP_USB_XCEIV
depends !TWL4030_USB
config TWL4030_USB
depends !NOP_USB_XCEIV
Signature · 5 lines
Felipe Contreras -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
(already at home so using personal email)
Quoted 5 lines · Felipe Contreras
There are two parts, one part is to fix the Kconfigs, and another was to come up with a way to replace the horrible defconfigs. Part two is mostly fixed thanks to 'make savedefconfig', since the defconfigs are not so horrible any more, but part one is a continued effort.
Quoted 8 lines
For part two Linus had the idea to use Kconfigs instead of defconfigs, but they would mostly look very similar to the current ones generated by 'make savedefconfig'.
I don't know what makes you think Linus didn't want part one to be done. He wanted the
Kconfig.rx51to be human readable, and you are proposing thatTWL4030_USBshould be manually added there... I don't thinkTWL4030_USBsays anything to human beings.
I don't read anywhere Linus saying we should clutter drivers/*/Kconfig with defaults. I think you're inverting things, it's much better to select TWL4030_USB when you enable MACH_OMAP_RX51 then default y if MACH_OMAP_RX51.
Quoted 3 lines
Yes, but how do you get rid of the defconfig while also having a working
USB_G_NOKIA? Somehow a transceiver should be automatically selected.
and you do that selection when the board is enabled otherwise the drivers Kconfig will be cluttered with default Y if blabla.
But like I said before, it's Greg's ball. Personally, I think you're taking the wrong approach.
Signature · 5 lines
balbi -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 16 lines · Felipe Balbi
Quoted 5 lines · Felipe Contreras
There are two parts, one part is to fix the Kconfigs, and another was to come up with a way to replace the horrible defconfigs. Part two is mostly fixed thanks to 'make savedefconfig', since the defconfigs are not so horrible any more, but part one is a continued effort.
Quoted 8 lines
For part two Linus had the idea to use Kconfigs instead of defconfigs, but they would mostly look very similar to the current ones generated by 'make savedefconfig'.
I don't know what makes you think Linus didn't want part one to be done. He wanted the
Kconfig.rx51to be human readable, and you are proposing thatTWL4030_USBshould be manually added there... I don't thinkTWL4030_USBsays anything to human beings.
Quoted 4 lines
I don't read anywhere Linus saying we should clutter
drivers/*/Kconfigwith defaults. I think you're inverting things, it's much better to selectTWL4030_USBwhen you enableMACH_OMAP_RX51then default y ifMACH_OMAP_RX51.
So say, if you have 100 board defconfigs with OMAP3 chips and TWL4030, each and every one of them should select both USB_MUSB_HDRC and TWL4030_USB?
And you are saying if somebody is doing 'make menuconfig', that person should somehow know that _obviously_ he needs TWL4030_USB in order to use USB_MUSB_HDRC, or USB_G_NOKIA?
That's precisely the opposite to:
---
It's often tedious for other cases too ("I just want to enable a particular driver, what do I need to do so?")
---
---
In other words, you _can_ encode the information that is in the xyz_defconfig files by doing it in Kconfig.xyz files instead. But you do it in a human-readable manner. And the hierarchical thing is absolutely required for that - otherwise you'd end up with just another form of the current xyz_defconfig.
---
Quoted 6 lines
Quoted 3 lines
Yes, but how do you get rid of the defconfig while also having a working
USB_G_NOKIA? Somehow a transceiver should be automatically selected.and you do that selection when the board is enabled otherwise the drivers
Kconfigwill be cluttered with default Y if blabla.
If you can imagine a hierarchy like:
drivers/usb/otg/Kconfig
arch/arm/mach-omap2/Kconfig
^ arch/arm/mach-omap2/boards/Kconfig.n900
You would want TWL4030_USB to be up in the hierarchy, so that you don't have to add one extra line to each and every board file.
But in fact, you don't want TWL4030_USB on the Kconfig because not everyone might want/need USB support. That should be selected by the user, and asking the user to somehow know that he needs both TWL4030_USB and USB_MUSB_HDRC is way too much to ask in my opinion.
The idea would be to keep Kconfig.n900 so minimal that it's not needed at all.
Signature · 1 line
Felipe Contreras
Tony Lindgren
maintainerRe: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 22 lines · Felipe Contreras
Quoted 16 lines · Felipe Balbi
Quoted 5 lines · Felipe Contreras
There are two parts, one part is to fix the Kconfigs, and another was to come up with a way to replace the horrible defconfigs. Part two is mostly fixed thanks to 'make savedefconfig', since the defconfigs are not so horrible any more, but part one is a continued effort.
Quoted 8 lines
For part two Linus had the idea to use Kconfigs instead of defconfigs, but they would mostly look very similar to the current ones generated by 'make savedefconfig'.
I don't know what makes you think Linus didn't want part one to be done. He wanted the
Kconfig.rx51to be human readable, and you are proposing thatTWL4030_USBshould be manually added there... I don't thinkTWL4030_USBsays anything to human beings.Quoted 4 lines
I don't read anywhere Linus saying we should clutter
drivers/*/Kconfigwith defaults. I think you're inverting things, it's much better to selectTWL4030_USBwhen you enableMACH_OMAP_RX51then default y ifMACH_OMAP_RX51.
Quoted 7 lines
So say, if you have 100 board defconfigs with OMAP3 chips and TWL4030, each and every one of them should select both
USB_MUSB_HDRCandTWL4030_USB?And you are saying if somebody is doing 'make menuconfig', that person should somehow know that _obviously_ he needs
TWL4030_USBin order to useUSB_MUSB_HDRC, orUSB_G_NOKIA?
Hey we're already dealing with stuff like this :)
See ARCH_OMAP2PLUS_TYPICAL in arch/arm/mach-omap2/Kconfig:
config ARCH_OMAP2PLUS_TYPICAL
bool "Typical OMAP configuration"
default y
select AEABI
select REGULATOR
select PM
select PM_RUNTIME
select VFP
select NEON if ARCH_OMAP3 || ARCH_OMAP4 select SERIAL_OMAP
select SERIAL_OMAP_CONSOLE
select I2C
select I2C_OMAP
select MFD
select MENELAUS if ARCH_OMAP2
select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4 help
Compile a kernel suitable for booting most boards
This actually produces a booting omap2+ kernel with no .config at all. I've tested it with:
$ echo CONFIG_ARCH_OMAP=y > .config $ yes "" | ARCH=arm make oldconfig
So if you have something that's needed on almost every omap, you can select it there.
Regards,
Tony
--
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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 55 lines · Tony Lindgren
Quoted 22 lines · Felipe Contreras
Quoted 16 lines · Felipe Balbi
Quoted 5 lines · Felipe Contreras
There are two parts, one part is to fix the Kconfigs, and another was to come up with a way to replace the horrible defconfigs. Part two is mostly fixed thanks to 'make savedefconfig', since the defconfigs are not so horrible any more, but part one is a continued effort.
Quoted 8 lines
For part two Linus had the idea to use Kconfigs instead of defconfigs, but they would mostly look very similar to the current ones generated by 'make savedefconfig'.
I don't know what makes you think Linus didn't want part one to be done. He wanted the
Kconfig.rx51to be human readable, and you are proposing thatTWL4030_USBshould be manually added there... I don't thinkTWL4030_USBsays anything to human beings.Quoted 4 lines
I don't read anywhere Linus saying we should clutter
drivers/*/Kconfigwith defaults. I think you're inverting things, it's much better to selectTWL4030_USBwhen you enableMACH_OMAP_RX51then default y ifMACH_OMAP_RX51.Quoted 7 lines
So say, if you have 100 board defconfigs with OMAP3 chips and TWL4030, each and every one of them should select both
USB_MUSB_HDRCandTWL4030_USB?And you are saying if somebody is doing 'make menuconfig', that person should somehow know that _obviously_ he needs
TWL4030_USBin order to useUSB_MUSB_HDRC, orUSB_G_NOKIA?Hey we're already dealing with stuff like this :)
See
ARCH_OMAP2PLUS_TYPICALinarch/arm/mach-omap2/Kconfig:config
ARCH_OMAP2PLUS_TYPICAL
bool "Typical OMAP configuration"
default y
select AEABI
select REGULATOR
select PM
selectPM_RUNTIME
select VFP
select NEON ifARCH_OMAP3||ARCH_OMAP4selectSERIAL_OMAP
selectSERIAL_OMAP_CONSOLE
select I2C
selectI2C_OMAP
select MFD
select MENELAUS ifARCH_OMAP2
selectTWL4030_COREifARCH_OMAP3||ARCH_OMAP4selectTWL4030_POWERifARCH_OMAP3||ARCH_OMAP4help
Compile a kernel suitable for booting most boards
Quoted 8 lines
This actually produces a booting omap2+ kernel with no .config at all. I've tested it with:
$ echo CONFIG_ARCH_OMAP=y > .config $ yes "" | ARCH=arm make oldconfigSo if you have something that's needed on almost every omap, you can select it there.
One thing I don't like about this is that there is currently no way to 'select' as a module.
In order to get to a minimal kernel, in theory, we don't need regulator, i2c, MFD, or twl4030* built in. They should all be built as modules. Yes, there are some assumptions made today that some of these things are built in, and then are used from init code, but that is broken.
If someone is looking for a good omap-kernel-janitors project, I would suggest getting to a *really* minimal OMAP2+ kernel with everything possible built as modules to be a very good project.
Kevin
Tony Lindgren
maintainerRe: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 5 lines · Kevin Hilman
Quoted 4 lines · Tony Lindgren
This actually produces a booting omap2+ kernel with no .config at all. I've tested it with:
Quoted 8 lines
Quoted 5 lines
$ echo CONFIG_ARCH_OMAP=y > .config $ yes "" | ARCH=arm make oldconfigSo if you have something that's needed on almost every omap, you can select it there.
One thing I don't like about this is that there is currently no way to 'select' as a module.
I think that would take two passes to do currently for the depenencies.. But we can certainly select all the omap drivers as modules in omap2plus_defconfig.
Quoted 4 lines
In order to get to a minimal kernel, in theory, we don't need regulator, i2c, MFD, or twl4030* built in. They should all be built as modules. Yes, there are some assumptions made today that some of these things are built in, and then are used from init code, but that is broken.
I think the only thing keeping us from doing that is that most of the boards don't use initramfs. Without initramfs these are needed to mount root on MMC.
Quoted 3 lines
If someone is looking for a good omap-kernel-janitors project, I would suggest getting to a *really* minimal OMAP2+ kernel with everything possible built as modules to be a very good project.
Agreed. The way to do that is to set everything possible as modules in omap2plus_defconfig, and move to kernel + initramfs based booting like most distros do.
Regards,
Tony
--
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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Kevin HilmanHi,
Quoted 2 lines · Kevin Hilman
One thing I don't like about this is that there is currently no way to 'select' as a module.
Yeah, I remember suggesting to add "module" to Kconfig language which would do the job of selecting as module.
Signature · 1 line
balbi
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Kevin HilmanQuoted 7 lines · Kevin Hilman
Quoted 2 lines · Tony Lindgren
So if you have something that's needed on almost every omap, you can select it there.
One thing I don't like about this is that there is currently no way to 'select' as a module.
Quoted 8 lines
In order to get to a minimal kernel, in theory, we don't need regulator, i2c, MFD, or twl4030* built in. They should all be built as modules. Yes, there are some assumptions made today that some of these things are built in, and then are used from init code, but that is broken.
If someone is looking for a good omap-kernel-janitors project, I would suggest getting to a *really* minimal OMAP2+ kernel with everything possible built as modules to be a very good project.
Yes, one use-case would be to select things as modules by default only if ARCH_OMAP2PLUS_TYPICAL is selected.
But not everyone needs many of these things, I expect to be able to do ARCH_OMAP2PLUS_TYPICAL=n, and manually enable USB stuff USB_MUSB_HDRC=y, without having to know the dependencies myself.
That was the idea: simplify the defconfigs so that they are truly minimal (they boot), and then people can add whatever they need (like USB).
Signature · 1 line
Felipe Contreras
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Felipe ContrerasHi Felipe,
Quoted 34 lines · ext Felipe Contreras
Add missing dependencies, and remove redundant ones, and select sensible defaults.
Signed-off-by Felipe Contreras<[email protected]>--- drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/gadget/Kconfig | 3 +-- drivers/usb/musb/Kconfig | 6 ++---- drivers/usb/otg/Kconfig | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)drivers/usb/gadget/Kconfig +0
-2@@ -111,7 +111,6 @@ config USB_GADGET_SELECTED # choice prompt "USB Peripheral Controller" - depends on USB_GADGET help A USB device uses a controller to talk to its host. Systems should have only one such upstream link.@@ -191,7 +190,6 @@ config USB_GADGET_OMAP boolean "OMAP USB Device Controller" depends on ARCH_OMAP select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_H4_OTG - select USB_OTG_UTILS if ARCH_OMAP help Many Texas Instruments OMAP processors have flexible full speed USB device controllers, with support for up to 30
drivers/usb/gadget/Kconfig config USB_CDC_COMPOSITE · line 844
Quoted 4 lines
drivers/usb/gadget/Kconfig +1
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRC
This is wrong. Is there a build problem or run-time problem without this?
Signature · 2 lines
regards, -roger
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi Roger,
Quoted 7 lines · Roger Quadros
Quoted 5 lines
(quoted diff) +0
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITEconfig
USB_G_NOKIA
tristate "Nokia composite gadget"
depends on PHONET
+ depends onUSB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Try:CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=n
At least g_nokia doesn't seem to work correctly on my N900.
Signature · 5 lines
Felipe Contreras -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 11 lines · ext Felipe Contreras
Hi Roger,
Quoted 7 lines · Roger Quadros
drivers/usb/gadget/Kconfig config USB_CDC_COMPOSITE · line 844
Quoted 5 lines
drivers/usb/gadget/Kconfig +1
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Quoted 6 lines
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=nAt least
g_nokiadoesn't seem to work correctly on my N900.
It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
You should set CONFIG_USB_GADGET_MUSB_HDRC to y somewhere else while building for N900 and not here because g_nokia is not MUSB specific.
Signature · 2 lines
regards, -roger
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 16 lines · Roger Quadros
Quoted 15 lines · ext Felipe Contreras
Hi Roger,
Quoted 7 lines · Roger Quadros
drivers/usb/gadget/Kconfig config USB_CDC_COMPOSITE · line 844
Quoted 5 lines
drivers/usb/gadget/Kconfig +1
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=n
Quoted 7 lines
Quoted 2 lines
At least
g_nokiadoesn't seem to work correctly on my N900.It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
You should set
CONFIG_USB_GADGET_MUSB_HDRCto y somewhere else while building for N900 and not here becauseg_nokiais not MUSB specific.
It's the same thing I've been trying to say. No gadget driver is controller-specific. Even though this one is called g_nokia.ko it doesn't only Nokia can use it, neither does it mean nokia will always use MUSB.
Signature · 1 line
balbi
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Roger QuadrosQuoted 16 lines · Roger Quadros
Quoted 15 lines · ext Felipe Contreras
Quoted 8 lines · Roger Quadros
Quoted 6 lines
(quoted diff) +0
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITEconfig
USB_G_NOKIA
tristate "Nokia composite gadget"
depends on PHONET
+ depends onUSB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=n
Quoted 7 lines
Quoted 2 lines
At least
g_nokiadoesn't seem to work correctly on my N900.It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
You should set
CONFIG_USB_GADGET_MUSB_HDRCto y somewhere else while building for N900 and not here becauseg_nokiais not MUSB specific.
How do you expect people to know that? The Kconfig should define what USB_G_NOKIA needs to work, so that people can enable those things without go Googling hunting for a workable defconfig. Right now people can build g_nokia modules that don't work, and that shouldn't be allowed by the Kconfig.
Signature · 5 lines
Felipe Contreras -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 22 lines · On 10/20/2010 11:53 AM, ext [email protected] wrote:
Quoted 21 lines · Roger Quadros
Quoted 11 lines · ext Felipe Contreras
Quoted 8 lines · Roger Quadros
drivers/usb/gadget/Kconfig config USB_CDC_COMPOSITE · line 844
Quoted 6 lines
drivers/usb/gadget/Kconfig +1
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Quoted 6 lines
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=nAt least
g_nokiadoesn't seem to work correctly on my N900.It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
Quoted 9 lines
Quoted 2 lines
You should set
CONFIG_USB_GADGET_MUSB_HDRCto y somewhere else while building for N900 and not here becauseg_nokiais not MUSB specific.How do you expect people to know that? The
Kconfigshould define whatUSB_G_NOKIAneeds to work, so that people can enable those things without go Googling hunting for a workable defconfig. Right now people can buildg_nokiamodules that don't work, and that shouldn't be allowed by theKconfig.
USB_G_NOKIA just needs a USB gadget controller to work. The gadget controller used for the board should come from the board's Kconfig which will ideally be supplied by the board's vendor.
For example, can't USB_GADGET_MUSB_HDRC be selected in MACH_NOKIA_RX51 in arch/arm/mach-omap2/Kconfig? or is there a better place to put it?
Signature · 2 lines
regards, -roger
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 38 lines · Roger Quadros
Quoted 27 lines · On 10/20/2010 11:53 AM, ext [email protected]…
Quoted 24 lines · Roger Quadros
Quoted 13 lines · ext Felipe Contreras
Quoted 9 lines · Roger Quadros
Quoted 6 lines
(quoted diff) +0
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITEconfig
USB_G_NOKIA
tristate "Nokia composite gadget"
depends on PHONET
+ depends onUSB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Quoted 6 lines
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=nAt least
g_nokiadoesn't seem to work correctly on my N900.It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
Quoted 9 lines
Quoted 2 lines
You should set
CONFIG_USB_GADGET_MUSB_HDRCto y somewhere else while building for N900 and not here becauseg_nokiais not MUSB specific.How do you expect people to know that? The
Kconfigshould define whatUSB_G_NOKIAneeds to work, so that people can enable those things without go Googling hunting for a workable defconfig. Right now people can buildg_nokiamodules that don't work, and that shouldn't be allowed by theKconfig.
Quoted 3 lines
USB_G_NOKIAjust needs a USB gadget controller to work. The gadget controller used for the board should come from the board'sKconfigwhich will ideally be supplied by the board's vendor.
Ok, but USB_OMAP is not supposed to work on the N900? (I tried and it didn't)
Quoted 2 lines
For example, can't
USB_GADGET_MUSB_HDRCbe selected inMACH_NOKIA_RX51inarch/arm/mach-omap2/Kconfig? or is there a better place to put it?
I don't think so, because people might not want USB at all. The ideal case would be for USB_GADGET_MUSB_HDRC to be selected automatically when the user selects USB and USB_GADGET, but that's not happening because USB_GADGET_OMAP is selected first (all the dependencies are met).
Signature · 5 lines
Felipe Contreras -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 39 lines · ext Felipe Contreras
Quoted 38 lines · Roger Quadros
Quoted 36 lines · On 10/20/2010 11:53 AM, ext [email protected] wrote:
Quoted 19 lines · Roger Quadros
Quoted 17 lines · ext Felipe Contreras
Quoted 9 lines · Roger Quadros
Review config USB_CDC_COMPOSITE · line 844
Quoted 6 lines
(quoted diff) +1
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=nQuoted 7 lines
Quoted 2 lines
At least
g_nokiadoesn't seem to work correctly on my N900.It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
You should set
CONFIG_USB_GADGET_MUSB_HDRCto y somewhere else while building for N900 and not here becauseg_nokiais not MUSB specific.How do you expect people to know that? The
Kconfigshould define whatUSB_G_NOKIAneeds to work, so that people can enable those things without go Googling hunting for a workable defconfig. Right now people can buildg_nokiamodules that don't work, and that shouldn't be allowed by theKconfig.
Quoted 5 lines
Quoted 3 lines
USB_G_NOKIAjust needs a USB gadget controller to work. The gadget controller used for the board should come from the board'sKconfigwhich will ideally be supplied by the board's vendor.Ok, but
USB_OMAPis not supposed to work on the N900? (I tried and it didn't)
No it won't work. USB_OMAP was for older OMAP's. MUSB is on OMAP3 and later. But MUSB is not limited to OMAP SoC.
Quoted 10 lines
Quoted 3 lines
For example, can't
USB_GADGET_MUSB_HDRCbe selected inMACH_NOKIA_RX51inarch/arm/mach-omap2/Kconfig? or is there a better place to put it?I don't think so, because people might not want USB at all. The ideal case would be for
USB_GADGET_MUSB_HDRCto be selected automatically when the user selects USB andUSB_GADGET, but that's not happening becauseUSB_GADGET_OMAPis selected first (all the dependencies are met).
Yes you are right. In think with the current setup (i.e. controller selection at kconfig and limitation to one controller per config) we will never be able to satisfy all users.
We might need to move to some kind of gadget controller framework and runtime controller selection to solve this problem.
Signature · 2 lines
regards, -roger
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 7 lines · Roger Quadros
Quoted 6 lines · ext Felipe Contreras
Quoted 3 lines · Roger Quadros
USB_G_NOKIAjust needs a USB gadget controller to work. The gadget controller used for the board should come from the board'sKconfigwhich will ideally be supplied by the board's vendor.
Quoted 5 lines
Quoted 2 lines
Ok, but
USB_OMAPis not supposed to work on the N900? (I tried and it didn't)No it won't work.
USB_OMAPwas for older OMAP's. MUSB is on OMAP3 and later. But MUSB is not limited to OMAP SoC.
config USB_GADGET_OMAP
depends ARCH_OMAP
So how about s/ARCH_OMAP/ARCH_OMAP1/
Then USB_GADGET_MUSB_HDRC would be selected by default on OMAP2+.
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
For example, can't
USB_GADGET_MUSB_HDRCbe selected inMACH_NOKIA_RX51inarch/arm/mach-omap2/Kconfig? or is there a better place to put it?I don't think so, because people might not want USB at all. The ideal case would be for
USB_GADGET_MUSB_HDRCto be selected automatically when the user selects USB andUSB_GADGET, but that's not happening becauseUSB_GADGET_OMAPis selected first (all the dependencies are met).
Quoted 6 lines
Yes you are right. In think with the current setup (i.e. controller selection at kconfig and limitation to one controller per config) we will never be able to satisfy all users.
We might need to move to some kind of gadget controller framework and runtime controller selection to solve this problem.
Definitely, for multi-omap. But for OMAP1/OMAP2+ setting ARCH_OMAP1 as I just suggested would do the trick.
Signature · 5 lines
Felipe Contreras -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Quoted 14 lines · ext Felipe Contreras
Quoted 7 lines · Roger Quadros
Quoted 6 lines · ext Felipe Contreras
Quoted 3 lines · Roger Quadros
USB_G_NOKIAjust needs a USB gadget controller to work. The gadget controller used for the board should come from the board'sKconfigwhich will ideally be supplied by the board's vendor.Quoted 5 lines
Quoted 2 lines
Ok, but
USB_OMAPis not supposed to work on the N900? (I tried and it didn't)No it won't work.
USB_OMAPwas for older OMAP's. MUSB is on OMAP3 and later. But MUSB is not limited to OMAP SoC.
Quoted 7 lines
config
USB_GADGET_OMAP
dependsARCH_OMAPSo how about s/ARCH_OMAP/ARCH_OMAP1/
Then
USB_GADGET_MUSB_HDRCwould be selected by default on OMAP2+.
But I'm not sure that omap_udc is used only for OMAP1 architecture. Dave/Tony should confirm this.
Signature · 2 lines
regards, -roger
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Quoted 2 lines · Roger Quadros
But I'm not sure that
omap_udcis used only for OMAP1 architecture. Dave/Tony should confirm this.
Maybe the old omap2420_h4 board still uses it, but from 2430 I think the ip isn't even there anymore.
Signature · 5 lines
balbi -- 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
Tony Lindgren
maintainerRe: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 8 lines · Felipe Balbi
Hi,
Quoted 2 lines · Roger Quadros
But I'm not sure that
omap_udcis used only for OMAP1 architecture. Dave/Tony should confirm this.Maybe the old
omap2420_h4board still uses it, but from 2430 I think the ip isn't even there anymore.
I don't think it's currently working on 2420. But still, the drivers should be platform independent. All the drivers that might be possible should at least build and not mess up things for other platforms.
Regards,
Tony
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Felipe ContrerasQuoted 39 lines · ext Felipe Contreras
Quoted 38 lines · Roger Quadros
Quoted 36 lines · On 10/20/2010 11:53 AM, ext [email protected] wrote:
Quoted 19 lines · Roger Quadros
Quoted 17 lines · ext Felipe Contreras
Quoted 9 lines · Roger Quadros
Review config USB_CDC_COMPOSITE · line 844
Quoted 6 lines
(quoted diff) +1
-0@@ -843,6 +841,7 @@ config USB_CDC_COMPOSITE config USB_G_NOKIA tristate "Nokia composite gadget" depends on PHONET + depends on USB_GADGET_MUSB_HDRCThis is wrong. Is there a build problem or run-time problem without this?
Try:
CONFIG_USB_G_NOKIA=yCONFIG_USB_GADGET_MUSB_HDRC=nQuoted 7 lines
Quoted 2 lines
At least
g_nokiadoesn't seem to work correctly on my N900.It won't work on N900 because N900 has MUSB USB gadget controller and it needs to be selected somehow while building for N900.
You should set
CONFIG_USB_GADGET_MUSB_HDRCto y somewhere else while building for N900 and not here becauseg_nokiais not MUSB specific.How do you expect people to know that? The
Kconfigshould define whatUSB_G_NOKIAneeds to work, so that people can enable those things without go Googling hunting for a workable defconfig. Right now people can buildg_nokiamodules that don't work, and that shouldn't be allowed by theKconfig.
Quoted 5 lines
Quoted 3 lines
USB_G_NOKIAjust needs a USB gadget controller to work. The gadget controller used for the board should come from the board'sKconfigwhich will ideally be supplied by the board's vendor.Ok, but
USB_OMAPis not supposed to work on the N900? (I tried and it didn't)
No it won't work. USB_OMAP was for older OMAP's. MUSB is on OMAP3 and later. But MUSB is not limited to OMAP SoC.
Quoted 10 lines
Quoted 3 lines
For example, can't
USB_GADGET_MUSB_HDRCbe selected inMACH_NOKIA_RX51inarch/arm/mach-omap2/Kconfig? or is there a better place to put it?I don't think so, because people might not want USB at all. The ideal case would be for
USB_GADGET_MUSB_HDRCto be selected automatically when the user selects USB andUSB_GADGET, but that's not happening becauseUSB_GADGET_OMAPis selected first (all the dependencies are met).
Yes you are right. I think with the current setup (i.e. controller selection at kconfig and limitation to one controller per config) we will never be able to satisfy all users.
We might need to move to some kind of gadget controller framework and run time controller selection to solve this problem.
Signature · 2 lines
regards, -roger
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Felipe ContrerasQuoted 1 line · Felipe Contreras
Ok, but
USB_OMAPis not supposed to work on the N900? (I tried and it didn't)
ooooh, that's old. That's from the omap1. It's the old omap_udc.c
Quoted 5 lines
I don't think so, because people might not want USB at all. The ideal case would be for
USB_GADGET_MUSB_HDRCto be selected automatically when the user selects USB andUSB_GADGET, but that's not happening becauseUSB_GADGET_OMAPis selected first (all the dependencies are met).
And how is that different from:
default y if ARCH_OMAP3 ? If you don't want USB at all, you'll disable it by hand, the default is on. Select on board Kconfig.
Signature · 1 line
balbi
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 6 lines · Felipe Balbi
Quoted 3 lines · Felipe Contreras
Ok, but
USB_OMAPis not supposed to work on the N900? (I tried and it didn't)ooooh, that's old. That's from the omap1. It's the old
omap_udc.c
Ok, then the dependency should be ARCH_OMAP1, not ARCH_OMAP.
Quoted 10 lines
Quoted 5 lines
I don't think so, because people might not want USB at all. The ideal case would be for
USB_GADGET_MUSB_HDRCto be selected automatically when the user selects USB andUSB_GADGET, but that's not happening becauseUSB_GADGET_OMAPis selected first (all the dependencies are met).And how is that different from:
default y if
ARCH_OMAP3? If you don't want USB at all, you'll disable it by hand, the default is on. Select on boardKconfig.
TWL4030_USB is inside drivers/usb/Kconfig and drivers/usb/otg/Kconfig, which means in order to achieve the same on the board config you would have to do:
default y if USB_SUPPORT && (USB || USB_GADGET) && ARCH_OMAP3
Seems to be more convoluted to me.
Besides, I think TWL4030_USB and the full description of it doesn't give any hints to the people reading drivers/usb/otg/Kconfig what is it used for. 'default y if ARCH_OMAP3' achieves that.
Plus, there is no big change:
config USB_MUSB_HDRC
- select TWL4030_USB if MACH_OMAP_3430SDP
config TWL4030_USB
+ default y if ARCH_OMAP3
Signature · 1 line
Felipe Contreras
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
hi,
Quoted 11 lines · Felipe Contreras
TWL4030_USBis insidedrivers/usb/Kconfiganddrivers/usb/otg/Kconfig, which means in order to achieve the same on the board config you would have to do:default y if
USB_SUPPORT&& (USB ||USB_GADGET) &&ARCH_OMAP3Seems to be more convoluted to me.
Besides, I think
TWL4030_USBand the full description of it doesn't give any hints to the people readingdrivers/usb/otg/Kconfigwhat is it used for. 'default y ifARCH_OMAP3' achieves that.
no it doesn't. No user will 'cat drivers/usb/otg/Kconfig | grep -A 10 TWL4030' and check the 'default y if ARCH_OMAP3
if you think help is not enough, fix help.
Review
Quoted 8 lines
Plus, there is no big change:
config
USB_MUSB_HDRC(quoted diff) +0
-1- select TWL4030_USB if MACH_OMAP_3430SDPconfig
TWL4030_USB(quoted diff) +1
-0+ default y if ARCH_OMAP3
what's the problem with:
arch/arm/mach-omap2/Kconfig +1 -0
@@ -215,6 +215,7 @@ config MACH_NOKIA_RX51 depends on ARCH_OMAP3 default y select OMAP_PACKAGE_CBB + select TWL4030_USB config MACH_OMAP_ZOOM2 bool "OMAP3 Zoom2 board"
Signature · 1 line
balbi
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 10 lines · Felipe Balbi
Quoted 9 lines · Felipe Contreras
TWL4030_USBis insidedrivers/usb/Kconfiganddrivers/usb/otg/Kconfig, which means in order to achieve the same on the board config you would have to do:default y if
USB_SUPPORT&& (USB ||USB_GADGET) &&ARCH_OMAP3Seems to be more convoluted to me.
Quoted 8 lines
Quoted 3 lines
Besides, I think
TWL4030_USBand the full description of it doesn't give any hints to the people readingdrivers/usb/otg/Kconfigwhat is it used for. 'default y ifARCH_OMAP3' achieves that.no it doesn't. No user will 'cat
drivers/usb/otg/Kconfig| grep -A 10 TWL4030' and check the 'default y ifARCH_OMAP3if you think help is not enough, fix help.
Users would not need to care... if they enable USB and USB_GADGET, it will be selected automatically for OMAP3, which is what users would expect.
I was talking more about developers.
How should the help be fixed?
"Select y if you are using an OMAP3 system that has TWL4030"
Quoted 16 lines
Quoted 8 lines
Plus, there is no big change:
config
USB_MUSB_HDRC
- selectTWL4030_USBifMACH_OMAP_3430SDPconfig
TWL4030_USB
+ default y ifARCH_OMAP3what's the problem with:
arch/arm/mach-omap2/Kconfig +0
-0@@ -215,6 +215,7 @@ config MACH_NOKIA_RX51
Quoted 7 lines
depends on
ARCH_OMAP3
default y
selectOMAP_PACKAGE_CBB
+ selectTWL4030_USB
configMACH_OMAP_ZOOM2
bool "OMAP3 Zoom2 board"
1) Do you think all the OMAP3 boards should add that?
2) What if you don't want to use USB?
Signature · 5 lines
Felipe Contreras -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Quoted 3 lines · Felipe Contreras
Users would not need to care... if they enable USB and
USB_GADGET, it will be selected automatically for OMAP3, which is what users would expect.
wouldn't a user expect USB to be enabled if the board _has_ a USB connector ?
Quoted 4 lines
I was talking more about developers.
How should the help be fixed?
"Select y if you are using an OMAP3 system that has TWL4030"
If you have the TWL4030 family of PMIC chips and want to use USB, you probably need this. If unsure, say Y.
Quoted 1 line
1) Do you think all the OMAP3 boards should add that?
why not ?
Quoted 1 line
2) What if you don't want to use USB?
what if you don't want to use USB and we use your choice of:
default y if ARCH_OMAP3 ??
what's the big difference ? The default will be "USB enabled" and if you don't want, just drop it. The thing is that in most cases we want to support what is wired on the board. RX51 has a USB micro-B connector, so by default we want USB peripheral enabled and host disabled. If a user (or developer for that matter) wants to play with the unsupported host mode on RX51, he will enable that part by himself and pray for it to work. If, on the other hand, a camera developer doesn't need USB at all and decides to save a few bytes on the binary, he will make sure to disable it.
The thing is that there's no way to make everybody happy, so we stick to what the board is wired to do.
Signature · 5 lines
balbi -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 8 lines · Felipe Balbi
Quoted 4 lines · Felipe Contreras
Users would not need to care... if they enable USB and
USB_GADGET, it will be selected automatically for OMAP3, which is what users would expect.wouldn't a user expect USB to be enabled if the board _has_ a USB connector ?
Not if it's not going to be used.
Quoted 7 lines
Quoted 4 lines
I was talking more about developers.
How should the help be fixed?
"Select y if you are using an OMAP3 system that has TWL4030"If you have the TWL4030 family of PMIC chips and want to use USB, you probably need this. If unsure, say Y.
If you see TWL4030_USB, it's because you have enabled USB_SUPPORT, so you want to use USB. And that help still doesn't say anything to most people.
Quoted 3 lines
Quoted 1 line
1) Do you think all the OMAP3 boards should add that?
why not ?
You prefer a patch that adds one line per board rather than a patch that adds one line in total... That is exactly the opposite of Linus's complaint regarding big ARM changesets.
Quoted 9 lines
Quoted 1 line
2) What if you don't want to use USB?
what if you don't want to use USB and we use your choice of:
default y if
ARCH_OMAP3??what's the big difference ? The default will be "USB enabled" and if you don't want, just drop it. The thing is that in most cases we want to support what is wired on the board.
For "most cases" there is 'default'.
Quoted 7 lines
RX51 has a USB micro-B connector, so
by default we want USB peripheral enabled and host disabled. If a user (or developer for that matter) wants to play with the unsupported host mode on RX51, he will enable that part by himself and pray for it to work. If, on the other hand, a camera developer doesn't need USB at all and decides to save a few bytes on the binary, he will make sure to disable it.
Your patch would not allow such camera developer to disable USB through the kernel configuration.
Quoted 2 lines
The thing is that there's no way to make everybody happy, so we stick to what the board is wired to do.
I don't understand, currently TWL4030_USB is not selected in any way, you are saying it should always be enabled (which I disagree with), but that's not currently happening. If anything, my patch is changing things to go into the direction you want, not the opposite.
My patch shuffles _one_ line that:
1) Allows clueless OMAP3 users to have TWL4030_USB enabled by default _if_ they enable USB and USB_GADGET regardless of which board is being used
2) Still allow people to build kernels without USB, nor TWL4030_USB
3) Simplify defconfgs by removing one line
4) Don't need extra changes in the board configurations
5) Doesn't increase the total lines in Kconfigs
Compared to the current situation 1) would actually change things into the direction you advocated to: TWL4030_USB is enabled by default.
Signature · 5 lines
Felipe Contreras -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
hi,
Quoted 4 lines · Felipe Contreras
Quoted 2 lines
wouldn't a user expect USB to be enabled if the board _has_ a USB connector ?
Not if it's not going to be used.
and how would you know before hand if it's going to be used or not ?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
1) Do you think all the OMAP3 boards should add that?
why not ?
You prefer a patch that adds one line per board rather than a patch that adds one line in total... That is exactly the opposite of Linus's complaint regarding big ARM changesets.
The thing is that what you are proposing will not scale when we have too many boards with different transceivers. Then we will end up with things like:
config USB_ARCH_HAS_OHCI
boolean
# ARM:
default y if SA1111
default y if ARCH_OMAP
default y if ARCH_LH7A404
default y if ARCH_S3C2410
default y if PXA27x
default y if PXA3xx
default y if ARCH_EP93XX
default y if ARCH_AT91
default y if ARCH_PNX4008 && I2C
default y if MFD_TC6393XB
default y if ARCH_W90X900
default y if ARCH_DAVINCI_DA8XX
# PPC:
default y if STB03xxx
default y if PPC_MPC52xx
# MIPS:
default y if MIPS_ALCHEMY
default y if MACH_JZ4740
# SH:
default y if CPU_SUBTYPE_SH7720
default y if CPU_SUBTYPE_SH7721
default y if CPU_SUBTYPE_SH7763
default y if CPU_SUBTYPE_SH7786
# more:
default PCI
which to me would be much better that e.g. SA1111 does a select USB_ARCH_HAS_OHCI like it's done for HAVE_CLK
Signature · 5 lines
balbi -- 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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Hi,
Quoted 8 lines · Felipe Balbi
Quoted 5 lines · Felipe Contreras
Quoted 3 lines
wouldn't a user expect USB to be enabled if the board _has_ a USB connector ?
Not if it's not going to be used.
and how would you know before hand if it's going to be used or not ?
You don't, that's what Kconfig is for: so the user can dynamically select what he wants or not on the kernel. And in order for it to be useful, dependencies have to be correct.
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
1) Do you think all the OMAP3 boards should add that?
why not ?
You prefer a patch that adds one line per board rather than a patch that adds one line in total... That is exactly the opposite of Linus's complaint regarding big ARM changesets.
Quoted 5 lines
The thing is that what you are proposing will not scale when we have too many boards with different transceivers. Then we will end up with things like:
config
USB_ARCH_HAS_OHCI
[...]
We are not talking about USB_ARCH_HAS_OHCI, we are talking about TWL4030_USB, there's nothing to scale there.
Signature · 1 line
Felipe Contreras
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Felipe ContrerasQuoted 17 lines · Felipe Contreras
Add missing dependencies, and remove redundant ones, and select sensible defaults.
Signed-off-by Felipe Contreras <[email protected]>--- drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/gadget/Kconfig | 3 +-- drivers/usb/musb/Kconfig | 6 ++---- drivers/usb/otg/Kconfig | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)drivers/mfd/Kconfig +0
-0
drivers/mfd/Kconfig config MENELAUS · line 159
Quoted 4 lines
drivers/mfd/Kconfig +1
-0@@ -156,6 +156,7 @@ config MENELAUS config TWL4030_CORE bool "Texas Instruments TWL4030/TWL5030/TWL6030/TPS659x0 Support" depends on I2C=y && GENERIC_HARDIRQS + default y if ARCH_OMAP3 || ARCH_OMAP4
Sorry, but unless the driver is somehow required to keep the board from going up in a puff of smoke, a default should NEVER be y.
Because of that, I can't take this patch.
greg k-h
--
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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 26 lines · Greg KH
Quoted 17 lines · Felipe Contreras
Add missing dependencies, and remove redundant ones, and select sensible defaults.
Signed-off-by Felipe Contreras<[email protected]>--- drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/gadget/Kconfig | 3 +-- drivers/usb/musb/Kconfig | 6 ++---- drivers/usb/otg/Kconfig | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)drivers/mfd/Kconfig +0
-0drivers/mfd/Kconfig config MENELAUS · line 159
Quoted 4 lines
drivers/mfd/Kconfig +1
-0@@ -156,6 +156,7 @@ config MENELAUS config TWL4030_CORE bool "Texas Instruments TWL4030/TWL5030/TWL6030/TPS659x0 Support" depends on I2C=y&& GENERIC_HARDIRQS + default y if ARCH_OMAP3 || ARCH_OMAP4Sorry, but unless the driver is somehow required to keep the board from going up in a puff of smoke, a default should NEVER be y.
Quoted 2 lines
Because of that, I can't take this patch.
This is the driver for the Power-management IC on the board. Without this IC being correctly configured, I'm guessing a lot of things will fail. Not so sure if anything will go up in smoke (sounds unlikely), or if the kernel will fail to boot - I'll check quickly - but for this one specific instance, I think it's reasonable to accept a default y.
Kevin/Tony can probably confirm.
Greg,
For other instances of unnecessary "default y", do you think they should be removed?
- Anand
--
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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
Quoted 30 lines · Anand Gadiyar
Quoted 26 lines · Greg KH
Quoted 17 lines · Felipe Contreras
Add missing dependencies, and remove redundant ones, and select sensible defaults.
Signed-off-by Felipe Contreras<[email protected]>--- drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/gadget/Kconfig | 3 +-- drivers/usb/musb/Kconfig | 6 ++---- drivers/usb/otg/Kconfig | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)drivers/mfd/Kconfig +0
-0drivers/mfd/Kconfig config MENELAUS · line 159
Quoted 4 lines
drivers/mfd/Kconfig +1
-0@@ -156,6 +156,7 @@ config MENELAUS config TWL4030_CORE bool "Texas Instruments TWL4030/TWL5030/TWL6030/TPS659x0 Support" depends on I2C=y&& GENERIC_HARDIRQS + default y if ARCH_OMAP3 || ARCH_OMAP4Sorry, but unless the driver is somehow required to keep the board from going up in a puff of smoke, a default should NEVER be y.
Quoted 2 lines
Because of that, I can't take this patch.
Quoted 6 lines
This is the driver for the Power-management IC on the board. Without this IC being correctly configured, I'm guessing a lot of things will fail. Not so sure if anything will go up in smoke (sounds unlikely), or if the kernel will fail to boot - I'll check quickly - but for this one specific instance, I think it's reasonable to accept a default y.
Sorry, but no, I'm not going to take it for the reasons stated above.
Quoted 6 lines
Kevin/Tony can probably confirm.
Greg,
For other instances of unnecessary "default y", do you think they should be removed?
I wouldn't worry about trivial things like that, the damage is already done.
thanks,
greg k-h
--
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
Re: [PATCH v2 3/3] drivers: cleanup Kconfig stuff
In reply to Anand GadiyarQuoted 30 lines · Anand Gadiyar
Quoted 26 lines · Greg KH
Quoted 17 lines · Felipe Contreras
Add missing dependencies, and remove redundant ones, and select sensible defaults.
Signed-off-by Felipe Contreras<[email protected]>--- drivers/mfd/Kconfig | 3 ++- drivers/regulator/Kconfig | 1 + drivers/usb/gadget/Kconfig | 3 +-- drivers/usb/musb/Kconfig | 6 ++---- drivers/usb/otg/Kconfig | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)drivers/mfd/Kconfig +0
-0drivers/mfd/Kconfig config MENELAUS · line 159
Quoted 4 lines
drivers/mfd/Kconfig +1
-0@@ -156,6 +156,7 @@ config MENELAUS config TWL4030_CORE bool "Texas Instruments TWL4030/TWL5030/TWL6030/TPS659x0 Support" depends on I2C=y&& GENERIC_HARDIRQS + default y if ARCH_OMAP3 || ARCH_OMAP4Sorry, but unless the driver is somehow required to keep the board from going up in a puff of smoke, a default should NEVER be y.
Quoted 2 lines
Because of that, I can't take this patch.
Quoted 7 lines
This is the driver for the Power-management IC on the board. Without this IC being correctly configured, I'm guessing a lot of things will fail. Not so sure if anything will go up in smoke (sounds unlikely), or if the kernel will fail to boot - I'll check quickly - but for this one specific instance, I think it's reasonable to accept a default y.
Kevin/Tony can probably confirm.
I don't thing the 'default y' should be done at this level. Instead, the boards/SoCs that have the hard requirement should do the 'select'
Kevin