linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards
@ 2013-08-06 17:06 Aaro Koskinen
  2013-08-06 17:06 ` [PATCH 2/2] ARM: OMAP: rx51: change musb mode to OTG Aaro Koskinen
       [not found] ` <1375808776-14975-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Aaro Koskinen @ 2013-08-06 17:06 UTC (permalink / raw)
  To: Tony Lindgren, linux-arm-kernel, linux-omap, linux-usb; +Cc: Aaro Koskinen

Hi,

USB subsystem changes broke the USB peripheral/gadget on N800, N810 and
RX-51/N900 during the merge window. We need to fix this in board files. I
tested all these with 3.11-rc4 + g_ether + ssh.

Aaro Koskinen (1):
  ARM: OMAP: rx51: change musb mode to OTG

Daniel Mack (1):
  ARM: omap2: fix musb usage for n8x0

 arch/arm/mach-omap2/board-n8x0.c | 4 ----
 arch/arm/mach-omap2/board-rx51.c | 2 +-
 arch/arm/mach-omap2/usb-musb.c   | 5 +----
 3 files changed, 2 insertions(+), 9 deletions(-)

-- 
1.8.3.2


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

* [PATCH 1/2] ARM: omap2: fix musb usage for n8x0
       [not found] ` <1375808776-14975-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
@ 2013-08-06 17:06   ` Aaro Koskinen
  2013-08-15 19:18   ` [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards Aaro Koskinen
  1 sibling, 0 replies; 6+ messages in thread
From: Aaro Koskinen @ 2013-08-06 17:06 UTC (permalink / raw)
  To: Tony Lindgren, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA
  Cc: Daniel Mack, Aaro Koskinen

From: Daniel Mack <zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Commit b7e2e75a8c ("usb: gadget: drop unused USB_GADGET_MUSB_HDRC")
dropped a config symbol that was unused by the musb core, but it turns
out that board support code still had references to it.

As the core now handles both dual role and host-only modes, we can just
pass MUSB_OTG as mode from board files.

Signed-off-by: Daniel Mack <zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Tested-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
---
 arch/arm/mach-omap2/board-n8x0.c | 4 ----
 arch/arm/mach-omap2/usb-musb.c   | 5 +----
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
index f6eeb87..827d150 100644
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
@@ -122,11 +122,7 @@ static struct musb_hdrc_config musb_config = {
 };
 
 static struct musb_hdrc_platform_data tusb_data = {
-#ifdef CONFIG_USB_GADGET_MUSB_HDRC
 	.mode		= MUSB_OTG,
-#else
-	.mode		= MUSB_HOST,
-#endif
 	.set_power	= tusb_set_power,
 	.min_power	= 25,	/* x2 = 50 mA drawn from VBUS as peripheral */
 	.power		= 100,	/* Max 100 mA VBUS for host mode */
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c
index 8c4de27..bc89723 100644
--- a/arch/arm/mach-omap2/usb-musb.c
+++ b/arch/arm/mach-omap2/usb-musb.c
@@ -38,11 +38,8 @@ static struct musb_hdrc_config musb_config = {
 };
 
 static struct musb_hdrc_platform_data musb_plat = {
-#ifdef CONFIG_USB_GADGET_MUSB_HDRC
 	.mode		= MUSB_OTG,
-#else
-	.mode		= MUSB_HOST,
-#endif
+
 	/* .clock is set dynamically */
 	.config		= &musb_config,
 
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH 2/2] ARM: OMAP: rx51: change musb mode to OTG
  2013-08-06 17:06 [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards Aaro Koskinen
@ 2013-08-06 17:06 ` Aaro Koskinen
       [not found]   ` <1375808776-14975-3-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
       [not found] ` <1375808776-14975-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Aaro Koskinen @ 2013-08-06 17:06 UTC (permalink / raw)
  To: Tony Lindgren, linux-arm-kernel, linux-omap, linux-usb; +Cc: Aaro Koskinen

