From: Felipe Balbi <me@felipebalbi.com>
To: David Brownell <david-b@pacbell.net>
Cc: Tony Lindgren <tony@atomide.com>,
Felipe Balbi <me@felipebalbi.com>,
"Pandita, Vikram" <vikram.pandita@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] Fix bootup crash for LDP platform
Date: Sat, 18 Oct 2008 22:43:14 +0300 [thread overview]
Message-ID: <20081018194304.GP31842@frodo> (raw)
In-Reply-To: <200810181228.09194.david-b@pacbell.net>
On Sat, Oct 18, 2008 at 12:28:08PM -0700, David Brownell wrote:
> On Saturday 18 October 2008, Tony Lindgren wrote:
> > Pushed. I hope you have a real fix for this coming from mainline soon :)
>
> There's a general issue to sort out here too.
>
> The early development of the MUSB code was on DaVinci, and
> then TUSB6010, which integrate (a) an OTG transceiver, plus
> (b) the OTG hardware. So musb_hdrc currently presumes it
> always works that way.
>
> However, OMAP3 (and 2430) split out (a) into the TWL4030
> or TWL5030 chip, leaving (b) integral to the MUSB silicon.
>
> But the MUSB code only accomodates that through a hack ...
> in musb/omap2430.c is the line which I suspect oopsed:
>
> musb->xceiv = *x;
>
> So when the twl4030 transceiver support does its thing,
> it does it to the original otg_transceiver struct instead
> of the copy being used by the MUSB core. Wrong!!!
>
> Partial fixup patch appended; doesn't resolve $SUBJECT
> issue, I think, but it's in the right direction.
Looks fine. I recall talking to you about this some months ago but my
approach was about introducing a drivers/usb/otg layer to which we would
usb_otg_register_driver() or something similar thus allowing musb (or
any other consumer) just use the otg_tranceiver that is registered now.
The good thing about it is that it would allow us to switch otg
transceivers and not have to add aditional conditional code to handle
it.
Your approach looks good but case we have to change the transceiver (not
twl4030-usb, let's say) it's a bit difficult to handle that.
I'd say your fix is good as a short term, right ? We have already
blackfin support for musb and most likely they won't usb twl4030 chips,
I also got a mail from another company asking about adding their musb
glue to our code so this problem with the otg transceiver might soon be
a big pain.
What do you say ??
--
balbi
next prev parent reply other threads:[~2008-10-18 19:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1224284642-13863-1-git-send-email-vikram.pandita@ti.com>
2008-10-17 23:08 ` [PATCH] Fix bootup crash for LDP platform Pandita, Vikram
2008-10-17 23:50 ` Felipe Balbi
2008-10-18 13:56 ` Tony Lindgren
2008-10-18 19:28 ` David Brownell
2008-10-18 19:43 ` Felipe Balbi [this message]
2008-10-18 20:16 ` David Brownell
2008-10-18 20:36 ` Felipe Balbi
2008-10-22 15:35 ` Bryan Wu
2008-10-22 16:33 ` Felipe Balbi
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=20081018194304.GP31842@frodo \
--to=me@felipebalbi.com \
--cc=david-b@pacbell.net \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
--cc=vikram.pandita@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.