[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP05o4L+qn4K=jLx5Jo8WsG7LnU=VniQSR+fLc=RM5mW4kP1OQ@mail.gmail.com>
Date: Fri, 12 Aug 2011 12:20:21 +0530
From: "Munegowda, Keshava" <keshava_mgowda@...com>
To: Todd Poynor <toddpoynor@...gle.com>
Cc: linux-usb@...r.kernel.org, linux-omap@...r.kernel.org,
linux-kernel@...r.kernel.org, balbi@...com, gadiyar@...com,
sameo@...ux.intel.com, parthab@...ia.ti.com, tony@...mide.com,
khilman@...com, b-cousson@...com, paul@...an.com,
johnstul@...ibm.com, vishwanath.bs@...com
Subject: Re: [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support
On Wed, Aug 10, 2011 at 10:01 PM, Todd Poynor <toddpoynor@...gle.com> wrote:
> On Tue, Aug 09, 2011 at 07:45:09PM +0530, Keshava Munegowda wrote:
>> From: Keshava Munegowda <Keshava_mgowda@...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@...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)?
pm_runtime_irq_safe() is not required; usbhs does not have a parent
and it is the parent driver of
ehci and ohci drivers.
>
> ...
>> @@ -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);
yes , I will do this.
>
>
> 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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists