-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
For those of you brave enough to use kernel-2.6.xx despite the random hangs...
- -- Ferris McCormick (P44646, MI) <[EMAIL PROTECTED]> Developer, Gentoo Linux (Sparc)
- ---------- Forwarded message ---------- Date: Thu, 21 Apr 2005 22:08:34 -0700 From: David S. Miller <[EMAIL PROTECTED]> To: Tomas Cernaj <[EMAIL PROTECTED]> Cc: [email protected], [email protected] Subject: Re: Weird Mouse Behaviour with 2.6
Ok, let's kill this bug already :-)
We were neglecting to invoke sunsu_change_speed() when first setting up the keyboard and mouse ports. That's why things were not working.
This should fix it and I'll push this upsteam.
[SPARC64]: In sunsu driver, make sure to fully init chip for kbd/ms
We were forgetting to call sunsu_change_speed(). The reason that replugging in the mouse cable "fixes things" is that causes a BREAK interrupt which in turn caused a call to sunsu_change_speed() which would get the chip setup properly.
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
- --- a/drivers/serial/sunsu.c 2005-04-20 10:17:40.000000000 -0700 +++ b/drivers/serial/sunsu.c 2005-04-21 22:01:41.000000000 -0700 @@ -1285,6 +1285,7 @@
static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
{
+ int quot, baud;
#ifdef CONFIG_SERIO
struct serio *serio;
#endif
@@ -1293,10 +1294,14 @@
up->port.type = PORT_UNKNOWN;
up->port.uartclk = (SU_BASE_BAUD * 16);- - if (up->su_type == SU_PORT_KBD)
+ if (up->su_type == SU_PORT_KBD) {
up->cflag = B1200 | CS8 | CLOCAL | CREAD;
- - else
+ baud = 1200;
+ } else {
up->cflag = B4800 | CS8 | CLOCAL | CREAD;
+ baud = 4800;
+ }
+ quot = up->port.uartclk / (16 * baud); sunsu_autoconfig(up);
if (up->port.type == PORT_UNKNOWN)
@@ -1337,6 +1342,8 @@
}
#endif+ sunsu_change_speed(&up->port, up->cflag, 0, quot);
+
sunsu_startup(&up->port);
return 0;
}
- -
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCaNjCQa6M3+I///cRAiKRAJ4qrL7D2n3nigrprd11NkZUoy5MPwCgnVLU T/dhxLX4j1qsxo0tcZpOcZw= =M3JV -----END PGP SIGNATURE----- -- [email protected] mailing list
