From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: linux-pwm@vger.kernel.org
Cc: David Lechner <dlechner@baylibre.com>,
Kent Gibson <warthog618@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH v7 0/4] pwm: userspace support
Date: Wed, 30 Apr 2025 13:55:57 +0200 [thread overview]
Message-ID: <cover.1746010245.git.u.kleine-koenig@baylibre.com> (raw)
Hello,
after the feedback I got from David on v7[1] and some internal
discussion here comes a new version of the patch.
Apart from rebasing to a newer base (current pwm/for-next) the only
change in the relevant patch #4 about return values from the
PWM_IOCTL_SETEXACTWF ioctl. Instead of returning 1 if the request failed
to apply exactly, return -EDOM.
The earlier patches in this series prepare that and implement a
similar change in pwm_set_waveform_might_sleep() to simplify also other
users of this function. Patch #3 is only a documentation update that is
not strictly related to the userspace chardev, but reflects the changes
in patches #1 and #2.
Feedback welcome.
Best regards
Uwe
[1] https://lore.kernel.org/linux-pwm/20250416094316.2494767-2-u.kleine-koenig@baylibre.com
Uwe Kleine-König (4):
pwm: Let pwm_set_waveform_might_sleep() fail for exact but impossible
requests
pwm: Let pwm_set_waveform_might_sleep() return 0 instead of 1 after
rounding up
pwm: Formally describe the procedure used to pick a hardware waveform
setting
pwm: Add support for pwmchip devices for faster and easier userspace
access
drivers/pwm/core.c | 369 ++++++++++++++++++++++++++++++++++++---
include/linux/pwm.h | 3 +
include/uapi/linux/pwm.h | 53 ++++++
3 files changed, 404 insertions(+), 21 deletions(-)
create mode 100644 include/uapi/linux/pwm.h
base-commit: e373991eb9ff0a9617634017c7f19fd36ec4f208
--
2.47.2
next reply other threads:[~2025-04-30 11:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 11:55 Uwe Kleine-König [this message]
2025-04-30 11:55 ` [PATCH v7 1/4] pwm: Let pwm_set_waveform_might_sleep() fail for exact but impossible requests Uwe Kleine-König
2025-04-30 11:55 ` [PATCH v7 2/4] pwm: Let pwm_set_waveform_might_sleep() return 0 instead of 1 after rounding up Uwe Kleine-König
2025-04-30 11:56 ` [PATCH v7 3/4] pwm: Formally describe the procedure used to pick a hardware waveform setting Uwe Kleine-König
2025-04-30 11:56 ` [PATCH v7 4/4] pwm: Add support for pwmchip devices for faster and easier userspace access Uwe Kleine-König
2025-04-30 12:04 ` [PATCH v7 0/4] pwm: userspace support Uwe Kleine-König
2025-05-07 10:04 ` Uwe Kleine-König
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.1746010245.git.u.kleine-koenig@baylibre.com \
--to=u.kleine-koenig@baylibre.com \
--cc=dlechner@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=warthog618@gmail.com \
/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
all inboxes | Powered by JetHome®