<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/pwm, branch v5.15.7</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v5.15.7</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v5.15.7'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2021-09-02T20:27:46+00:00</updated>
<entry>
<title>pwm: mtk-disp: Implement atomic API .get_state()</title>
<updated>2021-09-02T20:27:46+00:00</updated>
<author>
<name>Jitao Shi</name>
<email>jitao.shi@mediatek.com</email>
</author>
<published>2021-08-08T13:24:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3f2b16734914fa7c53ef7f8a10a63828890dbd37'/>
<id>urn:sha1:3f2b16734914fa7c53ef7f8a10a63828890dbd37</id>
<content type='text'>
Switch the driver to support the .get_state() method.

Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
[thierry.reding@gmail.com: add missing linux/bitfield.h include]
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: mtk-disp: Fix overflow in period and duty calculation</title>
<updated>2021-09-02T20:27:44+00:00</updated>
<author>
<name>Jitao Shi</name>
<email>jitao.shi@mediatek.com</email>
</author>
<published>2021-08-08T13:24:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=331e049dec64c2d269648a3ea4ea6aae8a54b4ac'/>
<id>urn:sha1:331e049dec64c2d269648a3ea4ea6aae8a54b4ac</id>
<content type='text'>
Current calculation for period and high_width may have 64-bit overflow.
state-&gt;period and rate are u64. rate * state-&gt;period will overflow.

clk_div = div_u64(rate * state-&gt;period, NSEC_PER_SEC)
period = div64_u64(rate * state-&gt;period, div);
high_width = div64_u64(rate * state-&gt;duty_cycle, div);

This patch is to resolve it by using mul_u64_u64_div_u64().

Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: mtk-disp: Implement atomic API .apply()</title>
<updated>2021-09-02T20:27:40+00:00</updated>
<author>
<name>Jitao Shi</name>
<email>jitao.shi@mediatek.com</email>
</author>
<published>2021-08-08T13:24:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=888a623db5d025cc72cd2887bacc3cf3fad10b6f'/>
<id>urn:sha1:888a623db5d025cc72cd2887bacc3cf3fad10b6f</id>
<content type='text'>
Switch the driver to support the .apply() method.

Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: mtk-disp: Adjust the clocks to avoid them mismatch</title>
<updated>2021-09-02T20:03:43+00:00</updated>
<author>
<name>Jitao Shi</name>
<email>jitao.shi@mediatek.com</email>
</author>
<published>2021-08-08T13:24:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d7a4e582587d97a586b1f7709e3bddcf35928e96'/>
<id>urn:sha1:d7a4e582587d97a586b1f7709e3bddcf35928e96</id>
<content type='text'>
The clks "main" and "mm" are prepared in .probe() (and unprepared in
.remove()). This results in the clocks being on during suspend which
results in unnecessarily increased power consumption.

Remove the clock operations from .probe() and .remove(). Add the
clk_prepare_enable() in .enable() and the clk_disable_unprepare() in
.disable().

Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
[thierry.reding@gmail.com: squashed in fixup patch]
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: Make pwmchip_remove() return void</title>
<updated>2021-09-02T19:38:56+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-07-07T16:28:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8083f58d08fd52f547c0a62c0f4e448e15e6726b'/>
<id>urn:sha1:8083f58d08fd52f547c0a62c0f4e448e15e6726b</id>
<content type='text'>
Since some time pwmchip_remove() always returns 0 so the return value
isn't usefull. Now that all callers are converted to ignore its value
the function can be changed to return void.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sun4i: Don't check the return code of pwmchip_remove()</title>
<updated>2021-09-02T19:38:55+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-07-07T16:28:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7587f8a863ce4a5514802eeaed48f60663d69179'/>
<id>urn:sha1:7587f8a863ce4a5514802eeaed48f60663d69179</id>
<content type='text'>
pwmchip_remove() returns always 0. Don't use the value to make it
possible to eventually change the function to return void. Also the
driver core ignores the return value of sun4i_pwm_remove()
and considers the device removed anyhow. So returning early results
in a resource leak.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sifive: Don't check the return code of pwmchip_remove()</title>
<updated>2021-09-02T19:38:55+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-07-07T16:28:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ceb2c2842f3664dcc4e6d8cb317e1e83bb81b1e5'/>
<id>urn:sha1:ceb2c2842f3664dcc4e6d8cb317e1e83bb81b1e5</id>
<content type='text'>
pwmchip_remove() returns always 0. Don't use the value to make it
possible to eventually change the function to return void. Also the
driver core ignores the return value of pwm_sifive_remove().

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: samsung: Don't check the return code of pwmchip_remove()</title>
<updated>2021-09-02T19:38:54+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-07-07T16:28:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4e334973541de4d31c20be22d6198c646f58eb81'/>
<id>urn:sha1:4e334973541de4d31c20be22d6198c646f58eb81</id>
<content type='text'>
pwmchip_remove() returns always 0. Don't use the value to make it
possible to eventually change the function to return void. Also the
driver core ignores the return value of pwm_samsung_remove()
and considers the device removed anyhow. So returning early results
in a resource leak.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: renesas-tpu: Don't check the return code of pwmchip_remove()</title>
<updated>2021-09-02T19:38:54+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-07-07T16:28:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=81d4b5c449ced26685c736eaaa6a7093d87e3891'/>
<id>urn:sha1:81d4b5c449ced26685c736eaaa6a7093d87e3891</id>
<content type='text'>
pwmchip_remove() returns always 0. Don't use the value to make it
possible to eventually change the function to return void. Also the
driver core ignores the return value of tpu_remove().

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: rcar: Don't check the return code of pwmchip_remove()</title>
<updated>2021-09-02T19:38:53+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-07-07T16:28:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=15d217614fcfde5386f4ebf7c74c6e98df2777c0'/>
<id>urn:sha1:15d217614fcfde5386f4ebf7c74c6e98df2777c0</id>
<content type='text'>
pwmchip_remove() returns always 0. Don't use the value to make it
possible to eventually change the function to return void. Also the
driver core ignores the return value of rcar_pwm_remove().

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
</feed>
