From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: <balbi@ti.com>
Cc: <linux-usb@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH] usb: limit OMAP related USB options to OMAP2PLUS platforms
Date: Thu, 14 Mar 2013 14:40:37 -0400 [thread overview]
Message-ID: <514219A5.9080305@windriver.com> (raw)
In-Reply-To: <20130314161204.GE3001@arwen.pp.htv.fi>
On 13-03-14 12:12 PM, Felipe Balbi wrote:
> Hi,
>
> On Thu, Mar 14, 2013 at 11:17:21AM -0400, Paul Gortmaker wrote:
>>>>> diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig
>>>>> index 65217a5..40b8463 100644
>>>>> --- a/drivers/usb/phy/Kconfig
>>>>> +++ b/drivers/usb/phy/Kconfig
>>>>> @@ -17,6 +17,7 @@ config OMAP_USB2
>>>>>
>>>>> config OMAP_USB3
>>>>> tristate "OMAP USB3 PHY Driver"
>>>>> + depends on ARCH_OMAP2PLUS
>>>>> select USB_OTG_UTILS
>>>>> select OMAP_CONTROL_USB
>>>>> help
>>>>> @@ -27,6 +28,7 @@ config OMAP_USB3
>>>>>
>>>>> config OMAP_CONTROL_USB
>>>>> tristate "OMAP CONTROL USB Driver"
>>>>> + depends on ARCH_OMAP2PLUS
>>>>
>>>> I rather not add dependencies here and fix the selections of
>>>> OMAP_CONTROL_USB.
>>>
>>> I am not sure I understand what you mean, or why you wouldn't
>>> want sane dependencies in place like those given above. Perhaps
>>> you can send an alternate patch so there is no ambiguity?
>>
>> Hi Felipe,
>>
>> I'm still seeing the OMAP settings in x86 builds on mainline
>> from today, and since I'd not got a reply to the above, I'm
>> still wondering what alternative you have in mind vs. my
>> above patch. We can't be having the arch specific settings
>> leaking out to the other arch where they make no sense[1].
>
> why not ? It forces people to write portable drivers, it forces people
> to avoid including the wrong headers and allows maintainers and patch
> authors to easily compile test their drivers.
Why not? That was covered in the link I'd referenced. What you
list above is a very developer centric point of view. To quote
Andrew Morton from that same link, in regards to dependencies
and how they should be used:
"...offering useless stuff to non-kernel-developers has downsides
with no balancing benefit, and we really should optimise things for
our users because there are so many more of them than there are of us."
Look at what you've written. The key word above and below in your
text is "force people". Showing no interest in simplifying things for
our users and taking that approach is a good way to alienate our user
base.
Paul.
--
>
> On top of all that, it lets me better use linux-next as a big build
> testing before I send a pull request to Greg.
>
> When you're going to build a product, you will come up with a proper
> .config anyway. Because of a bunch of these misused 'depends on' and
> 'select' statements that right now ARM multiplatform builds don't even
> compile cleanly if you enable all ARM-related drivers.
>
> Until all of those are cleaned up, the best way is to force people to
> write drivers which compile in all architectures and make sure Kconfig
> doesn't add any ARCH dependency.
>
prev parent reply other threads:[~2013-03-14 18:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-27 19:08 [PATCH] usb: limit OMAP related USB options to OMAP2PLUS platforms Paul Gortmaker
2013-02-27 19:51 ` Felipe Balbi
2013-02-27 19:57 ` Paul Gortmaker
2013-03-14 15:17 ` Paul Gortmaker
2013-03-14 16:12 ` Felipe Balbi
2013-03-14 18:40 ` Paul Gortmaker [this message]
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=514219A5.9080305@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/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