Re: [PATCH] regulator: pwm: Fix machine constraints application

2020-09-02 Thread Mark Brown
On Wed, 2 Sep 2020 15:09:52 +0200, Vincent Whitchurch wrote: > If the zero duty cycle doesn't correspond to any voltage in the voltage > table, the PWM regulator returns an -EINVAL from get_voltage_sel() which > results in the core erroring out with a "failed to get the current > voltage" and endin

[PATCH] regulator: pwm: Fix machine constraints application

2020-09-02 Thread Vincent Whitchurch
If the zero duty cycle doesn't correspond to any voltage in the voltage table, the PWM regulator returns an -EINVAL from get_voltage_sel() which results in the core erroring out with a "failed to get the current voltage" and ending up not applying the machine constraints. Instead, return -ENOTRECO