linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Mask read inputs for get_multiple callbacks
@ 2018-10-22 12:08 William Breathitt Gray
  2018-10-22 12:08 ` [PATCH 1/6] gpio: 104-dio-48e: Mask read inputs for get_multiple William Breathitt Gray
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: William Breathitt Gray @ 2018-10-22 12:08 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux, linux-gpio, linux-kernel, William Breathitt Gray

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(-)

-- 
2.19.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-31  9:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22 12:08 [PATCH 0/6] Mask read inputs for get_multiple callbacks William Breathitt Gray
2018-10-22 12:08 ` [PATCH 1/6] gpio: 104-dio-48e: Mask read inputs for get_multiple William Breathitt Gray
2018-10-22 12:09 ` [PATCH 2/6] gpio: 104-idi-48e: Mask the " William Breathitt Gray
2018-10-22 12:09 ` [PATCH 3/6] gpio: gpio-mm: Mask " William Breathitt Gray
2018-10-22 12:09 ` [PATCH 4/6] gpio: ws16c48: " William Breathitt Gray
2018-10-22 12:10 ` [PATCH 5/6] gpio: pci-idio-16: " William Breathitt Gray
2018-10-22 12:10 ` [PATCH 6/6] gpio: pcie-idio-24: " William Breathitt Gray
2018-10-31  9:00 ` [PATCH 0/6] Mask read inputs for get_multiple callbacks Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).