From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
linux-pwm@vger.kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 1/2] pwm: lpss: Add pwm_lpss_get_put_runtime_pm helper function
Date: Mon, 24 Sep 2018 16:22:58 +0300 [thread overview]
Message-ID: <20180924132258.GO15943@smile.fi.intel.com> (raw)
In-Reply-To: <658bf04b-5040-5eb4-6492-3ffad778e415@redhat.com>
On Mon, Sep 24, 2018 at 02:13:03PM +0200, Hans de Goede wrote:
> On 24-09-18 12:05, Andy Shevchenko wrote:
> > On Mon, Sep 24, 2018 at 11:58:42AM +0200, Hans de Goede wrote:
> > Thanks.
> > I'm just wondering if we can leave pwm_lpss_apply() untouched and use a new helper for ->remove() and ->get_state() only.
>
> The idea was to have a single place doing the pm_runtime_get() and
> pm_runtime_put() calls. Leaving pwm_lpss_apply() as is and this not
> using this helper there is fine with me, but then we might just as
> well directly do the [un]ref directly in >remove() and ->get_state()
> as well, that is just 2 lines (instead of 1) for each.
>
> I'm not against leaving pwm_lpss_apply() as is, but then we might
> just as well drop this patch, so do you want to drop this patch
> for v2 ?
I would prefer not to change ->apply().
So, please, modify (I guess we still need some pm calls in ->remove()).
Perhaps it would also require Fixes tag to be applied.
>
> Also do you have any remarks on the patch adding the get_stage
> callback before I send out a v2?
No, looks sane, just same comment as above per pm calls.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2018-09-24 13:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-11 17:45 [PATCH 0/2] pwm: lpss: Atomic PWM support for LPSS Hans de Goede
2018-09-11 17:45 ` [PATCH 1/2] pwm: lpss: Add pwm_lpss_get_put_runtime_pm helper function Hans de Goede
2018-09-24 9:16 ` Andy Shevchenko
2018-09-24 9:58 ` Hans de Goede
2018-09-24 10:05 ` Andy Shevchenko
2018-09-24 12:13 ` Hans de Goede
2018-09-24 13:22 ` Andy Shevchenko [this message]
2018-09-11 17:45 ` [PATCH 2/2] pwm: lpss: Add get_state callback Hans de Goede
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=20180924132258.GO15943@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=thierry.reding@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox