Re: [PATCH] leds: lp55xx: roll back engine sysfs group on failure
From: Pengpeng Hou
Date: Wed Dec 02 2026 - 23:03:59 EST
Hi Lee,
These particular groups are created with sysfs_create_group() on the
I2C client, not as driver-core groups or managed resources. The
failed-probe path calls lp55xx_deinit_device(), not lp55xx_remove().
So driver unbind cleanup and failed-probe cleanup aren't the same
here.
I agree that the extra flag isn't justified. If creation of the
device-specific group fails after the engine group step, run_engine
and firmware_cb already tell us whether that step ran successfully.
The engine group is unnamed; removing absent attributes doesn't
require a separate tracking flag. I'll drop the flag-based version.
Thanks,
Pengpeng