public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH?] psmouse-base.c
@ 2003-11-10  2:28 arief_mulya
  2003-11-10  4:12 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: arief_mulya @ 2003-11-10  2:28 UTC (permalink / raw)
  To: vojtech; +Cc: linux-kernel

Dear Mr. Vojtech,


I learn that you are the author for PS/2 mouse driver on Linux 2.6.x 
kernel.

I just want to share a little change that  I've did to 
psmouse_pm_callback() which without this, my synaptics touchpad would 
prevent my laptop (IBM Thinkpad T30) from suspending.

I don't remember how the functions read at first. But this is how it 
become. This is not exactly a patch, huh? Sorry, but I hope it helps.

I also not sure if this patch already done the right thing and I haven't 
tested it on other machine. It works for me, but I can't promise if it 
blows up others. Maybe you could give it a test?

The kernel version was 2.6.0-test9 from Debian (not vanilla, but I'm 
sure the psmouse part is clean).

This is the function:

static int psmouse_pm_callback(struct pm_dev *dev, pm_request_t request, 
void *data)
{
        struct psmouse *psmouse = dev->data;
        struct serio_dev *ser_dev = psmouse->serio->dev;
                                                                               
 
        switch (request) {
        case PM_RESUME:
                psmouse->state = PSMOUSE_IGNORE;
                serio_rescan(psmouse->serio);
        default:
                return 0;
        }
}

Sorry if this just bothers you.
I'm cc-ing also to [linux-kernel], but I'm not subscribed to the list yet.


Best Regards,
-- 
arief_mulya <http://www.geocities.com/naida_s_rasha/>
Peace is beautiful.


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

end of thread, other threads:[~2003-11-12  3:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10  2:28 [PATCH?] psmouse-base.c arief_mulya
2003-11-10  4:12 ` Andrew Morton
2003-11-10  6:43   ` Dmitry Torokhov
2003-11-10  6:56     ` Andrew Morton
2003-11-10  7:08       ` arief_mulya
2003-11-11  5:20       ` Dmitry Torokhov
2003-11-11  6:54         ` arief_mulya
2003-11-11 23:29           ` Dmitry Torokhov
2003-11-12  2:28             ` arief_mulya
2003-11-12  3:42               ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox