Skip to contentSkip to conversation

arm: omap4: panda: remove usb_nop_xceiv_register

PATCH In review [email protected] 3 participants 5 messages Jan 4, 2011 – Jan 5, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: omap4: panda: remove usb_nop_xceiv_register

From: Ming Lei <[email protected]>

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

Cc Felipe Balbi <[email protected]>
---
 arch/arm/mach-omap2/board-omap4panda.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/board-omap4panda.c +0 -2
index 1ecd0a6..802ae20 100644
@@ -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())
Signature · 1 line
1.7.3
#1 lore raw
Quoted 7 lines · [email protected] writes:

From: Ming Lei <[email protected]>

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

Cc Felipe Balbi <[email protected]>

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

Quoted 17 lines
---
 arch/arm/mach-omap2/board-omap4panda.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/board-omap4panda.c +0 -2
index 1ecd0a6..802ae20 100644
@@ -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())
Reviewed-by
#2 lore raw
Quoted 5 lines · Kevin Hilman
Quoted 3 lines · [email protected] writes:

From: Ming Lei <[email protected]>

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.

Quoted 4 lines
Quoted 4 lines

so removes usb_nop_xceiv_register to make musb working.

Cc Felipe Balbi <[email protected]>

Considering you change the commit log above:

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.

Signature · 1 line
balbi
author
#3 lore raw

Hi,

2011/1/5 Felipe Balbi <[email protected]>:

Quoted 11 lines · Kevin Hilman
Quoted 5 lines
Quoted 3 lines · [email protected] writes:

From: Ming Lei <[email protected]>

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.

Quoted 12 lines

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.

Quoted 4 lines
Quoted 4 lines

so removes usb_nop_xceiv_register to make musb working.

Cc Felipe Balbi <[email protected]>
Quoted 7 lines

Considering you change the commit log above:

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,

Signature · 1 line
Lei Ming
#4 lore raw

Hi,

Quoted 8 lines · Ming Lei
Quoted 5 lines

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.

Signature · 1 line
balbi