All of lore.kernel.org
 help / color / mirror / Atom feed
* TMDC Joystick no longer works in kernel 2.6.28
@ 2009-01-10 21:53 Andrew S. Johnson
  2009-01-14  8:27 ` Andrew Morton
  2009-04-20  8:04 ` Dmitry Torokhov
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew S. Johnson @ 2009-01-10 21:53 UTC (permalink / raw)
  To: linux-kernel

Up through kernel version 2.6.27.9 I have had no problems with
my joystick on the game port.  Now with 2.6.28, the game port
is recognized when the gameport and ns558 modules load, but
loading the tmdc module doesn't also automatically load joydev,
and even loading joydev manually doesn't give me a working
joystick.  There are no error messages in dmesg, /var/log/messages, 
or /var/log/syslog.  This is on Slackware 12.1, so I don't think
it's a distro issue.  Do I need to do something different than
in the past to make it work, or is there some debug I can turn
on to give more info?

Please CC me.

Thanks,

Andy Johnson
Luling, Louisiana

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TMDC Joystick no longer works in kernel 2.6.28
  2009-01-10 21:53 TMDC Joystick no longer works in kernel 2.6.28 Andrew S. Johnson
@ 2009-01-14  8:27 ` Andrew Morton
  2009-04-20  8:04 ` Dmitry Torokhov
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2009-01-14  8:27 UTC (permalink / raw)
  To: Andrew S. Johnson; +Cc: linux-kernel, linux-input

(cc linux-input)

On Sat, 10 Jan 2009 15:53:40 -0600 "Andrew S. Johnson" <andy@asjohnson.com> wrote:

> Up through kernel version 2.6.27.9 I have had no problems with
> my joystick on the game port.  Now with 2.6.28, the game port
> is recognized when the gameport and ns558 modules load, but
> loading the tmdc module doesn't also automatically load joydev,
> and even loading joydev manually doesn't give me a working
> joystick.  There are no error messages in dmesg, /var/log/messages, 
> or /var/log/syslog.  This is on Slackware 12.1, so I don't think
> it's a distro issue.  Do I need to do something different than
> in the past to make it work, or is there some debug I can turn
> on to give more info?
> 

If this doesn't get resolved with a few days, please raise a report at
bugzilla.kernel.org, so that we can not fix it in a more organised
fashion, thanks.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TMDC Joystick no longer works in kernel 2.6.28
  2009-01-10 21:53 TMDC Joystick no longer works in kernel 2.6.28 Andrew S. Johnson
  2009-01-14  8:27 ` Andrew Morton
@ 2009-04-20  8:04 ` Dmitry Torokhov
  2009-04-23  0:01   ` Andrew S. Johnson
  1 sibling, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2009-04-20  8:04 UTC (permalink / raw)
  To: Andrew S. Johnson; +Cc: linux-kernel

Hi Andrew,

On Saturday 10 January 2009 13:53:40 Andrew S. Johnson wrote:
> Up through kernel version 2.6.27.9 I have had no problems with
> my joystick on the game port.  Now with 2.6.28, the game port
> is recognized when the gameport and ns558 modules load, but
> loading the tmdc module doesn't also automatically load joydev,
> and even loading joydev manually doesn't give me a working
> joystick.  There are no error messages in dmesg, /var/log/messages,
> or /var/log/syslog.  This is on Slackware 12.1, so I don't think
> it's a distro issue.  Do I need to do something different than
> in the past to make it work, or is there some debug I can turn
> on to give more info?
>

The patch below should help with joysticks attached to gameports;
it should appear in 2.6.30-rc3.

-- 
Dmitry

Input: gameport - fix attach driver code

The commit 6902c0bead4ce266226fc0c5b3828b850bdc884a that moved
driver registration out of kgameportd thread was incomplete and
did not add the code necessary to actually attach driver to
already registered devices, rectify that.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
 drivers/input/gameport/gameport.c |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/drivers/input/gameport/gameport.c 
b/drivers/input/gameport/gameport.c
index ebf4be5..2d175b5 100644
--- a/drivers/input/gameport/gameport.c
+++ b/drivers/input/gameport/gameport.c
@@ -50,9 +50,8 @@ static LIST_HEAD(gameport_list);
 
 static struct bus_type gameport_bus;
 
-static void gameport_add_driver(struct gameport_driver *drv);
 static void gameport_add_port(struct gameport *gameport);
-static void gameport_destroy_port(struct gameport *gameport);
+static void gameport_attach_driver(struct gameport_driver *drv);
 static void gameport_reconnect_port(struct gameport *gameport);
 static void gameport_disconnect_port(struct gameport *gameport);
 
@@ -230,7 +229,6 @@ static void gameport_find_driver(struct gameport 
*gameport)
 
 enum gameport_event_type {
 	GAMEPORT_REGISTER_PORT,
-	GAMEPORT_REGISTER_DRIVER,
 	GAMEPORT_ATTACH_DRIVER,
 };
 
@@ -374,8 +372,8 @@ static void gameport_handle_event(void)
 				gameport_add_port(event->object);
 				break;
 
-			case GAMEPORT_REGISTER_DRIVER:
-				gameport_add_driver(event->object);
+			case GAMEPORT_ATTACH_DRIVER:
+				gameport_attach_driver(event->object);
 				break;
 
 			default:
@@ -706,14 +704,14 @@ static int gameport_driver_remove(struct device *dev)
 	return 0;
 }
 
-static void gameport_add_driver(struct gameport_driver *drv)
+static void gameport_attach_driver(struct gameport_driver *drv)
 {
 	int error;
 
-	error = driver_register(&drv->driver);
+	error = driver_attach(&drv->driver);
 	if (error)
 		printk(KERN_ERR
-			"gameport: driver_register() failed for %s, error: %d\n",
+			"gameport: driver_attach() failed for %s, error: %d\n",
 			drv->driver.name, error);
 }
 
-- 
1.6.0.6



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: TMDC Joystick no longer works in kernel 2.6.28
  2009-04-20  8:04 ` Dmitry Torokhov
@ 2009-04-23  0:01   ` Andrew S. Johnson
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew S. Johnson @ 2009-04-23  0:01 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel

On Monday 20 April 2009 03:04:09 am Dmitry Torokhov wrote:
>
> The patch below should help with joysticks attached to gameports;
> it should appear in 2.6.30-rc3.
>
--patch snipped--
> --
> Dmitry

The TMDC joystick now works under 2.6.30-rc3.  I tested it with 
Google Earth flight simulator, Extreme Tux Racer, and Super Tux 
Kart and it all seems fine.

Thanks for fixing this.

Andy Johnson
Luling, Louisiana

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-23  0:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-10 21:53 TMDC Joystick no longer works in kernel 2.6.28 Andrew S. Johnson
2009-01-14  8:27 ` Andrew Morton
2009-04-20  8:04 ` Dmitry Torokhov
2009-04-23  0:01   ` Andrew S. Johnson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.