linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@ti.com>
To: "Adrien Vergé" <adrienverge@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	Florian Fainelli <florian@openwrt.org>,
	Manjunath Goudar <manjunath.goudar@linaro.org>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Yannick Brosseau <yannick.brosseau@gmail.com>,
	"Balbi, Felipe" <balbi@ti.com>
Subject: Re: [PATCH] ARM: OMAP4: USB_EHCI_HCD needs USB_PHY and NOP_USB_XCEIV
Date: Tue, 28 May 2013 11:14:37 +0300	[thread overview]
Message-ID: <51A4676D.9010404@ti.com> (raw)
In-Reply-To: <201305272023.12281.arnd@arndb.de>

On 05/27/2013 09:23 PM, Arnd Bergmann wrote:
> On Saturday 25 May 2013, Adrien Vergé wrote:
>> On OMAP4 platforms, EHCI HCD needs the physical layer signalling
>> activated, along with the NOP USB Transceiver driver. Otherwise, the
>> kernel boots without registering any USB device.
> 
> This does not actually sound like a critical error: If a user forgets
> to enable a driver, that driver will not be loaded. Of course the
> kernel should not just crash when a non-essential driver is missing,
> and it should not fail to build, but your description sounds harmless.
> 
> Am I missing something?

Right, there is no crash or anything if the PHY drivers are not selected,
just that OMAP USB host will not work.

> 
>> This patch applies to Linux 3.10-rc2.
>>
>> Signed-off-by: Adrien Vergé <adrienverge@gmail.com>
>> ---
>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
>> index de94f26..47959d7 100644
>> --- a/drivers/usb/host/Kconfig
>> +++ b/drivers/usb/host/Kconfig
>> @@ -44,6 +44,8 @@ endif # USB_XHCI_HCD
>>  config USB_EHCI_HCD
>>         tristate "EHCI HCD (USB 2.0) support"
> 
> This is the wrong place: it should be in USB_EHCI_HCD_OMAP
> if any.

Right.
> 
>>         depends on USB_ARCH_HAS_EHCI
>> +       select USB_PHY if ARCH_OMAP4
>> +       select NOP_USB_XCEIV if ARCH_OMAP4
>>         ---help---
>>           The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
>>           "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
> 
> 'select'ing USB_PHY sounds wrong too, I think you mean 'depends on'.
> 
> Also note that Roger Quadros has just removed the 'select NOP_USB_XCEIV'
> there, I think you should coordinate with him.

Selecting NOP_USB_XCEIV is wrong as it in turn depends on USB_PHY.

I'm not for depends as it would hide USB_EHCI_HCD_OMAP in menuconfig.
I'm for explicitly selecting both, as it makes the user's life much easier.
But I'm afraid maintainers might object to that.

The other option is to enable the required drivers in omap2plus_defconfig.
http://comments.gmane.org/gmane.linux.ports.arm.omap/97899

Maybe you could just resend that patch after addressing Kevin's comments?

cheers,
-roger

  reply	other threads:[~2013-05-28  8:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CANsc=4W7ZVuCoimeALsv6xEQAURYc=QYsCvXd_kZD-A52aTL5w@mail.gmail.com>
2013-05-25  4:43 ` [PATCH] ARM: OMAP4: USB_EHCI_HCD needs USB_PHY and NOP_USB_XCEIV Adrien Vergé
2013-05-27 18:23   ` Arnd Bergmann
2013-05-28  8:14     ` Roger Quadros [this message]
2013-05-28  8:40       ` Arnd Bergmann
2013-05-28  9:17         ` Roger Quadros
2013-05-28 13:30       ` Adrien Vergé
2013-05-28 14:34         ` Roger Quadros

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=51A4676D.9010404@ti.com \
    --to=rogerq@ti.com \
    --cc=adrienverge@gmail.com \
    --cc=arnd@arndb.de \
    --cc=balbi@ti.com \
    --cc=florian@openwrt.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=manjunath.goudar@linaro.org \
    --cc=stern@rowland.harvard.edu \
    --cc=yannick.brosseau@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).