linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] pwm: Ensure .polarity is set in .get_state()
@ 2023-02-28 13:55 Uwe Kleine-König
  2023-02-28 13:55 ` [PATCH 1/4] pwm: hibvt: Explicitly set .polarity " Uwe Kleine-König
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Uwe Kleine-König @ 2023-02-28 13:55 UTC (permalink / raw)
  To: Thierry Reding, Munehisa Kamata, Jiancheng Xue, yuanjian,
	Rob Herring, Benson Leung, Orson Zhai, Baolin Wang,
	Chunyan Zhang
  Cc: linux-pwm, linux-kernel, Guenter Roeck, chrome-platform, kernel

Hello,

in the context of the discussion with Munehisa Kamata about the meson driver
not setting .polarity in .get_state() I checked the other drivers for the same
issue. The identified drivers are fixed here. For three of them
zero-initializing *state would be good enough, still I think setting the
polarity explicitly is a good idea. For the hibvt driver (that supports
both polarities) the change is a real improvement.

Note I didn't touch the meson driver here that requires some non-trivial
updates that I don't want to tackle without hardware to test.

Best regards
Uwe

Uwe Kleine-König (4):
  pwm: hibvt: Explicitly set .polarity in .get_state()
  pwm: cros-ec: Explicitly set .polarity in .get_state()
  pwm: iqs620a: Explicitly set .polarity in .get_state()
  pwm: sprd: Explicitly set .polarity in .get_state()

 drivers/pwm/pwm-cros-ec.c | 1 +
 drivers/pwm/pwm-hibvt.c   | 1 +
 drivers/pwm/pwm-iqs620a.c | 1 +
 drivers/pwm/pwm-sprd.c    | 1 +
 4 files changed, 4 insertions(+)


base-commit: 7a77daf8223e772a225d6aa6202a5b1ae2392caf
-- 
2.39.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-05-08  3:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-28 13:55 [PATCH 0/4] pwm: Ensure .polarity is set in .get_state() Uwe Kleine-König
2023-02-28 13:55 ` [PATCH 1/4] pwm: hibvt: Explicitly set .polarity " Uwe Kleine-König
2023-03-10 18:59   ` Uwe Kleine-König
2023-02-28 13:55 ` [PATCH 2/4] pwm: cros-ec: " Uwe Kleine-König
2023-02-28 16:19   ` Guenter Roeck
2023-03-10 18:50   ` Uwe Kleine-König
2023-02-28 13:55 ` [PATCH 3/4] pwm: iqs620a: " Uwe Kleine-König
2023-03-10 18:48   ` Uwe Kleine-König
2023-03-10 23:29     ` Jeff LaBundy
2023-02-28 13:55 ` [PATCH 4/4] pwm: sprd: " Uwe Kleine-König
2023-03-10 18:43   ` Uwe Kleine-König
2023-05-08  3:45 ` [PATCH 0/4] pwm: Ensure .polarity is set " patchwork-bot+chrome-platform
2023-05-08  3:56 ` patchwork-bot+chrome-platform

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).