From: Thierry Reding <thierry.reding@gmail.com>
To: Sean Young <sean@mess.org>
Cc: linux-media@vger.kernel.org, linux-pwm@vger.kernel.org,
"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Jonathan Corbet" <corbet@lwn.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 2/4] pwm: make it possible to apply pwm changes in atomic context
Date: Fri, 24 Nov 2023 14:36:51 +0100 [thread overview]
Message-ID: <ZWCm8_S7epYQwZiG@orome.fritz.box> (raw)
In-Reply-To: <ab49d3c11dd3fa432459cc8e11a77127f1a803dd.1700323916.git.sean@mess.org>
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
On Sat, Nov 18, 2023 at 04:16:18PM +0000, Sean Young wrote:
[...]
> diff --git a/include/linux/pwm.h b/include/linux/pwm.h
> index c4b066f7c5097..495aba06c64c3 100644
> --- a/include/linux/pwm.h
> +++ b/include/linux/pwm.h
> @@ -286,6 +286,7 @@ struct pwm_ops {
> * @npwm: number of PWMs controlled by this chip
> * @of_xlate: request a PWM device given a device tree PWM specifier
> * @of_pwm_n_cells: number of cells expected in the device tree PWM specifier
> + * @atomic: can the driver execute pwm_apply_cansleep in atomic context
I'm a little reluctant to suggest that we rename this to might_sleep as
well because it would require that we audit each and every driver to set
this properly, since by default all devices have so far been defaulting
to "might_sleep". But then again, I think that's something that we're
going to need to do at some point anyway.
In the interim, I think we could keep it like this and address this as a
follow-up.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-11-24 13:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-18 16:16 [PATCH v5 0/4] Improve pwm-ir-tx precision Sean Young
2023-11-18 16:16 ` [PATCH v5 1/4] pwm: rename pwm_apply_state() to pwm_apply_cansleep() Sean Young
2023-11-23 15:15 ` Lee Jones
2023-11-24 13:31 ` Thierry Reding
2023-11-29 9:08 ` Sean Young
2023-11-18 16:16 ` [PATCH v5 2/4] pwm: make it possible to apply pwm changes in atomic context Sean Young
2023-11-24 13:36 ` Thierry Reding [this message]
2023-11-29 9:07 ` Sean Young
2023-11-18 16:16 ` [PATCH v5 3/4] pwm: bcm2835: allow pwm driver to be used " Sean Young
2023-11-18 16:16 ` [PATCH v5 4/4] media: pwm-ir-tx: trigger edges from hrtimer interrupt context Sean Young
2023-11-22 8:51 ` [PATCH v5 0/4] Improve pwm-ir-tx precision Sean Young
2023-11-23 16:58 ` Uwe Kleine-König
2023-11-24 8:37 ` Sean Young
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=ZWCm8_S7epYQwZiG@orome.fritz.box \
--to=thierry.reding@gmail.com \
--cc=corbet@lwn.net \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=sean@mess.org \
--cc=u.kleine-koenig@pengutronix.de \
/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