<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/usb/input/usbtouchscreen.c, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/usb/input/usbtouchscreen.c?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/usb/input/usbtouchscreen.c?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2007-05-08T05:41:29Z</updated>
<entry>
<title>Input: move USB touchscreens under drivers/input/touchscreen</title>
<updated>2007-05-08T05:41:29Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor@insightbb.com</email>
</author>
<published>2007-05-07T20:38:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d05e84e6cb21cca16987813fd3c271ebaed4233d'/>
<id>urn:sha1:d05e84e6cb21cca16987813fd3c271ebaed4233d</id>
<content type='text'>
This will allow concentrating all input devices in one place
in {menu|x|q}config.

Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Input: drivers/usb/input - usb_buffer_free() cleanup</title>
<updated>2007-05-03T04:57:29Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor@insightbb.com</email>
</author>
<published>2007-05-03T04:57:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e37a97d44038700ff8c2f1080f71fdfc3a4c0c1e'/>
<id>urn:sha1:e37a97d44038700ff8c2f1080f71fdfc3a4c0c1e</id>
<content type='text'>
usb_buffer_free() now handles NULLs so remove unneeded checks
form callers.

Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: USB devices - switch to using input_dev-&gt;dev.parent</title>
<updated>2007-04-12T05:35:03Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor@insightbb.com</email>
</author>
<published>2007-04-12T05:35:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c0f82d570c84f2592367e350a92ebd71e72ba68a'/>
<id>urn:sha1:c0f82d570c84f2592367e350a92ebd71e72ba68a</id>
<content type='text'>
In preparation for struct class_device -&gt; struct device input
core conversion, switch to using input_dev-&gt;dev.parent when
specifying device position in sysfs tree.

Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: drivers/usb/input - don't access dev-&gt;private directly</title>
<updated>2007-04-12T05:34:39Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor@insightbb.com</email>
</author>
<published>2007-04-12T05:34:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7791bdae71243050132ede7ea1558c828b69458f'/>
<id>urn:sha1:7791bdae71243050132ede7ea1558c828b69458f</id>
<content type='text'>
Use input_get_drvdata() and input_set_drvdata() instead.

Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>usbtouchscreen: make ITM screens report BTN_TOUCH as zero when not touched</title>
<updated>2007-01-22T19:46:55Z</updated>
<author>
<name>Daniel Ritz</name>
<email>daniel.ritz-ml@swissonline.ch</email>
</author>
<published>2006-12-11T17:17:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c9d8c2b324d24ffb4fdcd93b3f752530a5a0a591'/>
<id>urn:sha1:c9d8c2b324d24ffb4fdcd93b3f752530a5a0a591</id>
<content type='text'>
ITM screens send invalid x/y data when not touched. this was fixes a while ago
but the problem is if the screen is not touched anymore the driver never does
not report BTN_TOUCH as zero. fix it by sending the report with the last valid
coordinates when pressure is released.

Signed-off-by: Daniel Ritz &lt;daniel.ritz@gmx.ch&gt;
Cc: J.P. Delport &lt;jpdelport@csir.co.za&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>[PATCH] slab: remove SLAB_KERNEL</title>
<updated>2006-12-07T16:39:24Z</updated>
<author>
<name>Christoph Lameter</name>
<email>clameter@sgi.com</email>
</author>
<published>2006-12-07T04:33:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e94b1766097d53e6f3ccfb36c8baa562ffeda3fc'/>
<id>urn:sha1:e94b1766097d53e6f3ccfb36c8baa562ffeda3fc</id>
<content type='text'>
SLAB_KERNEL is an alias of GFP_KERNEL.

Signed-off-by: Christoph Lameter &lt;clameter@sgi.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>usbtouchscreen: add support for DMC TSC-10/25 devices</title>
<updated>2006-12-01T22:23:37Z</updated>
<author>
<name>Holger Schurig</name>
<email>hs4233@mail.mn-solutions.de</email>
</author>
<published>2006-11-17T21:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=24ced062a2965645d651ff92bc93b2c1f926474e'/>
<id>urn:sha1:24ced062a2965645d651ff92bc93b2c1f926474e</id>
<content type='text'>
Adds support for the DMC TSC-10 and TSC-25 usb touchscreen controllers.

