[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANYu_0t0XpZPcq+Lh+z_CxERFFNkZKX9Rp8yttd7GdMcwe98Bg@mail.gmail.com>
Date: Wed, 31 Aug 2016 10:52:55 +0530
From: Pramod Gurav <pramod.gurav@...aro.org>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: Adrian Hunter <adrian.hunter@...el.com>,
linux-mmc <linux-mmc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mmc: sdhci-msm: Add pm_runtime and system PM support
Thanks Ulf for the review.
On 29 August 2016 at 19:50, Ulf Hansson <ulf.hansson@...aro.org> wrote:
> On 16 June 2016 at 14:35, Pramod Gurav <pramod.gurav@...aro.org> wrote:
<snip>
>> + platform_set_drvdata(pdev, msm_host);
>> +
>> + pm_runtime_set_active(&pdev->dev);
>> + pm_runtime_enable(&pdev->dev);
>
> I think you need to move these a bit earlier, before calling sdhci_add_host().
>
> Maybe it's just easier if you look at the sdhci-of-at91.c driver,
> which behaves nicely around runtime PM deployment. You can probably
> use the very similar code, except the ->runtime_suspend|resume()
> callbacks.
>
> And don't forget to deploy runtime PM support in the ->remove()
> callback as well, again sdhci-of-at91 is a good reference.
>
Will take a look at the said driver and do necessary changes and repost.
Thanks again.
Regards,
Pramod
Powered by blists - more mailing lists