Skip to content

gpio: cdev: EOPNOTSUPP when HTE unavailable

Iván Ezequiel Rodriguez linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1gpio: cdev: return EOPNOTSUPP when HTE is unavailabledrivers/gpio/gpiolib-cdev.c+2 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/1] gpio: cdev: EOPNOTSUPP when HTE unavailable

Hi,

When CONFIG_HTE is enabled but hte_ts_get() returns -ENODEV (no HTE provider for the line), gpiolib-cdev currently propagates -ENODEV to userspace.

Map that to -EOPNOTSUPP so it matches the errno already returned when CONFIG_HTE is disabled or GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE is otherwise unsupported.

Base: v7.3-rc1

Tested: built with CONFIG_GPIOLIB=y, CONFIG_GPIO_CDEV=y, CONFIG_HTE=y. QEMU smoke for the HTE ioctl path was skipped (no gpiochip0 in this guest); the change is a one-line errno remap on the existing error path.

Thanks,
Iván

Iván Ezequiel Rodriguez (1):
gpio: cdev: return EOPNOTSUPP when HTE is unavailable

 drivers/gpio/gpiolib-cdev.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.43.0