All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kim Holviala <kim@holviala.com>
To: linux-kernel@vger.kernel.org
Cc: Dmitry Torokhov <dtor_core@ameritech.net>, vojtech@suse.cz
Subject: [PATCH] psmouse: fix mouse hotplugging
Date: Thu, 22 Apr 2004 10:44:56 +0300	[thread overview]
Message-ID: <200404221044.56294.kim@holviala.com> (raw)

Note to myself: make small patches not big confusing ones.

This patch fixes hotplugging of PS/2 devices on hardware which don't
support hotplugging of PS/2 devices. In other words, most desktop machines.
Applies to at least 2.6.5, 2.6.6, 2.6.6-rc2 and 2.6.6-rc2-mm1.



Kim




--- linux-2.6.6-rc2/drivers/input/mouse/psmouse-base.c	2004-04-21 13:35:43.000000000 +0300
+++ linux-2.6.6-rc2-kim/drivers/input/mouse/psmouse-base.c	2004-04-21 13:50:16.753975235 +0300
@@ -470,7 +470,7 @@
  * Then we reset and disable the mouse so that it doesn't generate events.
  */
 
-	if (psmouse_command(psmouse, NULL, PSMOUSE_CMD_RESET_DIS))
+	if (psmouse_reset(psmouse))
 		printk(KERN_WARNING "psmouse.c: Failed to reset mouse on %s\n", psmouse->serio->phys);
 
 /*

             reply	other threads:[~2004-04-22  7:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-22  7:44 Kim Holviala [this message]
2004-04-22 15:46 ` [PATCH] psmouse: fix mouse hotplugging Horst von Brand
2004-04-22 16:01   ` Maciej W. Rozycki
2004-04-22 22:04     ` Ian Stirling
2004-04-22 16:18   ` Meelis Roos
2004-04-22 18:08   ` Kim Holviala
2004-04-22 15:53 ` Tomasz Torcz
2004-04-22 18:10   ` Kim Holviala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200404221044.56294.kim@holviala.com \
    --to=kim@holviala.com \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.