mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Subject: Re: [PATCH v1 1/1] platform/x86/intel: atomisp2: Replace deprecated UNIVERSAL_DEV_PM_OPS()
Date: Wed, 10 Apr 2024 13:00:21 +0200	[thread overview]
Message-ID: <a510f246-1f3e-4674-9825-e1dee11c3ee9@redhat.com> (raw)
In-Reply-To: <ZhV3zUgZjAMUZ0yD@smile.fi.intel.com>

Hi,

On 4/9/24 7:15 PM, Andy Shevchenko wrote:
> On Mon, Apr 08, 2024 at 06:20:03PM +0200, Hans de Goede wrote:
>> On 4/3/24 12:55 PM, Andy Shevchenko wrote:
> 
> ...
> 
>> As mentioned in the description of DEFINE_RUNTIME_DEV_PM_OPS()
>> DEFINE_RUNTIME_DEV_PM_OPS() is NOT a 1:1 replacement for
>> UNIVERSAL_DEV_PM_OPS() specifically it uses pm_runtime_force_suspend() /
>> pm_runtime_force_resume() .
> 
> Right.
> 
>> Specifically pm_runtime_force_suspend() may NOT get set (and in this case
>> will not set) needs_force_resume skipping a resume + suspend cycle
>> after a system suspend, which is a problem if firmware has touched
>> the state of the device during the suspend/resume cycle since the device
>> may now actually be left powered on.
> 
> I see, thanks for explaining me this. So this driver is kinda very special.
> Still the old question, can we get rid altogether of these atomisp "drivers"
> in PDx86?

At some time in the future yes. I've recently done some improvements to
the staging atomisp driver so that it will run in a pm-only mode when
the firmware is missing so that the ISP still gets turned off properly
in this case and the driver now supports both BYT + CHT in a single
build so in a way it is ready to replace the atomisp2 pm driver.

But it is still in staging, so distros are unlikely to enable it
and without a atomisp2-pm driver the battery drains much to quickly
especially when suspended.

So I think we are getting there, but now is not the right moment
to drop this driver.

>> It seems there is no direct replacement for UNIVERSAL_DEV_PM_OPS()
>> without a behavior change.
> 
> Correct.
> 
> ...
> 
> Btw, have you seen a few cleanup patches against AtomISP v2 by me?

Yes I have a bit of a backlog, I have just processed them,
thank you for those patches.

Regards,

Hans







      reply	other threads:[~2024-04-10 11:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-03 10:55 Andy Shevchenko
2024-04-08 16:20 ` Hans de Goede
2024-04-09 17:15   ` Andy Shevchenko
2024-04-10 11:00     ` Hans de Goede [this message]

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=a510f246-1f3e-4674-9825-e1dee11c3ee9@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.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

all inboxes | Powered by JetHome®