<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/pwm/sysfs.c, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-12-08T06:16:20Z</updated>
<entry>
<title>pwm: Fix device reference leak</title>
<updated>2016-12-08T06:16:20Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2016-11-01T10:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=43b5bb262711e0e81ea348072a01ef1744b157ca'/>
<id>urn:sha1:43b5bb262711e0e81ea348072a01ef1744b157ca</id>
<content type='text'>
commit 0e1614ac84f1719d87bed577963bb8140d0c9ce8 upstream.

Make sure to drop the reference to the parent device taken by
class_find_device() after "unexporting" any children when deregistering
a PWM chip.

Fixes: 0733424c9ba9 ("pwm: Unexport children before chip removal")
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>pwm: Unexport children before chip removal</title>
<updated>2016-11-10T15:38:56Z</updated>
<author>
<name>David Hsu</name>
</author>
<published>2016-08-09T21:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fedede0963c48829992a810d9ae61f0424949373'/>
<id>urn:sha1:fedede0963c48829992a810d9ae61f0424949373</id>
<content type='text'>
commit 0733424c9ba9f42242409d1ece780777272f7ea1 upstream.

Exported pwm channels aren't removed before the pwmchip and are
leaked. This results in invalid sysfs files. This fix removes
all exported pwm channels before chip removal.

Signed-off-by: David Hsu &lt;davidhsu@google.com&gt;
Fixes: 76abbdde2d95 ("pwm: Add sysfs interface")
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Merge branch 'for-4.8/capture' into for-next</title>
<updated>2016-07-25T14:23:39Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2016-07-25T14:23:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bd2686122d3b45db1398776921bd47fedfd6d6a5'/>
<id>urn:sha1:bd2686122d3b45db1398776921bd47fedfd6d6a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pwm: sysfs: Add PWM capture support</title>
<updated>2016-06-10T14:01:40Z</updated>
<author>
<name>Lee Jones</name>
</author>
<published>2016-06-08T09:21:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a366fe9153f445e950a7a344932b7419aa83094'/>
<id>urn:sha1:1a366fe9153f445e950a7a344932b7419aa83094</id>
<content type='text'>
Allow a user to read PWM capture results from sysfs. To start a capture
and read the result, simply read the file:

  $ cat $PWMCHIP/capture

The output format is "&lt;period&gt; &lt;duty cycle&gt;".

Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sysfs: Get return value from pwm_apply_state()</title>
<updated>2016-06-10T12:24:40Z</updated>
<author>
<name>Ryo Kodama</name>
</author>
<published>2016-06-08T01:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe5aa34d6eb9c4d34071845f70f3714b41c8a77d'/>
<id>urn:sha1:fe5aa34d6eb9c4d34071845f70f3714b41c8a77d</id>
<content type='text'>
This patch adds to check the return value from pwm_apply_state()
used in enable_store(). The error of enable_store() doesn't work
if the return value doesn't received.

Signed-off-by: Ryo Kodama &lt;ryo.kodama.vz@renesas.com&gt;
Signed-off-by: Yoshihiro Shimoda &lt;yoshihiro.shimoda.uh@renesas.com&gt;
Fixes: 39100ceea79f ("pwm: Switch to the atomic API")
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: Switch to the atomic API</title>
<updated>2016-05-17T12:48:04Z</updated>
<author>
<name>Boris Brezillon</name>
</author>
<published>2016-04-14T19:17:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=39100ceea79ff2efeb2fb094baf120c73d5ccf47'/>
<id>urn:sha1:39100ceea79ff2efeb2fb094baf120c73d5ccf47</id>
<content type='text'>
Replace legacy pwm_get/set_xxx() and pwm_config/enable/disable() calls
by pwm_get/apply_state().

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: Get rid of pwm-&gt;lock</title>
<updated>2016-05-17T12:44:59Z</updated>
<author>
<name>Boris BREZILLON</name>
</author>
<published>2016-03-30T20:03:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=459a25afe97cb3d7f978b90c881f4d7aac8fb755'/>
<id>urn:sha1:459a25afe97cb3d7f978b90c881f4d7aac8fb755</id>
<content type='text'>
PWM devices are not protected against concurrent accesses. The lock in
struct pwm_device might let PWM users think it is, but it's actually
only protecting the enabled state.

Removing this lock should be fine as long as all PWM users are aware
that accesses to the PWM device have to be serialized, which seems to be
the case for all of them except the sysfs interface. Patch the sysfs
code by adding a lock to the pwm_export struct and making sure it's
taken for all relevant accesses to the exported PWM device.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sysfs: Make use of the DEVICE_ATTR_[RW][WO] macro's</title>
<updated>2015-11-10T12:06:46Z</updated>
<author>
<name>Olliver Schinagl</name>
</author>
<published>2015-10-26T21:32:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1'/>
<id>urn:sha1:65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1</id>
<content type='text'>
For the npwm property the PWM sysfs interface already made use of the
DEVICE_ATTR_RO macro. This patch expands this to the other sysfs
properties so that the code base is concise and makes use of this
helpful macro.

This has the advantage of slightly reducing the code size, improving
readability and no longer using magic values for permissions.

Signed-off-by: Olliver Schinagl &lt;oliver@schinagl.nl&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sysfs: Remove unnecessary temporary variable</title>
<updated>2015-11-10T12:06:45Z</updated>
<author>
<name>Olliver Schinagl</name>
</author>
<published>2015-10-26T21:32:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0344d0d69b3360ec551581c141c6599a0dcb5f27'/>
<id>urn:sha1:0344d0d69b3360ec551581c141c6599a0dcb5f27</id>
<content type='text'>
Use the result of pwm_is_enabled() directly instead of storing it in a
temporary variable.

Signed-off-by: Olliver Schinagl &lt;oliver@schinagl.nl&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sysfs: Remove unnecessary padding</title>
<updated>2015-07-27T10:03:38Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2015-07-20T07:58:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=412820dd536fe2d01a35f0d68982ea225ec255b3'/>
<id>urn:sha1:412820dd536fe2d01a35f0d68982ea225ec255b3</id>
<content type='text'>
Padding initializers so that assignment operators align is bound to lead
to inconsistencies or churn. Single spaces around the assignment is just
fine.

Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
</feed>
