From: Felipe Balbi <balbi@ti.com>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: balbi@ti.com, Linux USB Mailing List <linux-usb@vger.kernel.org>,
Greg KH <gregkh@linuxfoundation.org>,
cbou@mail.ru, dwmw2@infradead.org, stern@rowland.harvard.edu,
arnd@arndb.de, linux-tegra@vger.kernel.org,
linux-omap@vger.kernel.org
Subject: Re: [PATCH 00/10] usb: phy: cleanups to Kconfig and directories
Date: Thu, 14 Mar 2013 13:01:29 +0200 [thread overview]
Message-ID: <20130314110129.GI32369@arwen.pp.htv.fi> (raw)
In-Reply-To: <513A2FDD.2040800@wwwdotorg.org>
[-- Attachment #1: Type: text/plain, Size: 3718 bytes --]
On Fri, Mar 08, 2013 at 11:37:17AM -0700, Stephen Warren wrote:
> On 03/08/2013 11:26 AM, Felipe Balbi wrote:
> > On Fri, Mar 08, 2013 at 10:14:11AM -0700, Stephen Warren wrote:
> >> On 03/08/2013 12:14 AM, Felipe Balbi wrote:
> >>> Hi,
> >>>
> >>> On Thu, Mar 07, 2013 at 02:20:36PM -0700, Stephen Warren
> >>> wrote:
> >>>> On 03/07/2013 02:35 AM, Felipe Balbi wrote:
> >>>>> Hi folks,
> >>>>>
> >>>>> inspired by Paul's DWC2 patchset which added
> >>>>> usb_otg_state_string() (a copy of otg_state_string()) I
> >>>>> have now renamed otg_state_string() to
> >>>>> usb_otg_state_string(), moved it to usb-common, then moved
> >>>>> all phy drivers to drivers/usb/phy/ and completely deleted
> >>>>> the otg directory.
> >>>>>
> >>>>> We're also removing CONFIG_USB_OTG_UTILS since that has
> >>>>> lots its meaning long ago.
> >>>>>
> >>>>> I have compiled all patches with allyes, allno and allmod
> >>>>> configs, but please make sure to test on your platforms to
> >>>>> make sure we're not leaking any more problems to mainline.
> >>>>
> >>>> What branch do the patches apply to? They didn't "git am" for
> >>>> me on either next-20130305, nor
> >>>> git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
> >>>> next.
> >>>
> >>> they're on top of my testing branch.
> >>
> >> Ah, thanks. I took that whole branch, built ARM's
> >> tegra_defconfig, and see:
> >>
> >>> warning: (ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects
> >>> USB_ULPI which has unmet direct dependencies (USB_SUPPORT &&
> >>> USB_PHY && ARM) warning: (ARCH_TEGRA_2x_SOC &&
> >>> ARCH_TEGRA_3x_SOC) selects USB_ULPI_VIEWPORT which has unmet
> >>> direct dependencies (USB_SUPPORT && USB_PHY && USB_ULPI)
> >>> warning: (ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects
> >>> USB_ULPI which has unmet direct dependencies (USB_SUPPORT &&
> >>> USB_PHY && ARM) warning: (ARCH_TEGRA_2x_SOC &&
> >>> ARCH_TEGRA_3x_SOC) selects USB_ULPI_VIEWPORT which has unmet
> >>> direct dependencies (USB_SUPPORT && USB_PHY && USB_ULPI)
> >>
> >> Manually enabling USB_PHY fixes this. However, this highlights
> >> an issue with your removal of all selects (as mentioned in your
> >> other email) - it will break perhaps any defconfig that has USB
> >> enabled.
> >>
> >> After enabling USB_PHY, the code builds and runs without issue.
> >
> > fair enough, but then I'm just exposing the trouble. ARCH
> > shouldn't select USB_ULTI or any of the phy drivers, for that
> > matter.
>
> Yes, I think it should instead work like:
>
> ARCH_TEGRA* selects nothing in particular related to USB.
>
> The Tegra EHCI controller Kconfig depends on ARCH_TEGRA so it doesn't
> show up for other builds. I hope it's OK for the EHCI controller to
> select USB_ARCH_HAS_EHCI?
that's something the ARCH should select but it has very little value. I
guess there has been some discussions about dropping that and I support
it.
> The Tegra EHCI controller Kconfig selects everything needed for it to
> be useful, i.e. PHY support and the Tegra PHY, and I guess the ULPI
> viewport options.
should it ? I don't know... There's no way to select something as
module, but there's no eas\(y\|ier\) way to make sure PHY is enabled
when building EHCI-tegra.
> The Tegra PHY Kconfig probably shouldn't be user-visible (relying on
> being selected by the Tegra EHCI controller) and itself selects
> anything it relies on.
That I really don't like. I think the driver should be selectable and
build in anything architecture. That's the easier way to:
a) build test a driver when applying patches; and
b) make sure drivers won't include <mach/*> or <asm/*>.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-03-14 11:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 9:35 [PATCH 00/10] usb: phy: cleanups to Kconfig and directories Felipe Balbi
2013-03-07 9:36 ` [PATCH 01/10] usb: otg: prefix otg_state_string with usb_ Felipe Balbi
2013-03-07 9:36 ` [PATCH 02/10] usb: otg: move usb_otg_state_string to usb-common.c Felipe Balbi
2013-03-07 9:36 ` [PATCH 03/10] usb: phy: convert EXPORT_SYMBOL to EXPORT_SYMBOL_GPL Felipe Balbi
2013-03-07 9:36 ` [PATCH 04/10] usb: phy: move all PHY drivers to drivers/usb/phy/ Felipe Balbi
2013-03-07 9:36 ` [PATCH 05/10] usb: phy: make it a menuconfig Felipe Balbi
[not found] ` <1362648969-13737-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2013-03-07 9:36 ` [PATCH 06/10] usb: power: pda_power: check against CONFIG_USB_PHY Felipe Balbi
2013-03-07 9:36 ` [PATCH 08/10] usb: ehci: marvel: " Felipe Balbi
2013-03-07 21:20 ` [PATCH 00/10] usb: phy: cleanups to Kconfig and directories Stephen Warren
[not found] ` <513904A4.7040101-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-08 7:14 ` Felipe Balbi
[not found] ` <20130308071453.GD21589-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2013-03-08 17:14 ` Stephen Warren
[not found] ` <513A1C63.9050704-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-08 18:26 ` Felipe Balbi
[not found] ` <20130308182623.GD900-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2013-03-08 18:37 ` Stephen Warren
[not found] ` <513A2FDD.2040800-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-08 23:08 ` Arnd Bergmann
[not found] ` <201303082308.31499.arnd-r2nGTMty4D4@public.gmane.org>
2013-03-08 23:23 ` Stephen Warren
[not found] ` <513A72E8.2070707-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-08 23:56 ` Arnd Bergmann
[not found] ` <201303082356.35033.arnd-r2nGTMty4D4@public.gmane.org>
2013-03-09 0:10 ` Stephen Warren
2013-03-14 11:01 ` Felipe Balbi [this message]
[not found] ` <20130314110129.GI32369-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2013-03-15 20:50 ` Stephen Warren
2013-03-07 9:36 ` [PATCH 07/10] usb: gadget: mv_udc_core: check against CONFIG_USB_PHY Felipe Balbi
2013-03-07 9:36 ` [PATCH 09/10] usb: ehci: tegra: " Felipe Balbi
[not found] ` <1362648969-13737-10-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2013-03-07 20:54 ` Stephen Warren
2013-03-08 7:10 ` Felipe Balbi
2013-03-07 9:36 ` [PATCH 10/10] usb: phy: remove CONFIG_USB_OTG_UTILS Felipe Balbi
[not found] ` <1362648969-13737-11-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2013-03-07 14:41 ` [PATCH v2] " Felipe Balbi
2013-03-07 16:01 ` [PATCH 00/10] usb: phy: cleanups to Kconfig and directories Alan Stern
[not found] ` <Pine.LNX.4.44L0.1303071101190.1646-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-03-07 16:41 ` Felipe Balbi
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=20130314110129.GI32369@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=arnd@arndb.de \
--cc=cbou@mail.ru \
--cc=dwmw2@infradead.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=swarren@wwwdotorg.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