mbox series

[v4,0/5] gpio: mvebu: pwm fixes and improvements

Message ID cover.1610882271.git.baruch@tkos.co.il
Headers show
Series gpio: mvebu: pwm fixes and improvements | expand


Baruch Siach Jan. 17, 2021, 1:17 p.m. UTC
This series adds a few related fixes to the pwm .apply and .get_state 

The first patch was originally part of the series adding Armada 8K/7K pwm 
support. I split it out to a separate series following review comments from 
Uwe Kleine-König who spotted a few more issues. There is no dependency between 
this and the Armada 8K/7K series.


  * Take advantage of zero value being treated as 2^32 by hardware. Rewrite 
    patch 5/5 (Uwe).


  * Improve patch 3/5 description (Uwe)

  * Add more Reviewed-by tags from Uwe


Address Uwe Kleine-König comments.

  * Improve patch 1/5 summary line

  * Add more information to patch 1/5 description

  * Add more information to patch 2/5 description

  * Don't round period/duty_cycle up in .apply (patch 3/5)

  * Expand the comment in path 5/5 based on RMK's analysis of hardware 

  * Add Uwe's Reviewed-by tags

Baruch Siach (5):
  gpio: mvebu: fix pwm .get_state period calculation
  gpio: mvebu: improve pwm period calculation accuracy
  gpio: mvebu: make pwm .get_state closer to idempotent
  gpio: mvebu: don't limit pwm period/duty_cycle to UINT_MAX
  gpio: mvebu: improve handling of pwm zero on/off values

 drivers/gpio/gpio-mvebu.c | 51 +++++++++++++++++++--------------------
 1 file changed, 25 insertions(+), 26 deletions(-)