From: Felipe Balbi <balbi@ti.com>
To: Todd Poynor <toddpoynor@google.com>
Cc: balbi@ti.com, "Kiran Kumar Raparthy" <kiran.kumar@linaro.org>,
LKML <linux-kernel@vger.kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org,
"Android Kernel Team" <kernel-team@android.com>,
"John Stultz" <john.stultz@linaro.org>,
"Arve Hj�nnev�g" <arve@android.com>,
"Benoit Goby" <benoit@android.com>,
"Ruchi Kandoi" <kandoiruchi@google.com>,
"Badhri Jagan Sridharan" <badhri@google.com>
Subject: Re: [RFC 1/2] USB: OTG: Hold wakeupsource when VBUS present
Date: Fri, 29 Aug 2014 15:50:15 -0500 [thread overview]
Message-ID: <20140829205015.GE16391@saruman.home> (raw)
In-Reply-To: <CAAW3YpZPOCkTkx=OM_0ZYA7brh5t32miprstLqGyurD9vN94yg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]
Hi,
On Wed, Aug 27, 2014 at 02:58:30PM -0700, Todd Poynor wrote:
> On Fri, Aug 22, 2014 at 10:12 AM, Felipe Balbi <balbi@ti.com> wrote:
> ...
> > you never explain why this is needed and you have also added some
> > information to commit log which shouldn't be here.
>
> Android uses this to prevent suspend from interfering with USB
> peripheral traffic, notably adb.
aaaaah, that's because Android freezes userspace right ?
> The wakeup source is held only when USB is connected and enumerated
> for a host session (I might be using wrong terminology here). It may
> not be necessary on a platform that implements wakeup on incoming USB
> traffic, although it is likely adb and other protocols would need to
> hold wakeup sources at certain times.
>
> ...
> >> +static struct otgws_lock vbus_lock;
> >
> > should be per-PHY
>
> One of the reasons this was done as a separate driver and via
> notifiers was to keep the (original Android wakelock) logic out of the
> USB code. If the general idea is something that finds favor with the
> USB and PM folks then perhaps adding a wakeup source per PHY in the
> PHY driver would be better.
it's best to do it per-PHY, but it doesn't have to be written into each
and every PHY driver, do it at the core and abstract that away from PHY
drivers.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-08-29 20:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-22 9:49 [RFC 1/2] USB: OTG: Hold wakeupsource when VBUS present Kiran Kumar Raparthy
2014-08-22 14:00 ` Alan Stern
2014-08-22 17:12 ` Felipe Balbi
2014-08-27 21:58 ` Todd Poynor
2014-08-29 20:50 ` Felipe Balbi [this message]
2014-09-03 0:32 ` Todd Poynor
2014-09-01 2:11 ` Peter Chen
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=20140829205015.GE16391@saruman.home \
--to=balbi@ti.com \
--cc=arve@android.com \
--cc=badhri@google.com \
--cc=benoit@android.com \
--cc=gregkh@linuxfoundation.org \
--cc=john.stultz@linaro.org \
--cc=kandoiruchi@google.com \
--cc=kernel-team@android.com \
--cc=kiran.kumar@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=toddpoynor@google.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