linux_dsm_epyc7002/drivers/input/mouse
Adrian McMenamin 6b3480855a maple: input: fix up maple mouse driver
The maple mouse driver currently in mainline is broken:

bash-3.1# modprobe maplemouse
[   56.886378] input: Dreamcast Mouse as /devices/virtual/input/input3
[   56.918379] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[   56.930543] pc = c003304e
[   56.934973] *pde = 00000000
[   56.944948] Oops: 0000 [#1]
[   56.947867] Modules linked in: maplemouse(+)
[   56.952353]
[   56.953921] Pid : 1157, Comm: \0x09\0x09modprobe
[   56.958021] CPU : 0        \0x09\0x09Not tainted  (2.6.30-rc2-00130-g3e98f9f #1)
[   56.958052]
[   56.966567] PC is at dc_mouse_open+0xe/0x40 [maplemouse]
[   56.972125] PR is at input_open_device+0x8a/0xc0
[   56.976944] PC  : c003304e SP  : 8c88bdcc SR  : 40008100 TEA : c0033834
[   56.983854] R0  : 000006c4 R1  : 00000000 R2  : 40008101 R3  : 00000000
[   56.990744] R4  : 8c8db800 R5  : c0033080 R6  : 00000005 R7  : 00000200
[   56.997635] R8  : 8c8db800 R9  : 8c8dbe3c R10 : 00000000 R11 : 8c98881c
[   57.004525] R12 : 8c8dbe64 R13 : 8ca50140 R14 : 8c88bdd4
[   57.010063] MACH: 00000497 MACL: 00000348 GBR : 29674440 PR  : 8c1b4d0a
[   57.016939]
...

Here is a fix for this, keeping an open and close, so reducing
the load on the system when the mouse is not in use, and also properly
referencing the maple device buffer following the recent update.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2009-04-27 09:22:31 +09:00
..
alps.c Input: ALPS - add signature for DualPoint found in Dell Latitude E6500 2008-09-10 12:12:33 -04:00
alps.h Input: ALPS - handle errors from input_register_device() 2007-04-12 01:31:13 -04:00
amimouse.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
appletouch.c Input: appletouch - driver refactoring 2008-10-29 00:28:30 -04:00
atarimouse.c Input: atamouse - various cleanups 2008-06-30 09:36:46 -04:00
bcm5974.c Input: bcm5974 - switch back to normal mode when closing 2008-09-16 12:28:13 -04:00
elantech.c Input: elantech - touchpad driver miss-recognising logitech mice 2009-02-28 14:01:39 -08:00
elantech.h Input: psmouse - add support for Elantech touchpads 2008-10-16 22:54:35 -04:00
gpio_mouse.c trivial: fix typo "varaible" -> "variable" 2009-03-30 15:21:57 +02:00
hgpk.c Merge branch 'next' into for-linus 2009-04-08 00:00:33 -07:00
hgpk.h Input: psmouse - add OLPC touchpad driver 2008-09-21 18:28:58 -04:00
hil_ptr.c Input: HIL drivers - add MODULE_ALIAS() 2008-12-30 00:57:12 -08:00
inport.c Input: remove CVS keywords 2008-05-20 12:17:39 -04:00
Kconfig Merge branch 'next' into for-linus 2009-04-08 00:00:33 -07:00
lifebook.c Input: psmouse - fix input_dev leak in lifebook driver 2008-01-17 12:01:51 -05:00
lifebook.h Input: psmouse - allow disabing certain protocol extensions 2007-03-10 01:39:54 -05:00
logibm.c Input: remove CVS keywords 2008-05-20 12:17:39 -04:00
logips2pp.c Input: convert drivers to use strict_strtoul() 2008-09-10 12:11:57 -04:00
logips2pp.h Input: psmouse - allow disabing certain protocol extensions 2007-03-10 01:39:54 -05:00
Makefile Input: add support for the Maple mouse on the SEGA Dreamcast 2009-01-29 23:07:09 -08:00
maplemouse.c maple: input: fix up maple mouse driver 2009-04-27 09:22:31 +09:00
pc110pad.c Input: pc110pad - remove unused variable dev 2009-04-15 09:04:03 -07:00
psmouse-base.c Input: psmouse - add support for Elantech touchpads 2008-10-16 22:54:35 -04:00
psmouse.h Input: psmouse - add support for Elantech touchpads 2008-10-16 22:54:35 -04:00
pxa930_trkball.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2009-03-02 15:43:03 -08:00
rpcmouse.c [ARM] acorn,ebsa110,footbridge,integrator,sa1100: Convert asm/io.h to linux/io.h 2009-03-25 10:21:35 +00:00
sermouse.c Input: remove CVS keywords 2008-05-20 12:17:39 -04:00
synaptics.c Input: synaptics - ensure we reset the device on resume 2009-02-28 14:01:32 -08:00
synaptics.h Input: psmouse - allow disabing certain protocol extensions 2007-03-10 01:39:54 -05:00
touchkit_ps2.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
touchkit_ps2.h Input: psmouse - make dummy touchkit_ps2_detect() static 2007-08-30 00:44:33 -04:00
trackpoint.c Input: convert drivers to use strict_strtoul() 2008-09-10 12:11:57 -04:00
trackpoint.h Input: psmouse - allow disabing certain protocol extensions 2007-03-10 01:39:54 -05:00
vsxxxaa.c Spelling fix: explicitly 2007-10-19 23:22:55 +02:00