From: Felipe Balbi <balbi@ti.com>
To: Kevin Hilman <khilman@ti.com>
Cc: Felipe Balbi <balbi@ti.com>,
linux-omap@vger.kernel.org, Greg Kroah-Hartman <gregkh@suse.de>,
"open list:MUSB MULTIPOINT H..." <linux-usb@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: musb: PM: fix context save/restore in suspend/resume path
Date: Thu, 24 Nov 2011 11:25:01 +0200 [thread overview]
Message-ID: <20111124092500.GF3352@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <1322011104-21817-1-git-send-email-khilman@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
Hi,
On Tue, Nov 22, 2011 at 05:18:24PM -0800, Kevin Hilman wrote:
> Currently the driver tries to save context in the suspend path, but
> will cause an abort if the device is already runtime suspended. This
> happens, for example, if MUSB loaded/compiled-in, in host mode, but no
> USB devices are attached. MUSB will be runtime suspended, but then
> attempting a system suspend will crash due to the context save
> being attempted while the device is disabled.
>
> On OMAP, as of v3.1, the driver's ->runtime_suspend() callback will be
> called late in the suspend path (by the PM domain layer) if the driver
> is not already runtime suspended, ensuring a full shutdown.
>
> Therefore, the context save is not needed in the ->suspend() method
> since it will be called in the ->runtime_suspend() method anyways
> (similarily for resume.)
>
> NOTE: this leaves the suspend/resume methods basically empty (with
> some FIXMEs and comments, but I'll leave it to the maintainers
> to decide whether to remove them.
>
> Signed-off-by: Kevin Hilman <khilman@ti.com>
3.1 ? so this should go to stable too, right ?
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2011-11-24 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 1:18 [PATCH] usb: musb: PM: fix context save/restore in suspend/resume path Kevin Hilman
2011-11-24 9:25 ` Felipe Balbi [this message]
2011-11-24 9:27 ` 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=20111124092500.GF3352@legolas.emea.dhcp.ti.com \
--to=balbi@ti.com \
--cc=gregkh@suse.de \
--cc=khilman@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.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