Re: [PATCH v8 4/4] leds: aw2013: Add AW2027 support

From: Paul Sajna

Date: Thu Dec 03 2026 - 14:09:01 EST


On 12/2/26 9:50 AM, Lee Jones wrote:

Why move regulator_bulk_disable() after aw2013_probe_dt()? If a default
LED trigger activates during devm_led_classdev_register_ext() inside
aw2013_probe_dt(), aw2013_chip_enable() will enable the regulators a
second time and then disabling them here will leave the regulator
enable count out of sync with 'chip->enabled' or cut power to an active
LED when the last reference is dropped.

I needed the regulators to be active during the probe call for the register write to set the max current.