Signed-off-by: Holger Schurig &lt;hs4233@mail.mn-solutions.de&gt;
Signed-off-by: Daniel Ritz &lt;daniel.ritz@gmx.ch&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>usbtouchscreen: use endpoint address from endpoint descriptor</title>
<updated>2006-11-03T19:57:18Z</updated>
<author>
<name>Daniel Ritz</name>
<email>daniel.ritz-ml@swissonline.ch</email>
</author>
<published>2006-10-27T20:46:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d8fa59a8f6f7c9a1bc294154fd6805c6b247683d'/>
<id>urn:sha1:d8fa59a8f6f7c9a1bc294154fd6805c6b247683d</id>
<content type='text'>
use the endpoint address from the endpoint descriptor instead of the hardcoding
it to 0x81. at least some ITM based screen use a different address and don't work
without this.

Signed-off-by: Daniel Ritz &lt;daniel.ritz@gmx.ch&gt;
Cc: Ralf Lehmann &lt;ralf@lehmann.cc&gt;
Cc: J.P. Delport &lt;jpdelport@csir.co.za&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>usbtouchscreen: fix data reading for ITM touchscreens</title>
<updated>2006-10-17T21:46:34Z</updated>
<author>
<name>Daniel Ritz</name>
<email>daniel.ritz-ml@swissonline.ch</email>
</author>
<published>2006-10-11T21:40:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=5dfb5f1d060a6f7dfddb78dc59f9e4d299088cc1'/>
<id>urn:sha1:5dfb5f1d060a6f7dfddb78dc59f9e4d299088cc1</id>
<content type='text'>
ITM devices seem to report only garbage when not touched. update usbtouchscreen
to do data reading like itmtouch. also fix wrong mask on pressure bits.

Signed-off-by: Daniel Ritz &lt;daniel.ritz@gmx.ch&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>IRQ: Maintain regs pointer globally rather than passing to IRQ handlers</title>
<updated>2006-10-05T14:10:12Z</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2006-10-05T13:55:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7d12e780e003f93433d49ce78cfedf4b4c52adc5'/>
<id>urn:sha1:7d12e780e003f93433d49ce78cfedf4b4c52adc5</id>
<content type='text'>
Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
of passing regs around manually through all ~1800 interrupt handlers in the
Linux kernel.

The regs pointer is used in few places, but it potentially costs both stack
space and code to pass it around.  On the FRV arch, removing the regs parameter
from all the genirq function results in a 20% speed up of the IRQ exit path
(ie: from leaving timer_interrupt() to leaving do_IRQ()).

Where appropriate, an arch may override the generic storage facility and do
something different with the variable.  On FRV, for instance, the address is
maintained in GR28 at all times inside the kernel as part of general exception
handling.

Having looked over the code, it appears that the parameter may be handed down
through up to twenty or so layers of functions.  Consider a USB character
device attached to a USB hub, attached to a USB controller that posts its
interrupts through a cascaded auxiliary interrupt controller.  A character
device driver may want to pass regs to the sysrq handler through the input
layer which adds another few layers of parameter passing.

I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
main part of the code on FRV and i386, though I can't test most of the drivers.
I've also done partial conversion for powerpc and MIPS - these at least compile
with minimal configurations.

This will affect all archs.  Mostly the changes should be relatively easy.
Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

	struct pt_regs *old_regs = set_irq_regs(regs);

And put the old one back at the end:

	set_irq_regs(old_regs);

Don't pass regs through to generic_handle_irq() or __do_IRQ().

In timer_interrupt(), this sort of change will be necessary:

	-	update_process_times(user_mode(regs));
	-	profile_tick(CPU_PROFILING, regs);
	+	update_process_times(user_mode(get_irq_regs()));
	+	profile_tick(CPU_PROFILING);

I'd like to move update_process_times()'s use of get_irq_regs() into itself,
except that i386, alone of the archs, uses something other than user_mode().

Some notes on the interrupt handling in the drivers:

 (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
     the input_dev struct.

 (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
     something different depending on whether it's been supplied with a regs
     pointer or not.

 (*) Various IRQ handler function pointers have been moved to type
     irq_handler_t.

Signed-Off-By: David Howells &lt;dhowells@redhat.com&gt;
(cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
</content>
</entry>
</feed>
