From: Florian Fainelli <florian@openwrt.org>
To: David Daney <ddaney.cavm@gmail.com>
Cc: linux-usb@vger.kernel.org, stern@rowland.harvard.edu,
gregkh@linuxfoundation.org, linux-mips@linux-mips.org,
ralf@linux-mips.org, jogo@openwrt.org, mbizon@freebox.fr,
blogic@openwrt.org
Subject: Re: [PATCH 08/13] MIPS: BCM63XX: introduce BCM63XX_EHCI configuration symbol
Date: Mon, 28 Jan 2013 20:57:00 +0100 [thread overview]
Message-ID: <5106D80C.7050508@openwrt.org> (raw)
In-Reply-To: <5106D187.80600@gmail.com>
Le 28/01/2013 20:29, David Daney a écrit :
> On 01/28/2013 11:06 AM, Florian Fainelli wrote:
>> This configuration symbol can be used by CPUs supporting the on-chip
>> EHCI controller, and ensures that all relevant EHCI-related
>> configuration options are selected. So far BCM6328, BCM6358 and BCM6368
>> have an EHCI controller and do select this symbol. Update
>> drivers/usb/host/Kconfig with BCM63XX to update direct unmet
>> dependencies.
>>
>> Signed-off-by: Florian Fainelli <florian@openwrt.org>
>> ---
>> arch/mips/bcm63xx/Kconfig | 9 +++++++++
>> drivers/usb/host/Kconfig | 5 +++--
>> 2 files changed, 12 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/mips/bcm63xx/Kconfig b/arch/mips/bcm63xx/Kconfig
>> index 23b1ffd..b899359 100644
>> --- a/arch/mips/bcm63xx/Kconfig
>> +++ b/arch/mips/bcm63xx/Kconfig
>> @@ -7,10 +7,17 @@ config BCM63XX_OHCI
>> select USB_OHCI_BIG_ENDIAN_DESC if USB_OHCI_HCD
>> select USB_OHCI_BIG_ENDIAN_MMIO if USB_OHCI_HCD
>>
>> +config BCM63XX_EHCI
>> + bool
>> + select USB_ARCH_HAS_EHCI
>> + select USB_EHCI_BIG_ENDIAN_DESC if USB_EHCI_HCD
>> + select USB_EHCI_BIG_ENDIAN_MMIO if USB_EHCI_HCD
>> +
>> config BCM63XX_CPU_6328
>> bool "support 6328 CPU"
>> select HW_HAS_PCI
>> select BCM63XX_OHCI
>> + select BCM63XX_EHCI
> [...]
>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
>> index d6bb128..e16b2cb 100644
>> --- a/drivers/usb/host/Kconfig
>> +++ b/drivers/usb/host/Kconfig
>> @@ -115,14 +115,15 @@ config USB_EHCI_BIG_ENDIAN_MMIO
>> depends on USB_EHCI_HCD && (PPC_CELLEB || PPC_PS3 || 440EPX || \
>> ARCH_IXP4XX || XPS_USB_HCD_XILINX || \
>> PPC_MPC512x || CPU_CAVIUM_OCTEON || \
>> - PMC_MSP || SPARC_LEON || MIPS_SEAD3)
>> + PMC_MSP || SPARC_LEON || MIPS_SEAD3 || \
>> + BCM63XX)
>> default y
>
> This is a complete mess.
>
> Can we get rid of the 'default y' and all those things after the '&&',
> and select USB_EHCI_BIG_ENDIAN_MMIO in the board Kconfig files?
Yes, pretty much like what exists for OHCI, scales much better.
>
> I am as guilty as anyone here (see || CPU_CAVIUM_OCTEON above). But
> this doesn't seem sustainable. We should be trying to keep the
> configuration information for all this in one spot.
>
> Now you have it spread across two files. One to enable it, and the
> other to select it. But do you really need to select it if it defaults
> to 'y'
I do agree with you, but I don't want this patchset to be blocked by the
removal of the depends on (FOO && BAR && ...), but I can send a
preliminary patch for this and get it merged with Greg's tree first.
>
>
>>
>> config USB_EHCI_BIG_ENDIAN_DESC
>> bool
>> depends on USB_EHCI_HCD && (440EPX || ARCH_IXP4XX ||
>> XPS_USB_HCD_XILINX || \
>> PPC_MPC512x || PMC_MSP || SPARC_LEON || \
>> - MIPS_SEAD3)
>> + MIPS_SEAD3 || BCM63XX)
>> default y
>>
>
>
> Same here.
>
> Thanks,
> David (on a mission against Kconfig insanity) Daney
>
>
next prev parent reply other threads:[~2013-01-28 19:57 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 19:06 [PATCH 00/13] MIPS: BCM63XX: support for OHCI and EHCI integrated controllers Florian Fainelli
2013-01-28 19:06 ` [PATCH 01/13] MIPS: BCM63XX: add USB host clock enable delay Florian Fainelli
2013-01-28 19:06 ` [PATCH 02/13] MIPS: BCM63XX: add USB device clock enable delay to clock code Florian Fainelli
2013-01-28 19:06 ` [PATCH 03/13] MIPS: BCM63XX: move code touching the USB private register Florian Fainelli
2013-01-28 20:41 ` Felipe Balbi
2013-01-28 20:41 ` Felipe Balbi
2013-01-28 21:17 ` Florian Fainelli
2013-01-29 7:37 ` Felipe Balbi
2013-01-29 7:37 ` Felipe Balbi
2013-01-28 19:06 ` [PATCH 04/13] MIPS: BCM63XX: add OHCI/EHCI configuration bits to common USB code Florian Fainelli
2013-01-28 19:06 ` [PATCH 05/13] MIPS: BCM63XX: introduce BCM63XX_OHCI configuration symbol Florian Fainelli
2013-01-28 19:06 ` [PATCH 06/13] MIPS: BCM63XX: add support for the on-chip OHCI controller Florian Fainelli
2013-01-28 19:06 ` [PATCH 07/13] MIPS: BCM63XX: register OHCI controller if board enables it Florian Fainelli
2013-01-28 19:06 ` [PATCH 08/13] MIPS: BCM63XX: introduce BCM63XX_EHCI configuration symbol Florian Fainelli
2013-01-28 19:29 ` David Daney
2013-01-28 19:57 ` Florian Fainelli [this message]
2013-01-28 20:15 ` Alan Stern
2013-01-28 20:15 ` Alan Stern
2013-01-28 19:06 ` [PATCH 09/13] MIPS: BCM63XX: add support for the on-chip EHCI controller Florian Fainelli
2013-01-28 19:06 ` [PATCH 10/13] MIPS: BCM63XX: register EHCI controller if board enables it Florian Fainelli
2013-01-28 19:06 ` [PATCH 11/13] USB: EHCI: add ignore_oc flag to disable overcurrent checking Florian Fainelli
2013-01-28 20:08 ` Alan Stern
2013-01-28 20:08 ` Alan Stern
2013-01-28 20:58 ` Florian Fainelli
2013-01-28 19:06 ` [PATCH 12/13] MIPS: BCM63XX: EHCI controller does not support overcurrent Florian Fainelli
2013-01-28 19:06 ` [PATCH 13/13] MIPS: BCM63XX: update defconfig Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5106D80C.7050508@openwrt.org \
--to=florian@openwrt.org \
--cc=blogic@openwrt.org \
--cc=ddaney.cavm@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jogo@openwrt.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-usb@vger.kernel.org \
--cc=mbizon@freebox.fr \
--cc=ralf@linux-mips.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox