From: Lee Jones <lee@kernel.org>
To: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Cc: linux-arm-msm@vger.kernel.org, Pavel Machek <pavel@kernel.org>,
David Collins <david.collins@oss.qualcomm.com>,
Subbaraman Narayanamurthy
<subbaraman.narayanamurthy@oss.qualcomm.com>,
Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] leds: rgb: leds-qcom-lpg: Add PWM frequency mode support
Date: Wed, 9 Sep 2026 17:19:54 +0100 [thread overview]
Message-ID: <20260909161954.GH2133376@google.com> (raw)
In-Reply-To: <dd810d52-ab6e-4e8b-ae97-32a140490cc1@oss.qualcomm.com>
On Tue, 08 Sep 2026, Fenglin Wu wrote:
>
>
> On 9/3/2026 11:30 PM, Lee Jones wrote:
> >> Certain PWM channels on a PMIC (e.g. PM8350C PWM4) support a Frequency
> >> Mode (FM) that can generate waveforms with more frequency points than
> >> the standard LPG PWM mode. The trade-off is that the duty cycle can
> >> only be fixed at 50%. Add the FM support. When the PWM channel is
> >> requested to set a duty cycle to exactly 50%, use FM mode by default
> >> as it provides a finer-grained frequency resolution in that case.
> >>
> >> Also, guard mutex lock at the top of lpg_pwm_get_state(), to make the
> >> register read atomic against the register write in lpg_pwm_apply().
>
> > Would it be better to split this submission into two separate patches? One to
> > address the locking in 'lpg_pwm_get_state()' and another to introduce the new
> > Frequency Mode support.
> >
>
> Sure, thanks. I’ll split them out and submit them as a series.
>
> Do you think if I need to combine below change in the same series, even
> though they are not functionally dependent?
Your call. I don't mind either way.
> https://lore.kernel.org/linux-leds/20260716-lpg-rgb-color-balance-fix-v6-1-b49d51528f61@oss.qualcomm.com/
--
Lee Jones
prev parent reply other threads:[~2026-09-09 16:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 2:06 Fenglin Wu
2026-09-03 15:30 ` Lee Jones
2026-09-08 2:27 ` Fenglin Wu
2026-09-09 16:19 ` Lee Jones [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=20260909161954.GH2133376@google.com \
--to=lee@kernel.org \
--cc=david.collins@oss.qualcomm.com \
--cc=fenglin.wu@oss.qualcomm.com \
--cc=kamal.wadhwa@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=subbaraman.narayanamurthy@oss.qualcomm.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®