From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Rajat Jain <rajatja@google.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Jarkko Nikula <jarkko.nikula@linux.intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Wolfram Sang <wsa@the-dreams.de>,
linux-i2c <linux-i2c@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Lee Jones <lee.jones@linaro.org>,
"Wysocki, Rafael J" <rafael.j.wysocki@intel.com>,
Linux PM <linux-pm@vger.kernel.org>,
Len Brown <len.brown@intel.com>,
Furquan Shaikh <furquan@google.com>,
Rajat Jain <rajatxjain@gmail.com>
Subject: Re: [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early
Date: Thu, 21 Sep 2017 16:11:19 +0200 [thread overview]
Message-ID: <2747669.9xpxs90BZc@aspire.rjw.lan> (raw)
In-Reply-To: <CACK8Z6HQRyjFOgubBm02zZSz_o3LOgxsNbMj0VkpwN0thfZzzg@mail.gmail.com>
On Thursday, September 21, 2017 3:13:56 AM CEST Rajat Jain wrote:
> On Wed, Sep 20, 2017 at 5:24 PM, Rafael J. Wysocki <rafael@kernel.org> wrote:
> > On Thu, Sep 21, 2017 at 12:31 AM, Rajat Jain <rajatja@google.com> wrote:
> >> Ref: https://lkml.org/lkml/2017/9/19/649
> >>
> >> The bus controllers should suspend the bus operations only after
> >> all of the devices on the bus have suspended their device
> >> completely. Since the i2c_client drivers could be talking to
> >> their devices in their suspend_late() calls, lets ensure that the
> >> bus is alive by that time. Thus moving the controller suspend logic to
> >> suspend_late().
> >>
> >> Signed-off-by: Rajat Jain <rajatja@google.com>
> >> ---
> >> drivers/i2c/busses/i2c-designware-platdrv.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
> >> index 0e65b97842b4..66dd7f844c40 100644
> >> --- a/drivers/i2c/busses/i2c-designware-platdrv.c
> >> +++ b/drivers/i2c/busses/i2c-designware-platdrv.c
> >> @@ -468,7 +468,7 @@ static int dw_i2c_plat_suspend(struct device *dev)
> >> static const struct dev_pm_ops dw_i2c_dev_pm_ops = {
> >> .prepare = dw_i2c_plat_prepare,
> >> .complete = dw_i2c_plat_complete,
> >> - SET_SYSTEM_SLEEP_PM_OPS(dw_i2c_plat_suspend, dw_i2c_plat_resume)
> >> + SET_LATE_SYSTEM_SLEEP_PM_OPS(dw_i2c_plat_suspend, dw_i2c_plat_resume)
> >> SET_RUNTIME_PM_OPS(dw_i2c_plat_runtime_suspend,
> >> dw_i2c_plat_resume,
> >> NULL)
> >
> > No, you can't just do that.
> >
> > I sent patches to do it properly before my trip to LA last week, it
> > shouldn't be overly difficult to find them in the mailing list
> > archives. I can look them up tomorrow if need be.
>
> Thanks, I am guessing you mean this?
>
> https://patchwork.kernel.org/patch/9939807/
Yes, that's what I mean.
Thanks,
Rafael
next prev parent reply other threads:[~2017-09-21 14:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-20 22:31 [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early Rajat Jain
2017-09-20 22:31 ` [PATCH 2/2] mfd: intel-lpss: switch to suspend_late()/resume_early() Rajat Jain
2017-09-21 0:27 ` Rafael J. Wysocki
2017-09-21 1:14 ` Rajat Jain
2017-09-21 8:41 ` Lee Jones
2017-09-21 14:10 ` Rafael J. Wysocki
2017-09-21 15:17 ` Lee Jones
2017-09-21 15:18 ` Rafael J. Wysocki
2017-09-20 22:42 ` [PATCH 1/2] i2c: designware: switch to suspend_late/resume_early Rajat Jain
2017-09-21 0:24 ` Rafael J. Wysocki
2017-09-21 1:13 ` Rajat Jain
2017-09-21 14:11 ` Rafael J. Wysocki [this message]
2017-09-23 12:55 ` Rafael J. Wysocki
2017-09-23 15:49 ` Rajat Jain
2017-09-23 16:17 ` Rajat Jain
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=2747669.9xpxs90BZc@aspire.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=andriy.shevchenko@linux.intel.com \
--cc=furquan@google.com \
--cc=jarkko.nikula@linux.intel.com \
--cc=lee.jones@linaro.org \
--cc=len.brown@intel.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=rafael@kernel.org \
--cc=rajatja@google.com \
--cc=rajatxjain@gmail.com \
--cc=wsa@the-dreams.de \
/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