lkml.org 
[lkml]   [2010]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Disable i8042 checks on Intel Apple Macs
On 01/25/2010 03:28 PM, Dmitry Torokhov wrote:
>
> /*
> * i8042_flush() flushes all data that may be in the keyboard and mouse
> * buffers
> * of the i8042 down the toilet.
> */
>
> static int i8042_flush(void)
> {
> unsigned long flags;
> unsigned char data, str;
> int i = 0;
>
> spin_lock_irqsave(&i8042_lock, flags);
>
> while (((str = i8042_read_status()) & I8042_STR_OBF) && (i < I8042_BUFFER_SIZE)) {
> udelay(50);
> data = i8042_read_data();
> i++;
> dbg("%02x <- i8042 (flush, %s)", data,
> str & I8042_STR_AUXDATA ? "aux" : "kbd");
> }
>
> spin_unlock_irqrestore(&i8042_lock, flags);
>
> return i;
> }
>

Given that I would say it's pretty safe to say the A20 code doesn't get
executed on these boxes, so I don't think there is anything I can add
here, unfortunately.

-hpa


\
 
 \ /
  Last update: 2010-01-26 00:35    [W:0.051 / U:23.928 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site