From: Sean Young <sean@mess.org>
To: Thierry Reding <thierry.reding@gmail.com>
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: Wed, 29 Nov 2023 09:07:37 +0000 [thread overview]
Message-ID: <ZWb_WR1T9HiQuiBs@gofer.mess.org> (raw)
In-Reply-To: <ZWCm8_S7epYQwZiG@orome.fritz.box>
On Fri, Nov 24, 2023 at 02:36:51PM +0100, Thierry Reding wrote:
> 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.
Yes, I agree that the name atomic is not ideal. However, calling it
might_sleep means we have to touch every driver. That's not impossible,
but not ideal either.
For now, I'll leave it as is.
Sean
next prev parent reply other threads:[~2023-11-29 9:07 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
2023-11-29 9:07 ` Sean Young [this message]
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=ZWb_WR1T9HiQuiBs@gofer.mess.org \
--to=sean@mess.org \
--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=thierry.reding@gmail.com \
--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