All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Levente Révész" <levente.revesz@eilabs.com>,
	"Martyn Welch" <martyn.welch@collabora.com>,
	"Nate Drude" <nate.d@variscite.com>,
	"Haibo Chen" <haibo.chen@nxp.com>,
	"Puyou Lu" <puyou.lu@gmail.com>,
	"Justin Chen" <justinpopo6@gmail.com>,
	"Andrey Gusakov" <andrey.gusakov@cogentembedded.com>,
	"Peter Robinson" <pbrobinson@gmail.com>,
	"Bartosz Golaszewski" <brgl@bgdev.pl>,
	linux-gpio@vger.kernel.org
Subject: Re: [PATCH 0/2] gpio: pca953x: Add interrupt mask support for pca953x chips
Date: Mon, 17 Oct 2022 20:31:04 +0300	[thread overview]
Message-ID: <Y02RWJVvybzvNbaA@smile.fi.intel.com> (raw)
In-Reply-To: <CACRpkdbVCw=b-Hot83UpqmzaBSYGT0VY0g3QcgHNaPke4=grgA@mail.gmail.com>

On Mon, Oct 17, 2022 at 12:02:16PM +0200, Linus Walleij wrote:
> On Mon, Oct 10, 2022 at 3:23 PM Levente Révész
> <levente.revesz@eilabs.com> wrote:
> 
> > 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.
> 
> Added some PCA953x users to the To-line, lots of people use
> this driver so please review!

Thank you for Cc'ing me!

At first glance I think this needs two prerequisite patches:

1) convert _TYPE from bits to plain numbers, so we will have room
   for up to 16 types;

2) Introducing PCAL953X_TYPE.

After this is done, the current series will be neater.

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2022-10-17 17:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-10 13:20 [PATCH 0/2] gpio: pca953x: Add interrupt mask support for pca953x chips Levente Révész
2022-10-10 13:20 ` [PATCH 1/2] gpio: pca953x: Generalize interrupt mask register handling Levente Révész
2022-10-24 16:58   ` Martyn Welch
2022-10-10 13:20 ` [PATCH 2/2] gpio: pca953x: Add interrupt mask support for chips with the standard register set Levente Révész
2022-10-17 10:02 ` [PATCH 0/2] gpio: pca953x: Add interrupt mask support for pca953x chips Linus Walleij
2022-10-17 17:31   ` Andy Shevchenko [this message]
2022-10-19 10:15     ` Révész, Levente
2022-10-19 11:28       ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y02RWJVvybzvNbaA@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=andrey.gusakov@cogentembedded.com \
    --cc=brgl@bgdev.pl \
    --cc=haibo.chen@nxp.com \
    --cc=justinpopo6@gmail.com \
    --cc=levente.revesz@eilabs.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=martyn.welch@collabora.com \
    --cc=nate.d@variscite.com \
    --cc=pbrobinson@gmail.com \
    --cc=puyou.lu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.