From: nsekhar@ti.com (Sekhar Nori)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 1/2] i2c: davinci: Add PM Runtime Support
Date: Tue, 12 Sep 2017 14:52:02 +0530 [thread overview]
Message-ID: <d8ee0f47-fa69-3aca-6c5d-24f25505fa05@ti.com> (raw)
In-Reply-To: <CAMz4ku+_saDS8VBf1kXb+HMDqvx2O2o4qwcU4dEjFvtyE_9JKg@mail.gmail.com>
On Tuesday 12 September 2017 02:44 PM, Baolin Wang wrote:
> Hi,
>
> On 12 September 2017 at 16:48, Sekhar Nori <nsekhar@ti.com> wrote:
>> On Tuesday 12 September 2017 07:28 AM, Baolin Wang wrote:
>>>> @@ -802,13 +821,24 @@ static int davinci_i2c_probe(struct platform_device *pdev)
>>>> dev->clk = devm_clk_get(&pdev->dev, NULL);
>>>> if (IS_ERR(dev->clk))
>>>> return PTR_ERR(dev->clk);
>>>> - clk_prepare_enable(dev->clk);
>>
>>> You removed clk enable here, I think it can not work if we did not
>>> open CONFIG_PM macro. I think you should keep clk enable here, and set
>>
>> What do you mean by "open CONFIG_PM macro" ?
>
> If you did not open CONFIG_PM macro, then the pm_runtime_xxx() will be
> dummy functions, but now the i2c driver can not work since you did not
> enable clock, right?
Ah, okay. I am not sure thats a concern on platforms on which this
driver is used. Without PM runtime support, most likely the platforms
will not boot and multiple drivers will fail.
Thanks,
Sekhar
next prev parent reply other threads:[~2017-09-12 9:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 20:11 [PATCH v4 0/2] i2c: davinci: Add PM Runtime Support needed by 66AK2G Franklin S Cooper Jr
2017-09-11 20:11 ` [PATCH v4 1/2] i2c: davinci: Add PM Runtime Support Franklin S Cooper Jr
2017-09-12 1:58 ` Baolin Wang
2017-09-12 8:48 ` Sekhar Nori
2017-09-12 9:14 ` Baolin Wang
2017-09-12 9:22 ` Sekhar Nori [this message]
2017-10-17 21:46 ` Wolfram Sang
2017-09-11 20:11 ` [PATCH v4 2/2] dt-bindings: i2c: i2c-davinci: Update binding for 66AK2Gx pwr dm property Franklin S Cooper Jr
2017-10-17 21:46 ` Wolfram Sang
2017-09-18 15:58 ` [PATCH v4 0/2] i2c: davinci: Add PM Runtime Support needed by 66AK2G Sekhar Nori
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=d8ee0f47-fa69-3aca-6c5d-24f25505fa05@ti.com \
--to=nsekhar@ti.com \
--cc=linux-arm-kernel@lists.infradead.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