All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Anders, David" <x0132446@ti.com>
Cc: "Gadiyar, Anand" <gadiyar@ti.com>,
	Koen Kooi <koen@dominion.thruhere.net>,
	"Hunter, Jon" <jon-hunter@ti.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Gupta, Ajay Kumar" <ajay.gupta@ti.com>,
	"felipe.balbi@nokia.com" <felipe.balbi@nokia.com>
Subject: Re: [PATCH] select NOP_USB_XCEIV for OMAP4
Date: Thu, 24 Jun 2010 11:43:11 -0700	[thread overview]
Message-ID: <87wrto8e68.fsf@deeprootsystems.com> (raw)
In-Reply-To: <7B4574D56E4ADF438756313E9A172A879A8E0D9E@dlee01.ent.ti.com> (David Anders's message of "Thu, 24 Jun 2010 09:38:27 -0500")

"Anders, David" <x0132446@ti.com> writes:

>> -----Original Message-----
>> From: Gadiyar, Anand
>> Sent: Wednesday, June 23, 2010 6:03 PM
>> To: Koen Kooi; Kevin Hilman; Hunter, Jon
>> Cc: Anders, David; linux-usb@vger.kernel.org; linux-omap@vger.kernel.org;
>> Gupta, Ajay Kumar; felipe.balbi@nokia.com
>> Subject: RE: [PATCH] select NOP_USB_XCEIV for OMAP4
>> 
>> Koen Kooi wrote:
>> > Op 23 jun 2010, om 22:33 heeft Kevin Hilman het volgende geschreven:
>> > > David Anders <x0132446@ti.com> writes:
>> > >
>> > >> Add select statement to force selection of NOP_USB_XCEIV for OMAP4.
>> > >>
>> > >> Signed-off-by: David Anders <x0132446@ti.com>
>> > >> ---
>> > >> drivers/usb/musb/Kconfig |    1 +
>> > >> 1 files changed, 1 insertions(+), 0 deletions(-)
>> > >>
>> > >> diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
>> > >> index cfd38ed..e4624bc 100644
>> > >> --- a/drivers/usb/musb/Kconfig
>> > >> +++ b/drivers/usb/musb/Kconfig
>> > >> @@ -11,6 +11,7 @@ config USB_MUSB_HDRC
>> > >> 	depends on (USB || USB_GADGET)
>> > >> 	depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523))
>> > >> 	select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN)
>> > >> +	select NOP_USB_XCEIV if ARCH_OMAP4
>> > >> 	select TWL4030_USB if MACH_OMAP_3430SDP
>> > >> 	select USB_OTG_UTILS
>> > >> 	tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
>> > >
>> > > Shouldn't this be a board-specific option, and not set for every
>> > > OMAP4-based config?
>> >
>> > If that's true, why do the  davinci and blackfin archs force it?
>> >
>> 
>> Kevin's right. For OMAP4 at least, this is something that is probably'
>> best left up to the board to select.
>> 
>> For the davinci's and blackfins, they don't have an option. They have
>> a fully transparent internal PHY which doesn't need any configuring.
>> 
>> 
>> However, with the OMAP4, you could potentially use an external ULPI
>> transceiver.
>> This can be another transparent PHY for which we could select the
>> NOP_XCEIV.
>> Or it could be something like the PHY in the TWL5030 which may need
>> configuring
>> over an I2C interface.
>> 
>> 
>> - Anand
>
> Normally I would agree with you, however there are a number of items
> that I would like to iterate:
>
> 1. 100% of the currently known OMAP4 platforms use the NOP, wouldn't
> it be easier to add an exception if/when one exists rather than add
> each individual board that does require the NOP?

Easier, yes.  But easier isn't always the guiding principle for
scalable, portable software.

Personally, I would rather see these kinds of dependencies stated
explicitly only where they are needed, and not stated in general rules
with exceptons.

> 2. Including the NOP does not preclude the usage of another
> transceiver, simply don't register the NOP in your machine file.
>
> 3. The omap3_defconfig already has the NOP enabled. If we are pushing
> towards a unified defconfig for omap2/3/4, then the NOP will be
> enabled anyway. Linus is already pushing for more decisions to be made
> directly in the Kconfig and consoldation of defconfigs(and/or removal
> of them).
>
> 4. The NOP will need to be enabled if we intend to truly push for a
> "Multi-Boot" image that will boot multiple omap3 and omap4
> platforms. For example if we have a kernel image that is intended to
> boot the 4430sdp, blaze, panda, and board-X(with an external
> transceiver), NOP is going to be included anyway.

The other thing to keep in mind is on the opposite end of the spectrum
from multi-boot kernels.  Namely, minimal, tiny kernels targeted at
specific platforms.  By always enabling a feature that is not needed,
there is unncessary code in your kernel image.  I admit that for this
particular feature, the code bloat is rather small.  But the point is
we don't want to enable features just because it's easier, when there
are code bloat side effects.  Even small amounts add up.

> If the community in general is going to push for consolidated
> defconfigs, more robust decision making in Kconfig, and Multi-Boot
> support, then the way we thinking about what goes into Kconfig will
> have to change as well.

Agreed.

But for this to scale, the dependencies must be stated specifically, not
generally.  In this case, the specific dependencies are on *boards*, not
on the SoC.

All that being said, I am not the maintainer of this area, so I'll leave
it to Anand/Felipe/Ajay to make the call.

Kevin

  parent reply	other threads:[~2010-06-24 18:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-23 18:47 [PATCH] select NOP_USB_XCEIV for OMAP4 David Anders
     [not found] ` <1277318873-8260-1-git-send-email-x0132446-l0cyMroinI0@public.gmane.org>
2010-06-23 20:33   ` Kevin Hilman
2010-06-23 21:10     ` Anders, David
2010-06-23 22:53       ` Jon Hunter
     [not found]     ` <87k4ppqyk2.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
2010-06-23 21:12       ` Koen Kooi
2010-06-23 22:15         ` Sergei Shtylyov
     [not found]         ` <61951E1F-DEBF-450C-AF06-E0119DA3B33E-oe7qfRrRQfcdWmXj+hCI//P6llvjuJOh@public.gmane.org>
2010-06-23 22:56           ` Jon Hunter
2010-06-23 23:03           ` Gadiyar, Anand
2010-06-24 14:38             ` Anders, David
     [not found]               ` <7B4574D56E4ADF438756313E9A172A879A8E0D9E-bGftbgMkZa+IQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-06-24 15:53                 ` Gadiyar, Anand
     [not found]                   ` <5A47E75E594F054BAF48C5E4FC4B92AB032366B0EA-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-06-24 17:14                     ` Anders, David
2010-06-24 18:43               ` Kevin Hilman [this message]
2010-06-23 22:11   ` Sergei Shtylyov

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=87wrto8e68.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=ajay.gupta@ti.com \
    --cc=felipe.balbi@nokia.com \
    --cc=gadiyar@ti.com \
    --cc=jon-hunter@ti.com \
    --cc=koen@dominion.thruhere.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=x0132446@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.