Re: [PATCH] power: supply: generic-adc-battery: Propagate charged GPIO errors
From: Sebastian Reichel
Date: Sat Oct 17 2026 - 17:57:01 EST
On Fri, 09 Oct 2026 18:24:29 +0700, phucduc.bui@xxxxxxxxx wrote:
> devm_gpiod_get_optional() may return an error pointer such as
> -EPROBE_DEFER, but gab_probe() only checks for NULL. The error
> pointer is then passed to gpiod_to_irq() and the original error,
> including -EPROBE_DEFER, is lost.
>
> Check the return value and propagate errors from the charged GPIO lookup.
>
> [...]
Applied, thanks!
[1/1] power: supply: generic-adc-battery: Propagate charged GPIO errors
commit: 36b0abe904ac9cbdce6161d9c7c0bcac963bb3fe
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>