All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] gpio: pca953x: Add interrupt mask support for pca953x chips
@ 2022-10-26 11:17 Levente Révész
  2022-10-26 11:18 ` [PATCH v2 1/6] gpio: pca953x: Convert PCA_TYPE from bits to number Levente Révész
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Levente Révész @ 2022-10-26 11:17 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Andy Shevchenko,
	Martyn Welch, Haibo Chen, Puyou Lu, Justin Chen, Andrey Gusakov,
	Peter Robinson <pbrobinson, Nate Drude
  Cc: linux-gpio

Hello,

Some chips in the pca953x family have an interrupt mask register in
addition to the standard 4 registers:

    0: INPUT
    1: OUTPUT
    2: POLARITY
    3: CONFIGURATION
    4: INTERRUPT MASK

Chips with this register:

    - pca9505
    - pca9506
    - pca9698

The interrupt mask register defaults to all interrupts disabled, so
interrupts are unusable unless the driver sets this register.

Interrupt masking is already implemented for pcal chips. That
implementation could be extended to support this register as well.

This patch series adds support for the interrupt mask register in
mentioned pca chips.

Kind regards,
Levente

---
Changes in v2:

    1. Implemented Andy Shevchenko's suggestions.
    2. Added pca953x_is_pcal_type(), pca953x_has_interrupt() and
       pca953x_has_int_mask_reg() functions.
    3. Included Martyn Welch's suggestion.
    4. Added interrupt support for pca9698 in a new patch.

Levente Révész (6):
  gpio: pca953x: Convert PCA_TYPE from bits to number
  gpio: pca953x: Add PCAL953X as a separate chip type
  gpio: pca953x: Add helper function to check if chip has interrupts
  gpio: pca953x: Generalize interrupt mask register handling
  gpio: pca953x: Add interrupt mask support for chips with the standard
    register set
  gpio: pca953x: Enable interrupt for pca9698

 drivers/gpio/gpio-pca953x.c | 212 ++++++++++++++++++++++++------------
 1 file changed, 140 insertions(+), 72 deletions(-)

-- 
2.37.3


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

end of thread, other threads:[~2022-11-16 13:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 11:17 [PATCH v2 0/6] gpio: pca953x: Add interrupt mask support for pca953x chips Levente Révész
2022-10-26 11:18 ` [PATCH v2 1/6] gpio: pca953x: Convert PCA_TYPE from bits to number Levente Révész
2022-10-26 17:18   ` Andy Shevchenko
2022-10-26 17:21     ` Andy Shevchenko
2022-10-26 11:21 ` [PATCH v2 2/6] gpio: pca953x: Add PCAL953X as a separate chip type Levente Révész
2022-10-26 17:25   ` Andy Shevchenko
2022-10-26 17:28   ` Andy Shevchenko
2022-10-27 13:36     ` Levente Révész
2022-10-27 13:54       ` Martyn Welch
2022-10-27 17:03         ` Andy Shevchenko
2022-10-28 18:57           ` Levente Révész
2022-11-16 13:51             ` Levente Révész
2022-10-26 11:22 ` [PATCH v2 3/6] gpio: pca953x: Add helper function to check if chip has interrupts Levente Révész
2022-10-26 11:23 ` [PATCH v2 4/6] gpio: pca953x: Generalize interrupt mask register handling Levente Révész
2022-10-26 17:31   ` Andy Shevchenko
2022-10-26 11:25 ` [PATCH v2 5/6] gpio: pca953x: Add interrupt mask support for chips with the standard register set Levente Révész
2022-10-26 16:49   ` kernel test robot
2022-10-26 17:32   ` Andy Shevchenko
2022-10-26 22:13   ` kernel test robot
2022-10-26 22:13   ` kernel test robot
2022-10-26 11:26 ` [PATCH v2 6/6] gpio: pca953x: Enable interrupt for pca9698 Levente Révész

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.