From: Sean Young <sean@mess.org>
To: linux-media@vger.kernel.org, linux-pwm@vger.kernel.org,
"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Sean Young <sean@mess.org>
Subject: [PATCH v10 0/6] Improve pwm-ir-tx precision
Date: Tue, 19 Dec 2023 16:30:23 +0000 [thread overview]
Message-ID: <cover.1703003288.git.sean@mess.org> (raw)
The pwm-ir-tx driver has to turn the pwm signal on and off, and suffers
from delays as this is done in process context. Make this work in atomic
context.
changes:
v10:
- Uwe Kleine-König review comments/fixes
v9:
- Uwe Kleine-König review comments/fixes
v8:
- Uwe Kleine-König review comments
- Minor cleanups
v7:
- Thierry Reding review comments
- Minor cleanups
- rebase
v6:
- Rename pwm_apply_cansleep() to pwm_apply_might_sleep()
- rebase
v5:
- Use dev_err_probe() as Uwe suggested
- rebase
v4:
- Split out the pwm_apply_state() rename into seperate commit
- Atomic pwm function is called pwm_apply_atomic() and sleeping
counterpart pwm_apply_cansleep()
- Fix commit messages
v3:
- Renamed pwm_apply_state() to pwm_apply_cansleep()
- Moved pwm atomic to struct pwm_chip
- Fixed pwm docs
- Other minor code review comments
v2:
- Simplified the pwm ir tx based on Ivaylo Dimitrov suggestions
- Renamed pwm_can_sleep() to pwm_is_atomic
- Fix sleeping issue in pwm-bcm2835 (clk_get_rate() can sleep)
- use non_block_start() in pwm to check atomic-ness
Sean Young (6):
pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()
pwm: Replace ENOTSUPP with EOPNOTSUPP
pwm: renesas: Remove unused include
pwm: Make it possible to apply PWM changes in atomic context
pwm: bcm2835: Allow PWM driver to be used in atomic context
media: pwm-ir-tx: Trigger edges from hrtimer interrupt context
Documentation/driver-api/pwm.rst | 17 +++-
MAINTAINERS | 2 +-
.../gpu/drm/i915/display/intel_backlight.c | 6 +-
drivers/gpu/drm/solomon/ssd130x.c | 2 +-
drivers/hwmon/pwm-fan.c | 8 +-
drivers/input/misc/da7280.c | 4 +-
drivers/input/misc/pwm-beeper.c | 4 +-
drivers/input/misc/pwm-vibra.c | 8 +-
drivers/leds/leds-pwm.c | 2 +-
drivers/leds/rgb/leds-pwm-multicolor.c | 4 +-
drivers/media/rc/pwm-ir-tx.c | 87 +++++++++++++++++--
drivers/platform/x86/lenovo-yogabook.c | 2 +-
drivers/pwm/core.c | 74 ++++++++++++----
drivers/pwm/pwm-bcm2835.c | 34 ++++++--
drivers/pwm/pwm-renesas-tpu.c | 1 -
drivers/pwm/pwm-twl-led.c | 2 +-
drivers/pwm/pwm-vt8500.c | 2 +-
drivers/pwm/sysfs.c | 10 +--
drivers/regulator/pwm-regulator.c | 4 +-
drivers/video/backlight/lm3630a_bl.c | 2 +-
drivers/video/backlight/lp855x_bl.c | 2 +-
drivers/video/backlight/pwm_bl.c | 12 +--
drivers/video/fbdev/ssd1307fb.c | 2 +-
include/linux/pwm.h | 57 ++++++++----
24 files changed, 255 insertions(+), 93 deletions(-)
--
2.43.0
next reply other threads:[~2023-12-19 16:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-19 16:30 Sean Young [this message]
2023-12-19 16:30 ` [PATCH v10 1/6] pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() Sean Young
2023-12-19 16:30 ` [PATCH v10 2/6] pwm: Replace ENOTSUPP with EOPNOTSUPP Sean Young
2023-12-19 17:01 ` Uwe Kleine-König
2023-12-19 16:30 ` [PATCH v10 3/6] pwm: renesas: Remove unused include Sean Young
2023-12-19 16:30 ` [PATCH v10 4/6] pwm: Make it possible to apply PWM changes in atomic context Sean Young
2023-12-20 10:31 ` Uwe Kleine-König
2023-12-19 16:30 ` [PATCH v10 5/6] pwm: bcm2835: Allow PWM driver to be used " Sean Young
2023-12-19 16:58 ` Uwe Kleine-König
2023-12-19 16:30 ` [PATCH v10 6/6] media: pwm-ir-tx: Trigger edges from hrtimer interrupt context Sean Young
2023-12-20 16:06 ` (subset) [PATCH v10 0/6] Improve pwm-ir-tx precision Thierry Reding
2023-12-20 16:09 ` Thierry Reding
2023-12-21 9:09 ` 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=cover.1703003288.git.sean@mess.org \
--to=sean@mess.org \
--cc=ivo.g.dimitrov.75@gmail.com \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).