<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/input/mouse/logips2pp.c, branch v3.0.56</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/input/mouse/logips2pp.c?h=v3.0.56</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/input/mouse/logips2pp.c?h=v3.0.56'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-05-19T18:31:51Z</updated>
<entry>
<title>Input: psmouse - small formatting changes to better follow coding style</title>
<updated>2010-05-19T18:31:51Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2010-05-19T17:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a62f0d27b4196bad5e900d766b285feb7069cd16'/>
<id>urn:sha1:a62f0d27b4196bad5e900d766b285feb7069cd16</id>
<content type='text'>
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: psmouse - rework setting of BTN_MIDDLE capability</title>
<updated>2009-11-20T08:52:12Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2009-11-17T06:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=315eb996d5505112b22452ccbc7e01fb02eaae81'/>
<id>urn:sha1:315eb996d5505112b22452ccbc7e01fb02eaae81</id>
<content type='text'>
Do not start protocol detection assuming that middle mouse is present,
instead let individual protocols explicitly set this capability.
This fixes issue with Synaptics touchpads pretending that they have
middle button when hardware clearly reports otherwise.

Reported-and-tested-by: Andrey Borzenkov &lt;arvidjaar@mail.ru&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: logips2pp - model 73 is actually TrackMan FX</title>
<updated>2009-10-18T07:03:54Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2009-10-15T16:46:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4f7802d032344fe3b87441278f53f9ea3aa9506a'/>
<id>urn:sha1:4f7802d032344fe3b87441278f53f9ea3aa9506a</id>
<content type='text'>
Reported-and-tested-by: Harald Dunkel &lt;harald.dunkel@t-online.de&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: psmouse - use boolean type</title>
<updated>2009-09-11T05:11:38Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2009-09-10T02:13:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b7802c5c1ea9563f3746bea09c214ccedc8600f4'/>
<id>urn:sha1:b7802c5c1ea9563f3746bea09c214ccedc8600f4</id>
<content type='text'>
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: convert drivers to use strict_strtoul()</title>
<updated>2008-09-10T16:11:57Z</updated>
<author>
<name>Joe Rouvier</name>
<email>joe@rouvier.org</email>
</author>
<published>2008-08-10T04:29:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=160f1fef7e52e974489b3c70fbd4e094c06965c2'/>
<id>urn:sha1:160f1fef7e52e974489b3c70fbd4e094c06965c2</id>
<content type='text'>
strict_strtoul() allows newline character at the end of the the input
string and therefore is more user-friendly.

Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: logips2pp - add type 72 (PS/2 TrackMan Marble)</title>
<updated>2007-05-09T03:34:18Z</updated>
<author>
<name>Peter Samuelson</name>
<email>peter@p12n.org</email>
</author>
<published>2007-05-09T03:34:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=18cc6757532e3b0e7a569b1631869c812b777196'/>
<id>urn:sha1:18cc6757532e3b0e7a569b1631869c812b777196</id>
<content type='text'>
This is purely cosmetic: this is standard 3-button, no wheel or other
such features, so it already _worked_ just fine.  This patch suppresses
a warning about the unknown model, and changes the printk from "Mouse"
to "TrackMan".

Signed-off-by: Peter Samuelson &lt;peter@p12n.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: logips2pp - add model 1 information</title>
<updated>2007-04-12T05:33:19Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor@insightbb.com</email>
</author>
<published>2007-04-12T05:33:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=21298f7153f71c7fa70247518851f7aac41c4781'/>
<id>urn:sha1:21298f7153f71c7fa70247518851f7aac41c4781</id>
<content type='text'>
It turns out I had an old 2-button Logitech mouse that responds
to Logitech's queries with model of 1.

Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: logips2pp - ignore mice reporting model as 0</title>
<updated>2007-04-12T05:32:22Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor@insightbb.com</email>
</author>
<published>2007-04-12T05:32:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=688897b0d4910e097f34c0e263d649cf2036eb45'/>
<id>urn:sha1:688897b0d4910e097f34c0e263d649cf2036eb45</id>
<content type='text'>
There are mice reporting to logitech's queries with model
of 0. Do not claim that these are Logitech mice.

Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: logips2pp - handle sysfs errors</title>
<updated>2006-11-03T04:59:40Z</updated>
<author>
<name>Jeff Garzik</name>
<email>jeff@garzik.org</email>
</author>
<published>2006-11-03T04:59:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0fea0e9a9c72dab526447895605fc236c87c2726'/>
<id>urn:sha1:0fea0e9a9c72dab526447895605fc236c87c2726</id>
<content type='text'>
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&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.amat.us/linux/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>
