From: David Brownell <david-b@pacbell.net>
To: "Gupta, Ajay Kumar" <ajay.gupta@ti.com>
Cc: "Pillai, Manikandan" <mani.pillai@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 3/3] musb: Remvoing twl4030 dependency for OMAP3EVM MUSB
Date: Fri, 28 Nov 2008 09:25:26 -0800 [thread overview]
Message-ID: <200811280925.26736.david-b@pacbell.net> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E739403E904EBCD@dbde02.ent.ti.com>
On Thursday 27 November 2008, Gupta, Ajay Kumar wrote:
> > This is obviously wrong. One does set_transceiver(),
> > the other does get_transceiver() ...
>
> For OMAP3EVM we don't need twl4030 support for musb and thus
> otg_set_transceiver() which was done
> in twl4030-usb.c, is now done here itself for OMAP3EVM.
Which is obviously wrong. Some other code should have
called otg_set_transceiver() ... *NEVER* the musb driver,
except with silicon that integrates an OTG transceiver
(like DaVinci and Blackfin).
Yes, the MUSB driver hasn't fully sorted this out yet;
it started with DaVinci EVMs, and only later started
to support discrete transceivers. Patches are in the
works to fix that, I'm not sure of their status.
That's an example of why you must not discard your basic
intuition when updating drivers ... like noticing that
since two branches of an #if do entirely different things,
at least one branch must accordingly be wrong.
> Whereas for SDP and Beagle twol4030-usb would be enabled and
> thus otg_set_transceiver() would
> have been done in twl4030-usb.c file itself.
>
> >
> > It seems that some boards need some kind of basic
> > OTG transceiver stub. The newish drivers/usb/otg
> > directory is the place to keep such stuff.
So the answer for you is obviously to have something
other than the musb driver hold your otg_transceiver
driver. Like ... an isp1504.c I2C driver, which will
eventually move to drivers/usb/otg and which calls
the otg_set_transceiver() utility.
Board-specific logic would presumably involve just
declaring the i2c board info for the isp1504 chip.
- Dave
next prev parent reply other threads:[~2008-11-28 17:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-28 5:28 [PATCH 3/3] musb: Remvoing twl4030 dependency for OMAP3EVM MUSB Manikandan Pillai
2008-11-28 6:46 ` Felipe Balbi
2008-11-28 6:51 ` Gupta, Ajay Kumar
2008-11-28 7:08 ` Felipe Balbi
2008-11-28 7:02 ` David Brownell
2008-11-28 7:58 ` Gupta, Ajay Kumar
2008-11-28 17:25 ` David Brownell [this message]
2008-11-28 17:59 ` Felipe Balbi
2008-11-28 18:37 ` David Brownell
2008-11-28 19:43 ` 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=200811280925.26736.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=ajay.gupta@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=mani.pillai@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