Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: me@felipebalbi.com
Cc: Tony Lindgren <tony@atomide.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 13:16:50 -0700	[thread overview]
Message-ID: <200810181316.51253.david-b@pacbell.net> (raw)
In-Reply-To: <20081018194304.GP31842@frodo>

On Saturday 18 October 2008, Felipe Balbi wrote:
> > 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.

Right now all we need is a way to make sure the MUSB code
isn't assuming an integrated transceiver ... the patch I
just sent is *only* to git rid of that "use an out-of-date
copy of the original transceiver" logic.


There are certainly some improvements that can be made in
the area of OTG transceiver handling.  There are some PXA
related patches in that area, too.  ISTR one of them was
just to provide calls to register and unregister the OTG
transceiver, moving them out of platform code (where they
live today)...

What I recall about your drivers/usb/otg notion (maybe not
entirely correctly) was that it covered a lot of stuff
which, it seemed to me, didn't need abstracting.

Maybe once we get the current MUSB stuff to work within
the current framework -- which splits out otg_transceiver
as an entity that host and peripheral side controller
drivers talk to -- we should revisit such stuff.


> 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 don't follow *that* at all.  If some driver other than
twl4030-usb registers as the system's OTG transceiver,
MUSB on OMAP3x should just use that.  All musb should do
is ask for the transceiver, and then talk to it ... but
the current code can't do that.


> I'd say your fix is good as a short term, right ?

Let's make sure it doesn't break DaVinci and TUSB first.
It'd be good to remove the musb->xceiv->state doubled
indirections in most places too, just as cleanup.

(Plus cope with the $SUBJECT issue "for real"!)


> We have already 
> blackfin support for musb and most likely they won't usb twl4030 chips,

Right.  Does Blackfin have an integrated transceiver like
DaVinci and TUSB?  Or does it use a discrete one?


> 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 ??

I'm thinking this issue needs resolving before twl4030-usb can
go upstream.  :)

Does mainline work with tusb6010 today?  I see lots of USB
patches merged yesterday.  And enough ARM/DaVinci patches
merged (a few days back) that its MUSB might work too.

- Dave


> 
> -- 
> balbi
> 
> 



  reply	other threads:[~2008-10-18 20:16 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
2008-10-18 20:16           ` David Brownell [this message]
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=200810181316.51253.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=me@felipebalbi.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox