[PATCH] input: gpio-keys: initialize the input value with the current gpioval
Sascha Hauer
s.hauer at pengutronix.de
Mon Aug 3 22:44:45 PDT 2026
On Thu, 02 Jul 2026 10:17:19 +0200, Sascha Hauer wrote:
> This is required for deep-probe systems which probe the "gpio-keys"
> device on demand. In such case the input value is not yet accessible
> once the probe finished because the first gpio reads happen
> asynchronously to the probe function. However, board code queries the
> input device value directly after the of.*ensure.*probed().
>
> Therefore provide a sane default by reading the gpio value during probe
> and init the input device value.
>
> [...]
Applied, thanks!
[1/1] input: gpio-keys: initialize the input value with the current gpioval
https://git.pengutronix.de/cgit/barebox/commit/?id=7992d842898d (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list