All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Vojtech Pavlik <vojtech@suse.cz>, Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/7] i8042 suspend
Date: Sat, 3 Jan 2004 11:03:47 +0100	[thread overview]
Message-ID: <20040103100347.GA499@ucw.cz> (raw)
In-Reply-To: <200401030356.48071.dtor_core@ameritech.net>

On Sat, Jan 03, 2004 at 03:56:45AM -0500, Dmitry Torokhov wrote:
> diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
> --- a/drivers/input/serio/i8042.c	Sat Jan  3 03:07:29 2004
> +++ b/drivers/input/serio/i8042.c	Sat Jan  3 03:07:29 2004
> @@ -746,6 +746,29 @@
>  
>  
>  /*
> + * Reset the controller.
> + */
> +void i8042_controller_reset(void)
> +{
> +	if (i8042_reset) {
> +		unsigned char param;
> +
> +		if (i8042_command(&param, I8042_CMD_CTL_TEST))
> +			printk(KERN_ERR "i8042.c: i8042 controller reset timeout.\n");
> +	}

We should be checking the return value from the TEST command as well,
if we want to use this to initialize the controller on non-x86 platforms
(where i8042.reset is 0).

>  
> -/*
> - * Reset the controller.
> - */
> -
> -	if (i8042_reset) {
> -		unsigned char param;
> +	i8042_controller_reset();
> +}
>  
> -		if (i8042_command(&param, I8042_CMD_CTL_TEST))
> -			printk(KERN_ERR "i8042.c: i8042 controller reset timeout.\n");
> -	}


This actually introduces a bug, because we don't want to restore the CTR
setting before we save it, which the new code does.

> @@ -809,7 +826,7 @@
>  	if (i8042_mux_present)
>  		if (i8042_enable_mux_mode(&i8042_aux_values, NULL) ||
>  		    i8042_enable_mux_ports(&i8042_aux_values)) {
> -			printk(KERN_WARNING "i8042: failed to resume active multiplexor, mouse won't wotk.\n");
> +			printk(KERN_WARNING "i8042: failed to resume active multiplexor, mouse won't work.\n");

Ahh, a typo. :)

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  parent reply	other threads:[~2004-01-03 10:03 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-03  8:50 New set of input patches Dmitry Torokhov
2004-01-03  8:56 ` [PATCH 1/7] i8042 suspend Dmitry Torokhov
2004-01-03  8:57   ` [PATCH 2/7] i8042 option parsing Dmitry Torokhov
2004-01-03  9:00     ` [PATCH 3/7] psmouse " Dmitry Torokhov
2004-01-03  9:01       ` [PATCH 4/7] atkbd " Dmitry Torokhov
2004-01-03  9:02         ` [PATCH 5/7] missing module licenses Dmitry Torokhov
2004-01-03  9:03           ` [PATCH 6/7] Kconfig Synaptics help Dmitry Torokhov
2004-01-03  9:03             ` [PATCH 7/7] SiS AUX port Dmitry Torokhov
2004-03-29 15:39             ` Dmitry Torokhov
2004-03-29 15:39           ` [PATCH 6/7] Kconfig Synaptics help Dmitry Torokhov
2004-03-29 15:39         ` [PATCH 5/7] missing module licenses Dmitry Torokhov
2004-01-03 10:07       ` [PATCH 3/7] psmouse option parsing Vojtech Pavlik
2004-01-03 17:29         ` Dmitry Torokhov
2004-01-03 17:38           ` Vojtech Pavlik
2004-03-29 15:40           ` Vojtech Pavlik
2004-03-29 15:40         ` Dmitry Torokhov
2004-03-29 15:39       ` Vojtech Pavlik
2004-03-29 15:39       ` [PATCH 4/7] atkbd " Dmitry Torokhov
2004-03-29 15:39     ` [PATCH 3/7] psmouse " Dmitry Torokhov
2004-01-03 10:03   ` Vojtech Pavlik [this message]
2004-01-03 16:50     ` [PATCH 1/7] i8042 suspend Dmitry Torokhov
2004-03-29 15:40     ` Dmitry Torokhov
2004-01-18 19:23   ` Russell King
2004-01-18 22:42     ` Dmitry Torokhov
2004-03-29 15:39   ` Vojtech Pavlik
2004-03-29 15:39   ` [PATCH 2/7] i8042 option parsing Dmitry Torokhov
2004-01-03 10:10 ` New set of input patches Vojtech Pavlik
2004-01-05  5:59 ` Dmitry Torokhov
2004-01-05  6:01   ` [PATCH 1/3] Fix compile error in 98busmouse.c module Dmitry Torokhov
2004-01-05  6:02     ` [PATCH 2/3] Convert mouse drivers to use module_param Dmitry Torokhov
2004-01-05  6:03       ` [PATCH 3/3] Convert tsdev " Dmitry Torokhov
2004-03-29 15:44       ` Dmitry Torokhov
2004-03-29 15:44     ` [PATCH 2/3] Convert mouse drivers " Dmitry Torokhov
2004-01-05  8:36   ` New set of input patches Vojtech Pavlik
2004-03-29 15:44   ` [PATCH 1/3] Fix compile error in 98busmouse.c module Dmitry Torokhov
2004-03-29 15:44   ` New set of input patches Vojtech Pavlik
2004-03-29 15:39 ` [PATCH 1/7] i8042 suspend Dmitry Torokhov
2004-03-29 15:39 ` New set of input patches Vojtech Pavlik
2004-03-29 15:44 ` 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=20040103100347.GA499@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=akpm@osdl.org \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    /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.