All of lore.kernel.org
 help / color / mirror / Atom feed
From: arief_mulya <arief_m_utama@telkomsel.co.id>
To: vojtech@suse.cz
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH?] psmouse-base.c
Date: Mon, 10 Nov 2003 09:28:12 +0700	[thread overview]
Message-ID: <3FAEF7BC.8060503@telkomsel.co.id> (raw)

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.


             reply	other threads:[~2003-11-10  2:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10  2:28 arief_mulya [this message]
2003-11-10  4:12 ` [PATCH?] psmouse-base.c 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

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=3FAEF7BC.8060503@telkomsel.co.id \
    --to=arief_m_utama@telkomsel.co.id \
    --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.