diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-11-18 13:45:19 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-11-20 13:36:53 +0100 |
| commit | 31678e68f82636a27fbad58ae40054557da4fd7e (patch) | |
| tree | bdc5a6369858fb11e8c5e30ce62faf5f61e1f534 /kernel/debug/debug_core.h | |
| parent | 9df982f1f283d2f2a9aad764dff92e36ed764e16 (diff) | |
gpio: shared-proxy: propagate -ENOTSUPP from .set_config()
The gpio-shared-proxy driver does not propagate -ENOTSUPP returned from
the set_config() callback by real GPIO drivers controlling the shared
GPIOs. This can lead to a situation where for an open-drain, shared GPIO,
we take the emulation path on request - ending up setting the direction
to input for the initial user - and then fail to allow simulated output
direction for the second user if the driver in question does not
support using "real" open-drain.
Propagate all errors from the underlying .set_config() call in
gpio_shared_proxy_set_config().
Reported-by: Igor Velkov <iav@iav.lv>
Closes: https://lore.kernel.org/all/20261115-hc4-gpio-shared-od-1@iav.lv/
Fixes: e992d54c6f97 ("gpio: shared-proxy: implement the shared GPIO proxy driver")
Tested-by: Igor Velkov <iav@iav.lv>
Link: https://patch.msgid.link/20261118-gpio-shared-proxy-enotsupp-v1-1-39d3fe4d3aa7@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'kernel/debug/debug_core.h')
0 files changed, 0 insertions, 0 deletions
