Re: [PATCH] HID: i2c-hid: goodix: Disable VDD on VDDIO enable failure

From: Doug Anderson

Date: Fri Jul 31 2026 - 13:40:14 EST


Hi,

On Wed, Jul 22, 2026 at 2:37 AM Chao Huang <958028483@xxxxxx> wrote:
>
> From: Chao Huang <huangchao@xxxxxxxxxx>
>
> If enabling VDDIO fails after VDD has been enabled, the power-up
> path returns without disabling VDD. This leaves the regulator enabled
> and its enable count unbalanced.
>
> Disable VDD before returning the VDDIO error.
>
> Fixes: eb16f59e8e58 ("HID: i2c-hid: goodix: Add mainboard-vddio-supply")
> Signed-off-by: Chao Huang <huangchao@xxxxxxxxxx>
> ---
> drivers/hid/i2c-hid/i2c-hid-of-goodix.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

Thanks for the fix.

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>