[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250915163637.3572-1-biju.das.jz@bp.renesas.com>
Date: Mon, 15 Sep 2025 17:36:29 +0100
From: Biju <biju.das.au@...il.com>
To: Uwe Kleine-König <ukleinek@...nel.org>
Cc: Biju Das <biju.das.jz@...renesas.com>,
linux-pwm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@...renesas.com>,
Biju Das <biju.das.au@...il.com>,
linux-renesas-soc@...r.kernel.org
Subject: [PATCH v3 0/2] pwm: rzg2l-gpt: Adaptation to waveform callbacks
From: Biju Das <biju.das.jz@...renesas.com>
Convert the rzg2l-gpt driver to use the new callbacks for hardware
programming. The first patch fixes an issue where cache value is
uninitialized during disable().
v2->v3:
* Prepared as a series.
* Created separate patch for fix for reinitialization of the cache
variable in disable().
* .round_waveform_tohw() do not fail if the requested period is too small
but use the smallest possible value.
* Added lock in rzg2l_gpt_read_waveform().
* wfhw is reinitialized in rzg2l_gpt_read_waveform if channel is disabled
* Optimizated rzg2l_gpt_is_ch_enabled() to avoid redundant reads to
RZG2L_GTCR(ch).
* .write_waveform() returns error incase of invalid period for second
channel.
Biju Das (2):
pwm: rzg2l-gpt: Reinitialize cache value
pwm: rzg2l-gpt: Implementation of the waveform callbacks
drivers/pwm/pwm-rzg2l-gpt.c | 197 ++++++++++++++++++++++--------------
1 file changed, 121 insertions(+), 76 deletions(-)
base-commit: 590b221ed4256fd6c34d3dea77aa5bd6e741bbc1
--
2.43.0
Powered by blists - more mailing lists