<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/input/touchscreen/tsc2005.c, branch v3.2.31</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/input/touchscreen/tsc2005.c?h=v3.2.31</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/input/touchscreen/tsc2005.c?h=v3.2.31'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-03-24T06:50:36Z</updated>
<entry>
<title>Input: tsc2005 - fix locking issue</title>
<updated>2011-03-24T06:50:36Z</updated>
<author>
<name>Aaro Koskinen</name>
<email>aaro.koskinen@nokia.com</email>
</author>
<published>2011-03-24T06:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a0fa2206f550066d6948d43c5401e973e5f7d320'/>
<id>urn:sha1:a0fa2206f550066d6948d43c5401e973e5f7d320</id>
<content type='text'>
Commit 0b950d3 (Input: tsc2005 - add open/close) introduced a
locking issue with the ESD watchdog: __tsc2005_disable() is calling
cancel_delayed_work_sync() with mutex held, and the work also needs the
same mutex.

Fix the problem by using mutex_trylock() in tsc2005_esd_work(). If the
mutex is taken, we know we are in the middle of disable or enable and
the watchdog check can be skipped.

Signed-off-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - use relative jiffies to schedule the watchdog</title>
<updated>2011-03-24T06:50:31Z</updated>
<author>
<name>Aaro Koskinen</name>
<email>aaro.koskinen@nokia.com</email>
</author>
<published>2011-03-24T06:45:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=903427955b9ffe1ca4b76c510089774c3b7a4a8a'/>
<id>urn:sha1:903427955b9ffe1ca4b76c510089774c3b7a4a8a</id>
<content type='text'>
Use relative jiffies to schedule the watchdog. Otherwise it will run
like a mad one.

Signed-off-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - driver should depend on GENERIC_HARDIRQS</title>
<updated>2011-03-24T06:49:17Z</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>geert@linux-m68k.org</email>
</author>
<published>2011-03-21T09:37:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ddca6a31345cbea8c7c907e6b7e016339cbb6342'/>
<id>urn:sha1:ddca6a31345cbea8c7c907e6b7e016339cbb6342</id>
<content type='text'>
drivers/input/touchscreen/tsc2005.c: In function ‘tsc2005_probe’:
drivers/input/touchscreen/tsc2005.c:666: error: implicit declaration of function ‘set_irq_wake’

In addition, migrate from set_irq_wake() (marked "do not use" as of commit
a0cd9ca2b907d7ee26575e7b63ac92dad768a75e ("genirq: Namespace cleanup")) to
irq_set_irq_wake().

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - remove 'disable' sysfs attribute</title>
<updated>2011-03-17T06:29:33Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:11:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5cb81d19bae47adcb073a5e5a3bc40dd252f239e'/>
<id>urn:sha1:5cb81d19bae47adcb073a5e5a3bc40dd252f239e</id>
<content type='text'>
I believe that enable/disable functionality should not be implemented on
the individual driver level but rather in device core, potentially
reusing parts of PM framework. Therefore the driver-specific "disable"
attribute is removed from the mainline driver.

Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - add open/close</title>
<updated>2011-03-17T06:29:29Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:11:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0b950d3d7ce4c1e870b8efc4ae0faaf0ef53532c'/>
<id>urn:sha1:0b950d3d7ce4c1e870b8efc4ae0faaf0ef53532c</id>
<content type='text'>
Introduce open and close methods for the input device to keep the device
powered down when it is not in use. Also rework interaction between
interrupt thread and starting/shutting off/resetting the device: instead
of taking a mutex in the intterrupt thread and elsewhere disable interrupts
before transitioning the device in a new state.

The ESD handling is also separated from the IRQ thread; we poll regularly
at a given interval and simply skip reads if we see that valid interrupt
happened not so long ago. This allows us not cancel and reschedule ESD
work from interrupt context all the time.

Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - handle read errors from SPI layer</title>
<updated>2011-03-17T06:29:22Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:11:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=71f80045d48f259ea423bae3c14c2361e010a9ce'/>
<id>urn:sha1:71f80045d48f259ea423bae3c14c2361e010a9ce</id>
<content type='text'>
Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - do not rearm timer in hardirq handler</title>
<updated>2011-03-17T06:29:16Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:11:14Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dacb650f125c7dc7ead9735d081bc078325b6d23'/>
<id>urn:sha1:dacb650f125c7dc7ead9735d081bc078325b6d23</id>
<content type='text'>
We will most likely rearm it yet again the IRQ thread so doing it here
is pointless.

Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - don't use work for 'pen up' handling</title>
<updated>2011-03-17T06:29:12Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:11:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=80cc2f0c928ddf58051f2809e1c2e7d0172d0291'/>
<id>urn:sha1:80cc2f0c928ddf58051f2809e1c2e7d0172d0291</id>
<content type='text'>
We do not need process context to send input events so let's switch to
a regular timer. I am going to get rid of taking ts-&gt;mutex in
tsc2005_irq_thread() later.

Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - do not use 0 in place of NULL</title>
<updated>2011-03-17T06:29:08Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:10:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9a6e180af78247e3a7680460240bb450c39d3a5b'/>
<id>urn:sha1:9a6e180af78247e3a7680460240bb450c39d3a5b</id>
<content type='text'>
Sparse in unhappy when people use 0 instead of NULL for pointers so
let's rework the way we initialize spi_transfer structure in
tsc2005_cmd() and tsc2005_write().

Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: tsc2005 - use true/false for boolean variables</title>
<updated>2011-03-17T06:29:04Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2011-03-17T05:10:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c8b6846a7559e64d7ac4ba1ccdba05f3ee2e34e8'/>
<id>urn:sha1:c8b6846a7559e64d7ac4ba1ccdba05f3ee2e34e8</id>
<content type='text'>
Tested-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
</feed>
