[PATCH v3 0/2] pwm: rzg2l-gpt: Adaptation to waveform callbacks

Biju posted 2 patches 2 weeks, 2 days ago
drivers/pwm/pwm-rzg2l-gpt.c | 197 ++++++++++++++++++++++--------------
1 file changed, 121 insertions(+), 76 deletions(-)
[PATCH v3 0/2] pwm: rzg2l-gpt: Adaptation to waveform callbacks
Posted by Biju 2 weeks, 2 days ago
From: Biju Das <biju.das.jz@bp.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