Re: [PATCH 2/2] driver core: platform: Allow drivers to skip PM domain power-on at probe

From: Danilo Krummrich

Date: Thu Nov 26 2026 - 11:03:58 EST


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@xxxxxx> 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;
>> };