[RFC PATCH v2 0/3] regulator: pwm-regulator: Fixes for disabled PWMs at boot

Martin Blumenstingl martin.blumenstingl at googlemail.com
Sat Jan 13 14:46:25 PST 2024


This is the second version of an attempt to fix booting mainline Linux
on Meson8b Odroid-C1.
This series is an update to an RFC patch that I sent some time ago [0]
and incorporates a lot of the feedback from that v1.

The main changes since v1 [0] are:
- new patch checking the voltage limits in pwm_regulator_get_voltage()
- updated calculation for disabled regulators in+
  pwm_regulator_get_voltage() utilizing above limit checking
- new pwm_regulator_init_boot_on() to preserve the output voltage when
  pwm_regulator_enable() later enables the PWM output without and
  preceding pwm_regulator_set_voltage().


[0] https://lore.kernel.org/linux-pwm/20231221211222.1380658-1-martin.blumenstingl@googlemail.com/


Martin Blumenstingl (3):
  regulator: pwm-regulator: Add validity checks in continuous
    .get_voltage
  regulator: pwm-regulator: Calculate the output voltage for disabled
    PWMs
  regulator: pwm-regulator: Manage boot-on with disabled PWM channels

 drivers/regulator/pwm-regulator.c | 43 +++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

-- 
2.43.0




More information about the linux-amlogic mailing list