Re: [PATCH 1/2] Input: drv260x: Make vbat supply optional
From: Dmitry Torokhov
Date: Thu Aug 27 2026 - 06:55:58 EST
Hi Maurizio,
On Wed, Aug 26, 2026 at 03:22:10PM +0200, Maurizio Casciano wrote:
> The Lenovo Yoga Book YB1-X91L firmware instantiates two DRV2604
> ACPI devices, but does not describe a software-controllable vbat supply
> for either device. The generic regulator lookup therefore creates a
> dummy supply.
Yes, that is how most of the drivers handle supplies on ACPI systems.
>
> Use the optional regulator lookup and skip regulator operations when no
> supply is described. Systems which provide vbat retain the existing
> enable, managed-disable, suspend, resume, and error-unwind behavior.
regulator_get_optional() should only be used in cases where supply can
be left unconnected in normal use. This is different from this case
where supply *is connected* but it is managed by ACPI/board firmware.
IOW this patch is not needed.
Thanks.
--
Dmitry