<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/input/misc/pwm-beeper.c, branch linux-4.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2017-03-07T18:39:23Z</updated>
<entry>
<title>Input: pwm-beeper - support customized freq for SND_BELL</title>
<updated>2017-03-07T18:39:23Z</updated>
<author>
<name>Guan Ben</name>
<email>ben.guan@cn.bosch.com</email>
</author>
<published>2017-03-07T18:25:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fad358a06c51bd40a131f4f94711c46e5d77cdae'/>
<id>urn:sha1:fad358a06c51bd40a131f4f94711c46e5d77cdae</id>
<content type='text'>
Extend the pwm-beeper driver to support customized frequency for SND_BELL
from device properties.

Signed-off-by: Guan Ben &lt;ben.guan@cn.bosch.com&gt;
Signed-off-by: Mark Jonas &lt;mark.jonas@de.bosch.com&gt;
Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: pwm-beeper - switch to using "atomic" PWM API</title>
<updated>2017-01-22T08:26:36Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2017-01-19T21:52:49Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=2de8b4110c82c243530a68381a1c39a4fe05c14f'/>
<id>urn:sha1:2de8b4110c82c243530a68381a1c39a4fe05c14f</id>
<content type='text'>
The "atomic" API allows us to configure PWM period and duty cycle and
enable it in one call.

Reviewed-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Tested-by: David Lechner &lt;david@lechnology.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: pwm-beeper - add optional amplifier regulator</title>
<updated>2017-01-22T08:23:22Z</updated>
<author>
<name>David Lechner</name>
<email>david@lechnology.com</email>
</author>
<published>2017-01-16T01:09:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9e54924432783bfb21e905e0bf7042556bcb4b90'/>
<id>urn:sha1:9e54924432783bfb21e905e0bf7042556bcb4b90</id>
<content type='text'>
This adds an optional regulator to the pwm-beeper device. This regulator
acts as an amplifier. The amplifier is only enabled while beeping in order
to reduce power consumption.

Tested on LEGO MINDSTORMS EV3, which has a speaker connected to PWM through
an amplifier.

Signed-off-by: David Lechner &lt;david@lechnology.com&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: pwm-beeper - suppress error message on probe defer</title>
<updated>2017-01-22T08:23:20Z</updated>
<author>
<name>David Lechner</name>
<email>david@lechnology.com</email>
</author>
<published>2017-01-06T18:35:16Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=62481881401246859d9bd06b7c7b9a391c78892c'/>
<id>urn:sha1:62481881401246859d9bd06b7c7b9a391c78892c</id>
<content type='text'>
This suppress printing an error message when pwm_get returns -EPROBE_DEFER.
Otherwise you get a bunch of noise in the kernel log.

Signed-off-by: David Lechner &lt;david@lechnology.com&gt;
Reviewed-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: pwm-beeper - fix race when suspending</title>
<updated>2017-01-22T08:23:19Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2017-01-19T19:13:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e9728f0dd7dc06fb0f0d18552ab9599005cd2ab7'/>
<id>urn:sha1:e9728f0dd7dc06fb0f0d18552ab9599005cd2ab7</id>
<content type='text'>
Usually userspace sends SND_BELL and SND_TONE events, and by the time
pwm_beeper_suspend() runs userpsace is already frozen, but theoretically
in-kernel users may send these events too, and that may cause
pwm_beeper_event() scheduling another work after we canceled it.

Let's introduce a "suspended" flag and check it in pwm_beeper_event() to
avoid this race.

Reviewed-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Tested-by: David Lechner &lt;david@lechnology.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: pwm-beeper - use input_set_capability()</title>
<updated>2017-01-22T08:23:18Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2017-01-06T17:54:14Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=48a55d7de79f95176f3ab372be66165a60be222f'/>
<id>urn:sha1:48a55d7de79f95176f3ab372be66165a60be222f</id>
<content type='text'>
Instead of manipulating capability bits directly, let's use
input_set_capability() API.

Reviewed-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Tested-by: David Lechner &lt;david@lechnology.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: pwm-beeper - switch to using managed resources</title>
<updated>2017-01-22T08:23:17Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2017-01-06T17:50:14Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=bcf4b0460ba558b1e1fcaa7c160076751b560d03'/>
<id>urn:sha1:bcf4b0460ba558b1e1fcaa7c160076751b560d03</id>
<content type='text'>
Use of managed resources (devm) simplifies error handling and tear down
of the driver.

Reviewed-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Tested-by: David Lechner &lt;david@lechnology.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: pwm-beeper - remove calls to legacy pwm_request API</title>
<updated>2017-01-22T08:23:16Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2017-01-06T17:48:20Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=2031717544cab77b9b6fd8c33fd24cbbe2f607b6'/>
<id>urn:sha1:2031717544cab77b9b6fd8c33fd24cbbe2f607b6</id>
<content type='text'>
There are no more users of pwm-beeper driver in mainline relying on
this legacy API, so let's remove it and simplify the driver code.

Acked-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Tested-by: David Lechner &lt;david@lechnology.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input</title>
<updated>2016-05-28T02:14:35Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2016-05-28T02:14:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ed2608faa0f701b1dbc65277a9e5c7ff7118bfd4'/>
<id>urn:sha1:ed2608faa0f701b1dbc65277a9e5c7ff7118bfd4</id>
<content type='text'>
Pull more input subsystem updates from Dmitry Torokhov:
 "Just a few more driver fixes; new drivers will be coming in the next
  merge window"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: pwm-beeper - fix - scheduling while atomic
  Input: xpad - xbox one elite controller support
  Input: xpad - add more third-party controllers
  Input: xpad - prevent spurious input from wired Xbox 360 controllers
  Input: xpad - move pending clear to the correct location
  Input: uinput - handle compat ioctl for UI_SET_PHYS
</content>
</entry>
<entry>
<title>Input: pwm-beeper - fix - scheduling while atomic</title>
<updated>2016-05-27T23:40:30Z</updated>
<author>
<name>Manfred Schlaegl</name>
<email>manfred.schlaegl@gmx.at</email>
</author>
<published>2016-05-27T23:36:36Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f49cf3b8b4c841457244c461c66186a719e13bcc'/>
<id>urn:sha1:f49cf3b8b4c841457244c461c66186a719e13bcc</id>
<content type='text'>
Pwm config may sleep so defer it using a worker.

On a Freescale i.MX53 based board we ran into "BUG: scheduling while
atomic" because input_inject_event locks interrupts, but
imx_pwm_config_v2 sleeps.

Tested on Freescale i.MX53 SoC with 4.6.0.

Signed-off-by: Manfred Schlaegl &lt;manfred.schlaegl@gmx.at&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
</feed>
