Skip to content

Mask read inputs for get_multiple callbacks

William Breathitt Gray linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6gpio: 104-dio-48e: Mask read inputs for get_multipledrivers/gpio/gpio-104-dio-48e.c+1 -10 replies
2/6gpio: 104-idi-48e: Mask the read inputs for get_multipledrivers/gpio/gpio-104-idi-48.c+1 -10 replies
3/6gpio: gpio-mm: Mask read inputs for get_multipledrivers/gpio/gpio-gpio-mm.c+1 -10 replies
4/6gpio: ws16c48: Mask read inputs for get_multipledrivers/gpio/gpio-ws16c48.c+1 -10 replies
5/6gpio: pci-idio-16: Mask read inputs for get_multipledrivers/gpio/gpio-pci-idio-16.c+1 -10 replies
6/6gpio: pcie-idio-24: Mask read inputs for get_multipledrivers/gpio/gpio-pcie-idio-24.c+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Mask read inputs for get_multiple callbacks

The implementation for several drivers' get_multiple callbacks return additional input states that were not requested by the mask passed in. Although the current caller in the kernel does not care, it would be prudent to ensure the behavior of the get_multiple implementations is to return exactly the requested input states and not more. This patchset ensures such behavior by applying a final mask on the read inputs before setting the bits array.

William Breathitt Gray (6):
gpio: 104-dio-48e: Mask read inputs for get_multiple
gpio: 104-idi-48e: Mask the read inputs for get_multiple
gpio: gpio-mm: Mask read inputs for get_multiple
gpio: ws16c48: Mask read inputs for get_multiple
gpio: pci-idio-16: Mask read inputs for get_multiple
gpio: pcie-idio-24: Mask read inputs for get_multiple

 drivers/gpio/gpio-104-dio-48e.c  | 2 +-
 drivers/gpio/gpio-104-idi-48.c   | 2 +-
 drivers/gpio/gpio-gpio-mm.c      | 2 +-
 drivers/gpio/gpio-pci-idio-16.c  | 2 +-
 drivers/gpio/gpio-pcie-idio-24.c | 2 +-
 drivers/gpio/gpio-ws16c48.c      | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.19.1