lkml.org 
[lkml]   [1999]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [TYPO] psaux detection in pre8
On 19 Jan 1999, Eloy A. Paris wrote:

> Hi,
>
> Mike Galbraith <mikeg@weiden.de> wrote:
>
> > It looks to me like there's a typo in pc_keyb.c line 747. I think
> > if (val == 0x5a && (status & KBD_STAT_MOUSE_OBF))
> > should be.
> > if (val != 0x5a && (status & KBD_STAT_MOUSE_OBF))
>
> I don't know if it is a typo but the maintainer of this piece of code
> told me to add these debugging printk's to pc_keyb.c:
>
> if (status & KBD_STAT_OBF) {
> + printk("kbd status reg: 0x%02x\n", status);
> val = inb(KBD_DATA_REG);
> + printk("got 0x%02x from kbd data reg.\n", val);
> if (val == 0x5a && (status & KBD_STAT_MOUSE_OBF)) {
> printk(KERN_INFO "Detected PS/2 Mouse Port.\n");
> retval = 1;
> }
> }
>
> I sent him the output of dmesg after booting with these printk's and
> it looks like there is a problem in the detection logic. Can you try
> thse printk and let us know what are the values of status and val?

Sure.

kbd status reg: 0x35
got 0xfe from kbd data reg.

-Mike


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:5.618 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site