From: Todd Poynor <toddpoynor@google.com>
To: Keshava Munegowda <keshava_mgowda@ti.com>
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
linux-kernel@vger.kernel.org, balbi@ti.com, gadiyar@ti.com,
sameo@linux.intel.com, parthab@india.ti.com, tony@atomide.com,
khilman@ti.com, b-cousson@ti.com, paul@pwsan.com,
johnstul@us.ibm.com, vishwanath.bs@ti.com
Subject: Re: [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support
Date: Wed, 10 Aug 2011 09:31:42 -0700 [thread overview]
Message-ID: <20110810163142.GA10156@google.com> (raw)
In-Reply-To: <1312899309-24067-6-git-send-email-keshava_mgowda@ti.com>
On Tue, Aug 09, 2011 at 07:45:09PM +0530, Keshava Munegowda wrote:
> From: Keshava Munegowda <Keshava_mgowda@ti.com>
>
> The usbhs core driver does not enable/disable the intefrace and
typo: interface
> fucntional clocks; These clocks are handled by hwmod and runtime pm,
typo: functional
> hence insted of the clock enable/disable, the runtime pm APIS are
> used. however,the port clocks are handled by the usbhs core.
>
> Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
...
> @@ -913,12 +598,15 @@ static int usbhs_enable(struct device *dev)
> (pdata->ehci_data->reset_gpio_port[1], 1);
> }
>
> -end_count:
> - omap->count++;
> + pm_runtime_put_sync(dev);
> spin_unlock_irqrestore(&omap->lock, flags);
Is pm_runtime_irq_safe() needed (else I think runtime PM callbacks may
re-enable IRQs... or there's the new *_suspend runtime PM calls that
may avoid this)?
...
> @@ -266,10 +261,12 @@ static int ehci_hcd_omap_remove(struct platform_device *pdev)
> struct usb_hcd *hcd = dev_get_drvdata(dev);
>
> usb_remove_hcd(hcd);
> - omap_usbhs_disable(dev);
> disable_put_regulator(dev->platform_data);
> - iounmap(hcd->regs);
> usb_put_hcd(hcd);
> + iounmap(hcd->regs);
usb_put_hcd may release the hcd, needs to be after the deref for
iounmap.
> + pm_runtime_put_sync(dev);
> + pm_runtime_disable(dev);
Todd
next prev parent reply other threads:[~2011-08-10 16:31 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 14:15 [PATCH 0/5 v4] mfd: omap: usb: Runtime PM support for EHCI and OHCI drivers Keshava Munegowda
2011-08-09 14:15 ` Keshava Munegowda
2011-08-09 14:15 ` [PATCH 1/5 v4] arm: omap: usb: ehci and ohci hwmod structures for omap4 Keshava Munegowda
2011-08-09 14:15 ` Keshava Munegowda
2011-08-09 14:15 ` [PATCH 2/5 v4] arm: omap: usb: ehci and ohci hwmod structures for omap3 Keshava Munegowda
2011-08-09 14:15 ` Keshava Munegowda
2011-08-09 14:15 ` [PATCH 3/5 v4] arm: omap: usb: register hwmods of usbhs Keshava Munegowda
2011-08-09 14:15 ` Keshava Munegowda
2011-08-09 14:15 ` [PATCH 4/5 v4] arm: omap: usb: device name change for the clk names " Keshava Munegowda
2011-08-09 14:15 ` Keshava Munegowda
2011-08-09 14:15 ` [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support Keshava Munegowda
2011-08-09 14:15 ` Keshava Munegowda
2011-08-10 16:31 ` Todd Poynor [this message]
2011-08-12 6:50 ` Munegowda, Keshava
2011-08-12 6:50 ` Munegowda, Keshava
2011-08-12 21:30 ` Todd Poynor
2011-08-12 21:30 ` Todd Poynor
2011-08-12 23:19 ` Menon, Nishanth
2011-08-12 23:19 ` Menon, Nishanth
2011-08-17 10:26 ` Munegowda, Keshava
2011-08-17 10:26 ` Munegowda, Keshava
[not found] ` <20110812213037.GA24803-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2011-08-29 18:36 ` Kevin Hilman
2011-08-29 18:36 ` Kevin Hilman
2011-08-11 15:20 ` Ming Lei
2011-08-11 15:20 ` Ming Lei
[not found] ` <1312899309-24067-6-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2011-08-29 18:50 ` Kevin Hilman
2011-08-29 18:50 ` Kevin Hilman
2011-08-29 20:47 ` Kevin Hilman
[not found] ` <8739gkrllg.fsf-l0cyMroinI0@public.gmane.org>
2011-08-30 6:17 ` Munegowda, Keshava
2011-08-30 6:17 ` Munegowda, Keshava
[not found] ` <1312899309-24067-3-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2011-08-11 15:23 ` [PATCH 2/5 v4] arm: omap: usb: ehci and ohci hwmod structures for omap3 Ming Lei
2011-08-11 15:23 ` Ming Lei
2011-08-12 5:46 ` Munegowda, Keshava
2011-08-12 5:46 ` Munegowda, Keshava
2011-08-12 7:25 ` Ming Lei
2011-08-12 7:25 ` Ming Lei
2011-08-12 8:12 ` Munegowda, Keshava
2011-08-12 8:12 ` Munegowda, Keshava
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=20110810163142.GA10156@google.com \
--to=toddpoynor@google.com \
--cc=b-cousson@ti.com \
--cc=balbi@ti.com \
--cc=gadiyar@ti.com \
--cc=johnstul@us.ibm.com \
--cc=keshava_mgowda@ti.com \
--cc=khilman@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=parthab@india.ti.com \
--cc=paul@pwsan.com \
--cc=sameo@linux.intel.com \
--cc=tony@atomide.com \
--cc=vishwanath.bs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.