1. 19 11月, 2020 1 次提交
  2. 13 11月, 2020 3 次提交
  3. 11 11月, 2020 2 次提交
  4. 03 11月, 2020 1 次提交
  5. 05 10月, 2020 3 次提交
  6. 02 10月, 2020 5 次提交
  7. 01 10月, 2020 1 次提交
  8. 30 9月, 2020 2 次提交
  9. 29 9月, 2020 4 次提交
  10. 24 9月, 2020 1 次提交
  11. 22 9月, 2020 4 次提交
  12. 18 9月, 2020 1 次提交
  13. 14 9月, 2020 5 次提交
  14. 10 9月, 2020 1 次提交
  15. 08 9月, 2020 3 次提交
  16. 04 9月, 2020 2 次提交
  17. 03 9月, 2020 1 次提交
    • V
      regulator: pwm: Fix machine constraints application · 59ae97a7
      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 -ENOTRECOVERABLE which makes the core set the voltage
      since it's at an unknown value.
      
      For example, with this device tree:
      
      	fooregulator {
      		compatible = "pwm-regulator";
      		pwms = <&foopwm 0 100000>;
      		regulator-min-microvolt = <2250000>;
      		regulator-max-microvolt = <2250000>;
      		regulator-name = "fooregulator";
      		regulator-always-on;
      		regulator-boot-on;
      		voltage-table = <2250000 30>;
      	};
      
      Before this patch:
      
        fooregulator: failed to get the current voltage(-22)
      
      After this patch:
      
        fooregulator: Setting 2250000-2250000uV
        fooregulator: 2250 mV
      Signed-off-by: NVincent Whitchurch <vincent.whitchurch@axis.com>
      Link: https://lore.kernel.org/r/20200902130952.24880-1-vincent.whitchurch@axis.comSigned-off-by: NMark Brown <broonie@kernel.org>
      59ae97a7