From: Sean Nyekjaer <sean@geanix.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
linux-iio <linux-iio@vger.kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Nuno Sá" <Nuno.Sa@analog.com>,
"Rob Herring" <robh+dt@kernel.org>,
devicetree <devicetree@vger.kernel.org>
Subject: Re: [PATCH v4 4/6] iio: accel: fxls8962af: add interrupt support
Date: Mon, 3 May 2021 13:19:06 +0200 [thread overview]
Message-ID: <388cae14-e138-554c-5def-30cc6d16af86@geanix.com> (raw)
In-Reply-To: <CAHp75Vf7-5EOpsP8u4rfcjceoKFwQH+U90+JazsLJvmARXmEBQ@mail.gmail.com>
On 30/04/2021 11.02, Andy Shevchenko wrote:
>> +#include <linux/of_irq.h>
> See below.
>
> ...
>
>> +static irqreturn_t fxls8962af_interrupt(int irq, void *p)
>> +{
>> + struct iio_dev *indio_dev = p;
>> + struct fxls8962af_data *data = iio_priv(indio_dev);
>> + unsigned int reg;
>> + int ret;
>> +
>> + ret = regmap_read(data->regmap, FXLS8962AF_INT_STATUS, ®);
>> + if (ret < 0)
>> + return IRQ_NONE;
>> +
>> + return IRQ_NONE;
> And how is it handled?
>
Interrupt from the accelerometer is not enabled in this patch.
So there is nothing to handle :)
Interrupts are enabled and handled in:
"[PATCH v4 5/6] iio: accel: fxls8962af: add hw buffered sampling"
/Sean
next prev parent reply other threads:[~2021-05-03 11:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 12:28 [PATCH v4 1/6] iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers Sean Nyekjaer
2021-04-29 12:28 ` [PATCH v4 2/6] dt-bindings: iio: accel: fxls8962af: add bindings Sean Nyekjaer
2021-04-29 15:25 ` Rob Herring
2021-04-29 12:28 ` [PATCH v4 3/6] iio: accel: fxls8962af: add set/get of samplerate Sean Nyekjaer
2021-04-29 12:28 ` [PATCH v4 4/6] iio: accel: fxls8962af: add interrupt support Sean Nyekjaer
2021-04-30 9:02 ` Andy Shevchenko
2021-05-03 11:19 ` Sean Nyekjaer [this message]
2021-04-29 12:28 ` [PATCH v4 5/6] iio: accel: fxls8962af: add hw buffered sampling Sean Nyekjaer
2021-04-30 9:10 ` Andy Shevchenko
2021-04-29 12:28 ` [PATCH v4 6/6] iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads Sean Nyekjaer
2021-04-30 9:14 ` Andy Shevchenko
2021-04-30 9:25 ` [PATCH v4 1/6] iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers Tomas Melin
2021-05-02 17:46 ` Jonathan Cameron
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=388cae14-e138-554c-5def-30cc6d16af86@geanix.com \
--to=sean@geanix.com \
--cc=Nuno.Sa@analog.com \
--cc=andy.shevchenko@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=robh+dt@kernel.org \
/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 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).