arm: omap4: panda: remove usb_nop_xceiv_register
Subsystems (3)
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.
--- arch/arm/mach-omap2/board-omap4panda.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/board-omap4panda.c +0 -2
@@ -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
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_registerto make musb working.Cc Felipe Balbi <[email protected]>Signed-off-by Ming Lei <[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@@ -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 ())
Felipe Balbi
Reviewed-byQuoted 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_registerto make musb working.Cc Felipe Balbi <[email protected]>Signed-off-by Ming Lei <[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
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_registerto make musb working.Cc Felipe Balbi <[email protected]>Signed-off-by Ming Lei <[email protected]>
Quoted 7 lines
Considering you change the commit log above:
Reviewed-by Felipe Balbi <[email protected]>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
Hi,
Quoted 8 lines · Ming Lei
Quoted 5 lines
Reviewed-by Felipe Balbi <[email protected]>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