All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Ulf Hansson" <ulf.hansson@oss.qualcomm.com>
Cc: "Beleswar Padhi" <b-padhi@ti.com>, <gregkh@linuxfoundation.org>,
	<rafael@kernel.org>, <johan@kernel.org>, <pavel@kernel.org>,
	<lenb@kernel.org>, <ulfh@kernel.org>, <sid9.karanam@gmail.com>,
	<afd@ti.com>, <nm@ti.com>, <vigneshr@ti.com>, <u-kumar1@ti.com>,
	<driver-core@lists.linux.dev>, <linux-kernel@vger.kernel.org>,
	<linux-pm@vger.kernel.org>
Subject: Re: [PATCH 2/2] driver core: platform: Allow drivers to skip PM domain power-on at probe
Date: Thu, 26 Nov 2026 17:03:48 +0100	[thread overview]
Message-ID: <DN59Q36YML41.3A4ZDCDQ69O9C@kernel.org> (raw)
In-Reply-To: <CAPx+jO9LhihGLHYSFR4Wd8GhOu_AC7tE49OJxrVEVAJyEDHhiw@mail.gmail.com>

On Wed Nov 25, 2026 at 4:28 PM CET, Ulf Hansson wrote:
> On Mon, Nov 23, 2026 at 9:43 AM Beleswar Padhi <b-padhi@ti.com> wrote:
>> diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
>> index 3bd0f1f0d8704..4d1679c4ea78e 100644
>> --- a/include/linux/platform_device.h
>> +++ b/include/linux/platform_device.h
>> @@ -292,6 +292,14 @@ struct platform_driver {
>>          * to setup and manage their own I/O address space.
>>          */
>>         bool driver_managed_dma;
>> +       /*
>> +        * By default the PM domain of a platform device is powered on before
>> +        * the driver's probe is invoked. Drivers that need to configure the
>> +        * device (e.g. hold it in reset) before its PM domain can be powered
>> +        * on must set this flag, and are then responsible for powering on the
>> +        * PM domain themselves.
>> +        */
>
> I would appreciate it if we could be more to the point. We should not
> need an entire book to explain what one variable is for. :-)

Hm...to me the comment seems reasonable. What do you suggest instead?

>> +       bool pm_domain_no_power_on;
>>  };

  parent reply	other threads:[~2026-11-26 16:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  8:42 [PATCH 0/2] Allow platform drivers to skip PM domain power-on at probe Beleswar Padhi
2026-11-23  8:42 ` [PATCH 1/2] PM: domains: Honour PD_FLAG_ATTACH_POWER_ON for genpd Beleswar Padhi
2026-11-25 12:42   ` Rafael J. Wysocki (Intel)
2026-11-23  8:42 ` [PATCH 2/2] driver core: platform: Allow drivers to skip PM domain power-on at probe Beleswar Padhi
2026-11-25 15:28   ` Ulf Hansson
2026-11-26  8:55     ` Beleswar Prasad Padhi
2026-11-26 16:03     ` Danilo Krummrich [this message]
2026-11-30 16:55       ` Ulf Hansson

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=DN59Q36YML41.3A4ZDCDQ69O9C@kernel.org \
    --to=dakr@kernel.org \
    --cc=afd@ti.com \
    --cc=b-padhi@ti.com \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan@kernel.org \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=pavel@kernel.org \
    --cc=rafael@kernel.org \
    --cc=sid9.karanam@gmail.com \
    --cc=u-kumar1@ti.com \
    --cc=ulf.hansson@oss.qualcomm.com \
    --cc=ulfh@kernel.org \
    --cc=vigneshr@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.