From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <david@lechnology.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
Justin Chen <justinpopo6@gmail.com>,
linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: adc: ti-ads7950: Set `can_sleep` flag for GPIO chip
Date: Sat, 18 Mar 2023 16:40:45 +0000 [thread overview]
Message-ID: <20230318164045.4a5f4d35@jic23-huawei> (raw)
In-Reply-To: <603a73ae-5c67-0837-ed26-9a98ad3fec74@lechnology.com>
On Mon, 13 Mar 2023 13:44:33 -0500
David Lechner <david@lechnology.com> wrote:
> On 3/12/23 4:09 PM, Lars-Peter Clausen wrote:
> > The ads7950 uses a mutex as well as SPI transfers in its GPIO callbacks.
> > This means these callbacks can sleep and the `can_sleep` flag should be
> > set.
> >
> > Having the flag set will make sure that warnings are generated when calling
> > any of the callbacks from a potentially non-sleeping context.
> >
> > Fixes: c97dce792dc8 ("iio: adc: ti-ads7950: add GPIO support")
> > Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> > ---
>
> Acked-by: David Lechner <david@lechnology.com>
>
>
Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks,
Jonathan
prev parent reply other threads:[~2023-03-18 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-12 21:09 [PATCH] iio: adc: ti-ads7950: Set `can_sleep` flag for GPIO chip Lars-Peter Clausen
2023-03-13 18:44 ` David Lechner
2023-03-18 16:40 ` Jonathan Cameron [this message]
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=20230318164045.4a5f4d35@jic23-huawei \
--to=jic23@kernel.org \
--cc=david@lechnology.com \
--cc=justinpopo6@gmail.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.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