Peripheral-only mode got broken in v3.11-rc1 because of unknown reasons.
Change the mode to OTG, in practice that should work equally well even
when/if the regression gets fixed.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 arch/arm/mach-omap2/board-rx51.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c
index d2ea68e..773510556 100644
--- a/arch/arm/mach-omap2/board-rx51.c
+++ b/arch/arm/mach-omap2/board-rx51.c
@@ -85,7 +85,7 @@ static struct omap_board_mux board_mux[] __initdata = {
 
 static struct omap_musb_board_data musb_board_data = {
 	.interface_type		= MUSB_INTERFACE_ULPI,
-	.mode			= MUSB_PERIPHERAL,
+	.mode			= MUSB_OTG,
 	.power			= 0,
 };
 
-- 
1.8.3.2


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

* Re: [PATCH 2/2] ARM: OMAP: rx51: change musb mode to OTG
       [not found]   ` <1375808776-14975-3-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
@ 2013-08-07  7:43     ` Daniel Mack
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Mack @ 2013-08-07  7:43 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: Tony Lindgren, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

Hi Aaro,

On 06.08.2013 19:06, Aaro Koskinen wrote:
> Peripheral-only mode got broken in v3.11-rc1 because of unknown reasons.

Given that you have a board that is affected, could you investigate a
little maybe? I would have done it a long time ago, but I don't have
access to such hardware unfortunately.

Not saying that your patch shouldn't go in, but at some point, we need a
sane explanation why this has happened.


Thanks,
Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards
       [not found] ` <1375808776-14975-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
  2013-08-06 17:06   ` [PATCH 1/2] ARM: omap2: fix musb usage for n8x0 Aaro Koskinen
@ 2013-08-15 19:18   ` Aaro Koskinen
  2013-08-16  6:58     ` Tony Lindgren
  1 sibling, 1 reply; 6+ messages in thread
From: Aaro Koskinen @ 2013-08-15 19:18 UTC (permalink / raw)
  To: Tony Lindgren, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

Hi,

On Tue, Aug 06, 2013 at 08:06:14PM +0300, Aaro Koskinen wrote:
> USB subsystem changes broke the USB peripheral/gadget on N800, N810 and
> RX-51/N900 during the merge window. We need to fix this in board files. I
> tested all these with 3.11-rc4 + g_ether + ssh.

Ping?

A.

> Aaro Koskinen (1):
>   ARM: OMAP: rx51: change musb mode to OTG
> 
> Daniel Mack (1):
>   ARM: omap2: fix musb usage for n8x0
> 
>  arch/arm/mach-omap2/board-n8x0.c | 4 ----
>  arch/arm/mach-omap2/board-rx51.c | 2 +-
>  arch/arm/mach-omap2/usb-musb.c   | 5 +----
>  3 files changed, 2 insertions(+), 9 deletions(-)
> 
> -- 
> 1.8.3.2
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards
  2013-08-15 19:18   ` [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards Aaro Koskinen
@ 2013-08-16  6:58     ` Tony Lindgren
  0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2013-08-16  6:58 UTC (permalink / raw)
  To: Aaro Koskinen; +Cc: linux-arm-kernel, linux-omap, linux-usb

* Aaro Koskinen <aaro.koskinen@iki.fi> [130815 12:25]:
> Hi,
> 
> On Tue, Aug 06, 2013 at 08:06:14PM +0300, Aaro Koskinen wrote:
> > USB subsystem changes broke the USB peripheral/gadget on N800, N810 and
> > RX-51/N900 during the merge window. We need to fix this in board files. I
> > tested all these with 3.11-rc4 + g_ether + ssh.
> 
> Ping?

Applying into omap-for-v3.11/fixes thanks.

Tony

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

end of thread, other threads:[~2013-08-16  6:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-06 17:06 [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards Aaro Koskinen
2013-08-06 17:06 ` [PATCH 2/2] ARM: OMAP: rx51: change musb mode to OTG Aaro Koskinen
     [not found]   ` <1375808776-14975-3-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2013-08-07  7:43     ` Daniel Mack
     [not found] ` <1375808776-14975-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2013-08-06 17:06   ` [PATCH 1/2] ARM: omap2: fix musb usage for n8x0 Aaro Koskinen
2013-08-15 19:18   ` [PATCH 0/2] ARM: OMAP: fix USB regression on Nokia boards Aaro Koskinen
2013-08-16  6:58     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).