linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB, Host and Device on the same machine
@ 2008-10-24  7:18 Fredrik Johansson
       [not found] ` <53e45cc30810240018w1c3c73c2nf9a9b606e0e7dea4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2008-10-27 16:44 ` David Brownell
  0 siblings, 2 replies; 4+ messages in thread
From: Fredrik Johansson @ 2008-10-24  7:18 UTC (permalink / raw)
  To: linux-embedded

Hello

I am working on an embedded machine that has two USB controllers, one
is a OTG and the other is a pure host.

I have succesfully used g_serial driver on the OTG controller in
device mode and talked to my pc using the cdc-acm driver.
With the g_serial unloaded I have also enabled the ehci-hcd and
cdc-acm drivers and connected the host port to another serial device.

The problem I have now is that I want to be able to have my embedded
machine work as a device on the OTG port and a host on the host port,
but if I load the ehci-hcd driver with g_serial already loaded it
screws everything up since ehci-hcd driver attaches to both the OTG
and the host controller, how can i prevent it from using the OTG
controller?

Best regards
Fredrik Johansson

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

* Re: USB, Host and Device on the same machine
       [not found] ` <53e45cc30810240018w1c3c73c2nf9a9b606e0e7dea4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2008-10-24  8:01   ` Ming Lei
  0 siblings, 0 replies; 4+ messages in thread
From: Ming Lei @ 2008-10-24  8:01 UTC (permalink / raw)
  To: Fredrik Johansson
  Cc: linux-embedded-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

2008/10/24 Fredrik Johansson <frejo242-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Hello
>
> I am working on an embedded machine that has two USB controllers, one
> is a OTG and the other is a pure host.
>
> I have succesfully used g_serial driver on the OTG controller in
> device mode and talked to my pc using the cdc-acm driver.
> With the g_serial unloaded I have also enabled the ehci-hcd and
> cdc-acm drivers and connected the host port to another serial device.
>
> The problem I have now is that I want to be able to have my embedded
> machine work as a device on the OTG port and a host on the host port,
> but if I load the ehci-hcd driver with g_serial already loaded it
> screws everything up since ehci-hcd driver attaches to both the OTG
> and the host controller, how can i prevent it from using the OTG
> controller?

It is a platform dependent problem.  what is your platform ?( musb? )
which buses do the otg controller and ehci controller attache to?

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



-- 
Lei Ming
--
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] 4+ messages in thread

* Re: USB, Host and Device on the same machine
  2008-10-24  7:18 USB, Host and Device on the same machine Fredrik Johansson
       [not found] ` <53e45cc30810240018w1c3c73c2nf9a9b606e0e7dea4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2008-10-27 16:44 ` David Brownell
  2008-10-28  7:42   ` Fredrik Johansson
  1 sibling, 1 reply; 4+ messages in thread
From: David Brownell @ 2008-10-27 16:44 UTC (permalink / raw)
  To: Fredrik Johansson; +Cc: linux-embedded

On Friday 24 October 2008, Fredrik Johansson wrote:
> if I load the ehci-hcd driver with g_serial already loaded it
> screws everything up since ehci-hcd driver attaches to both the OTG
> and the host controller, how can i prevent it from using the OTG
> controller?

If the OTG controller exposes EHCI as its host interface, it
sure *ought* to be managed by the EHCI driver.  Maybe you
should be submitting a patch adding OTG glue to EHCI?

If it's not exposing EHCI as its host interface, then it seems
your OTG driver is quite buggy...

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

* Re: USB, Host and Device on the same machine
  2008-10-27 16:44 ` David Brownell
@ 2008-10-28  7:42   ` Fredrik Johansson
  0 siblings, 0 replies; 4+ messages in thread
From: Fredrik Johansson @ 2008-10-28  7:42 UTC (permalink / raw)
  To: David Brownell; +Cc: linux-embedded

> If the OTG controller exposes EHCI as its host interface, it
> sure *ought* to be managed by the EHCI driver.  Maybe you
> should be submitting a patch adding OTG glue to EHCI?
>
> If it's not exposing EHCI as its host interface, then it seems
> your OTG driver is quite buggy...
>

Thanks for the advice.
The OTG controller was exposed as a host and it was my fault...
It was a miss in my kernel config where I had enabled host
functionality on the OTG controller, disabling host functionality
solved the problem since I only want to use it as a device.

Regards

Fredrik Johansson

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

end of thread, other threads:[~2008-10-28  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24  7:18 USB, Host and Device on the same machine Fredrik Johansson
     [not found] ` <53e45cc30810240018w1c3c73c2nf9a9b606e0e7dea4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-24  8:01   ` Ming Lei
2008-10-27 16:44 ` David Brownell
2008-10-28  7:42   ` Fredrik Johansson

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).