public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register
@ 2011-01-04 13:39 tom.leiming
  2011-01-05  0:29 ` Kevin Hilman
  0 siblings, 1 reply; 5+ messages in thread
From: tom.leiming @ 2011-01-04 13:39 UTC (permalink / raw)
  To: tony, khilman; +Cc: linux-omap, Ming Lei, Felipe Balbi

From: Ming Lei <tom.leiming@gmail.com>

Panda uses twl6030 otg phy instead of internal phy,
so removes usb_nop_xceiv_register to make musb working.

Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 arch/arm/mach-omap2/board-omap4panda.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 1ecd0a6..802ae20 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -374,8 +374,6 @@ static void __init omap4_panda_init(void)
 	platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices));
 	omap_serial_init();
 	omap4_twl6030_hsmmc_init(mmc);
-	/* OMAP4 Panda uses internal transceiver so register nop transceiver */
-	usb_nop_xceiv_register();
 	omap4_ehci_init();
 	/* FIXME: allow multi-omap to boot until musb is updated for omap4 */
 	if (!cpu_is_omap44xx())
-- 
1.7.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register
  2011-01-04 13:39 [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register tom.leiming
@ 2011-01-05  0:29 ` Kevin Hilman
  2011-01-05  6:56   ` Felipe Balbi
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2011-01-05  0:29 UTC (permalink / raw)
  To: tom.leiming; +Cc: tony, linux-omap, Felipe Balbi

tom.leiming@gmail.com writes:

> From: Ming Lei <tom.leiming@gmail.com>
>
> Panda uses twl6030 otg phy instead of internal phy,
> so removes usb_nop_xceiv_register to make musb working.
>
> Cc: Felipe Balbi <balbi@ti.com>
> Signed-off-by: Ming Lei <tom.leiming@gmail.com>

Please Cc the linux-arm-kernel list for OMAP kernel patches targetted
for upstream.

Also, would be nice to get some Reviewed-by and/or Tested-by tags from
Panda users on this one as well.

Kevin

> ---
>  arch/arm/mach-omap2/board-omap4panda.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
> index 1ecd0a6..802ae20 100644
> --- a/arch/arm/mach-omap2/board-omap4panda.c
> +++ b/arch/arm/mach-omap2/board-omap4panda.c
> @@ -374,8 +374,6 @@ static void __init omap4_panda_init(void)
>  	platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices));
>  	omap_serial_init();
>  	omap4_twl6030_hsmmc_init(mmc);
> -	/* OMAP4 Panda uses internal transceiver so register nop transceiver */
> -	usb_nop_xceiv_register();
>  	omap4_ehci_init();
>  	/* FIXME: allow multi-omap to boot until musb is updated for omap4 */
>  	if (!cpu_is_omap44xx())

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register
  2011-01-05  0:29 ` Kevin Hilman
@ 2011-01-05  6:56   ` Felipe Balbi
  2011-01-05 13:40     ` Ming Lei
  0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2011-01-05  6:56 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: tom.leiming, tony, linux-omap, Felipe Balbi

On Tue, Jan 04, 2011 at 04:29:04PM -0800, Kevin Hilman wrote:
> tom.leiming@gmail.com writes:
> 
> > From: Ming Lei <tom.leiming@gmail.com>
> >
> > Panda uses twl6030 otg phy instead of internal phy,

This is wrong, it uses both. TWL6030 handles VBUS and ID pin
and the internal PHY handles Data Lines. I know it's a bit
crazy but this kind of design is becoming more and more usual
on different boards.

What truly needs to happen is that we allow for multiple PHYs
to be added to otg_transceiver (BTW, that's a mis-naming as
transceiver aren't only for OTG use-cases).

Anyway, change this phrasing.

> > so removes usb_nop_xceiv_register to make musb working.
> >
> > Cc: Felipe Balbi <balbi@ti.com>
> > Signed-off-by: Ming Lei <tom.leiming@gmail.com>

Considering you change the commit log above:

Reviewed-by: Felipe Balbi <balbi@ti.com>

This is ok, but can only go after 2.6.38 merge window. There are patches
to add support for internal PHY. Ideally we would actually register both
PHYs and it would work. They would have different capabilities, though.

-- 
balbi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register
  2011-01-05  6:56   ` Felipe Balbi
@ 2011-01-05 13:40     ` Ming Lei
  2011-01-05 14:10       ` Felipe Balbi
  0 siblings, 1 reply; 5+ messages in thread
From: Ming Lei @ 2011-01-05 13:40 UTC (permalink / raw)
  To: balbi; +Cc: Kevin Hilman, tony, linux-omap

Hi,

2011/1/5 Felipe Balbi <balbi@ti.com>:
> On Tue, Jan 04, 2011 at 04:29:04PM -0800, Kevin Hilman wrote:
>> tom.leiming@gmail.com writes:
>>
>> > From: Ming Lei <tom.leiming@gmail.com>
>> >
>> > Panda uses twl6030 otg phy instead of internal phy,
>
> This is wrong, it uses both. TWL6030 handles VBUS and ID pin
> and the internal PHY handles Data Lines. I know it's a bit
> crazy but this kind of design is becoming more and more usual
> on different boards.

I see now after your explanation.

>
> What truly needs to happen is that we allow for multiple PHYs
> to be added to otg_transceiver (BTW, that's a mis-naming as
> transceiver aren't only for OTG use-cases).
>
> Anyway, change this phrasing.
>
>> > so removes usb_nop_xceiv_register to make musb working.
>> >
>> > Cc: Felipe Balbi <balbi@ti.com>
>> > Signed-off-by: Ming Lei <tom.leiming@gmail.com>
>
> Considering you change the commit log above:
>
> Reviewed-by: Felipe Balbi <balbi@ti.com>
>
> This is ok, but can only go after 2.6.38 merge window. There are patches
> to add support for internal PHY. Ideally we would actually register both
> PHYs and it would work. They would have different capabilities, though.

The current otg only supports one global transceiver, so we have to remove
the nop on Panda.

thanks,
-- 
Lei Ming

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register
  2011-01-05 13:40     ` Ming Lei
@ 2011-01-05 14:10       ` Felipe Balbi
  0 siblings, 0 replies; 5+ messages in thread
From: Felipe Balbi @ 2011-01-05 14:10 UTC (permalink / raw)
  To: Ming Lei; +Cc: balbi, Kevin Hilman, tony, linux-omap

Hi,

On Wed, Jan 05, 2011 at 09:40:19PM +0800, Ming Lei wrote:
> > Reviewed-by: Felipe Balbi <balbi@ti.com>
> >
> > This is ok, but can only go after 2.6.38 merge window. There are patches
> > to add support for internal PHY. Ideally we would actually register both
> > PHYs and it would work. They would have different capabilities, though.
> 
> The current otg only supports one global transceiver, so we have to remove
> the nop on Panda.

Yes, of course. I just pointed out your commit log is wrong and that
ideally we would fix this limitation. Ideally we would we have some sort
of framework for transceivers where we could add several of them.

-- 
balbi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-05 14:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 13:39 [PATCH] arm: omap4: panda: remove usb_nop_xceiv_register tom.leiming
2011-01-05  0:29 ` Kevin Hilman
2011-01-05  6:56   ` Felipe Balbi
2011-01-05 13:40     ` Ming Lei
2011-01-05 14:10       ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox