From: Felipe Balbi <me@felipebalbi.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: greg@kroah.com, linux-usb@vger.kernel.org,
linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
David Brownell <dbrownell@users.sourceforge.net>,
Felipe Balbi <felipe.balbi@nokia.com>,
Anand Gadiyar <gadiyar@ti.com>,
Mike Frysinger <vapier@gentoo.org>,
Sergei Shtylyov <sshtylyov@ru.mvista.com>
Subject: Re: [PATCH] USB: otg: twl4030: fix phy initialization
Date: Sat, 04 Sep 2010 16:24:39 -0500 [thread overview]
Message-ID: <1fb6fc37cd0f017043d5c124bca4bb1a@secure211.sgcpanel.com> (raw)
In-Reply-To: <AANLkTikiFbw6xz5jbvgPR5-X5mZxDkOjLdFuc=vG10qK@mail.gmail.com>
Hi,
On Sat, 4 Sep 2010 23:36:39 +0800, Ming Lei <tom.leiming@gmail.com> wrote:
> Considered bit PHYPWD of PHY_PWR_CTRL is zero at default,
> say, OTG phy is not put into power down after system poweron,
> so 2.6.36-rc3 will make musb device mode broken if bootloader
> doesn't touch PHYPWD of PHY_PWR_CTRL.
>
> Could you ack the patch if no further objections or give other
> suggestions?
I don't see why that patch should cause problems with device
mode. Fact is that transceiver is only "asleep" when PHYPWD
bit is true and without setting that flag correctly we were
leaving phy's LDOs powered on for nothing when we were
booting without a USB cable connected.
If you don't explain exactly what is the problem you see
(besides the WARN) it's to help any further, specially now
that I'm 100% without HW to test against. I'm also in a
big hurry packing a buch of stuff for moving to another
appartment, so if there isn't enough information, I can't
be of any help.
Still, I would NACK you patch because I don't think it's
approaching the correct problem. If you only see that WARN,
you could start by chaging the code so that:
if (!regulator_is_enabled(twl->usb3v1)
regulator_enable(twl->usb3v1);
and similarly for the regulator_disable() call, then check
whether there are any other problems. If there are, we will
take it from there.
All in all, I doubt that patch would cause break anything
since it's just checking the initial state from the
transceiver itself to set a flag in the driver structure,
that's all.
--
balbi
next prev parent reply other threads:[~2010-09-04 21:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 15:58 [PATCH] USB: otg: twl4030: fix phy initialization tom.leiming
2010-09-02 18:28 ` Felipe Balbi
2010-09-03 0:43 ` Ming Lei
[not found] ` <AANLkTimts7SjE9EKrmsSkynWsQc_VtJUVVigrFs2VtrK-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-04 15:36 ` Ming Lei
2010-09-04 21:24 ` Felipe Balbi [this message]
[not found] ` <1fb6fc37cd0f017043d5c124bca4bb1a-WEDJutINlwSqfKURHDCIgFDQ4js95KgL@public.gmane.org>
2010-09-05 6:42 ` Ming Lei
[not found] ` <AANLkTi=4J5u4SEh5jSPxObceWdAom51R+H_j8oApG5PG-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-05 9:51 ` Felipe Balbi
2010-09-05 16:00 ` Ming Lei
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=1fb6fc37cd0f017043d5c124bca4bb1a@secure211.sgcpanel.com \
--to=me@felipebalbi.com \
--cc=dbrownell@users.sourceforge.net \
--cc=felipe.balbi@nokia.com \
--cc=gadiyar@ti.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
--cc=tom.leiming@gmail.com \
--cc=vapier@gentoo.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