From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Ezequiel Garcia <elezegarcia@gmail.com>, Felipe Balbi <balbi@ti.com>
Cc: george.cherian@ti.com, linux-usb@vger.kernel.org,
linux-omap@vger.kernel.org, b-cousson@ti.com
Subject: Re: musb: dsps: make it work with two instances
Date: Wed, 17 Jul 2013 19:12:29 +0200 [thread overview]
Message-ID: <20130717171229.GA1516@linutronix.de> (raw)
In-Reply-To: <CALF0-+Vo64Znw_iY0gOx5hGJ9mgw7OXFQ5HqBrTW4udW-Z=N+g@mail.gmail.com>
* Ezequiel Garcia | 2013-07-06 18:39:50 [-0300]:
>Hi Sebastian,
Hi Ezequiel,
>After some minor DT tweaking on the current patchset,
>I've managed to detect an USB mass storage device in the
>second instance (host / usb1) using a Beaglebone black board.
Beaglebone black, that one has a different device tree which is not
mainline, right?
>However, after I unplug the device, it's not recognized
>when I replug it. Maybe you can take a look at this;
>i'll do some more testings and see what I can come up with.
I figured out why my Host is not recognized on the second plug:
At module load time, musb_start() is executed and it sets the
MUSB_DEVCTL_SESSION in devctl.
After the device is unplugged dsps_musb_try_idle() schedules a timer
which executes the local otg_timer() function. Since the phy is in
OTG_STATE_A_WAIT_BCON state, the MUSB_DEVCTL_SESSION bit gets removed.
If the removal of the bit is ignored, the device is recognized after a
re-plug.
Now a question: I see that am35x and anothers also remove that flag in
thsi case. How is the flag supposed to come back?
I see that blackfin removes that bit and stuffs it back in. Any idea
what should be done here?
>Also, FWIW, I think that having a separate USB phy for am35xx would be
>much better.
So you would prefer a new file with 90% copy of what we already have in
the nop_phy?
Sebastian
next prev parent reply other threads:[~2013-07-17 17:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-05 13:32 musb: dsps: make it work with two instances Sebastian Andrzej Siewior
2013-07-05 13:32 ` [PATCH 2/5] arm: dts: am33xx: add USB phy nodes Sebastian Andrzej Siewior
[not found] ` <1373031178-8871-3-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-07-05 14:41 ` Ruchika Kharwar
[not found] ` <51D6DB15.1050701-l0cyMroinI0@public.gmane.org>
2013-07-05 14:56 ` Sebastian Andrzej Siewior
2013-07-25 14:27 ` Felipe Balbi
2013-07-05 13:32 ` [PATCH 3/5] usb: musb: dsps: remove the hardcoded phy pieces Sebastian Andrzej Siewior
2013-07-25 14:28 ` Felipe Balbi
[not found] ` <1373031178-8871-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-07-05 13:32 ` [PATCH 1/5] usb: phy: phy-nop: add support for am335x PHY Sebastian Andrzej Siewior
[not found] ` <1373031178-8871-2-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-07-25 14:24 ` Felipe Balbi
2013-07-05 13:32 ` [PATCH 4/5] usb: musb: dsps: use proper child nodes Sebastian Andrzej Siewior
2013-07-05 15:08 ` Enric Balletbo Serra
[not found] ` <CAFqH_529D9rEJJ2rk3jGm0aGt4ZXBpP=R3azAKUxyp9vA-Nf4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-05 15:15 ` Sebastian Andrzej Siewior
2013-07-05 15:22 ` Enric Balletbo Serra
2013-07-05 15:24 ` Sebastian Andrzej Siewior
2013-07-25 14:30 ` Felipe Balbi
2013-07-05 13:32 ` [PATCH 5/5] musb: musb: dsps: remove instances variable Sebastian Andrzej Siewior
2013-07-25 14:30 ` Felipe Balbi
2013-07-06 21:39 ` musb: dsps: make it work with two instances Ezequiel Garcia
[not found] ` <CALF0-+Vo64Znw_iY0gOx5hGJ9mgw7OXFQ5HqBrTW4udW-Z=N+g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-08 8:28 ` Sebastian Andrzej Siewior
2013-07-17 17:12 ` Sebastian Andrzej Siewior [this message]
[not found] ` <20130717171229.GA1516-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-07-17 17:58 ` Ezequiel Garcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130717171229.GA1516@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=b-cousson@ti.com \
--cc=balbi@ti.com \
--cc=elezegarcia@gmail.com \
--cc=george.cherian@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).