* PATCH: ns558 bugfix / CSC ids
@ 2001-06-01 15:42 Marcus Meissner
0 siblings, 0 replies; only message in thread
From: Marcus Meissner @ 2001-06-01 15:42 UTC (permalink / raw)
To: linux-kernel, Alan Cox
Hi,
I have added two CSC function ids to the ISAPNP joystick probing.
CSC cards use a lot of varying ids for the functions, but in my
set of data, 0010 and 0110 are always 'CTL'Game Controllers.
One bugfix: port->size must be set, or the release_region on rmmod ns558
fails badly.
Tested on IBM Netfinity 3500.
Ciao, Marcus
Index: drivers/char/joystick/ns558.c
===================================================================
RCS file: /build/mm/work/repository/linux-mm/drivers/char/joystick/ns558.c,v
retrieving revision 1.16
diff -u -r1.16 ns558.c
--- drivers/char/joystick/ns558.c 2001/06/01 11:33:11 1.16
+++ drivers/char/joystick/ns558.c 2001/06/01 15:31:09
@@ -178,6 +178,8 @@
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('C','T','L'), ISAPNP_DEVICE(0x7001), 0 },
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('C','T','L'), ISAPNP_DEVICE(0x7002), 0 },
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('C','S','C'), ISAPNP_DEVICE(0x0b35), 0 },
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('C','S','C'), ISAPNP_DEVICE(0x0010), 0 },
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('C','S','C'), ISAPNP_DEVICE(0x0110), 0 },
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('P','N','P'), ISAPNP_DEVICE(0xb02f), 0 },
{ 0, },
};
@@ -217,6 +219,7 @@
port->next = next;
port->type = NS558_PNP;
port->gameport.io = ioport;
+ port->size = iolen;
port->dev = dev;
gameport_register_port(&port->gameport);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-01 15:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-01 15:42 PATCH: ns558 bugfix / CSC ids Marcus Meissner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox