Lines 564-570
Link Here
|
564 |
|
564 |
|
565 |
if (request_irq(values->irq, i8042_interrupt, SA_SHIRQ, |
565 |
if (request_irq(values->irq, i8042_interrupt, SA_SHIRQ, |
566 |
"i8042", &i8042_check_aux_cookie)) |
566 |
"i8042", &i8042_check_aux_cookie)) |
|
|
567 |
{ |
568 |
printk(KERN_INFO "i8042.c: AUX IRQ not available\n"); |
567 |
return -1; |
569 |
return -1; |
|
|
570 |
} |
568 |
free_irq(values->irq, &i8042_check_aux_cookie); |
571 |
free_irq(values->irq, &i8042_check_aux_cookie); |
569 |
|
572 |
|
570 |
/* |
573 |
/* |
Lines 579-587
Link Here
|
579 |
* though it has an AUX port. |
582 |
* though it has an AUX port. |
580 |
*/ |
583 |
*/ |
581 |
|
584 |
|
|
|
585 |
/* Removed for e-machines laptop |
586 |
|
582 |
param = 0x5a; |
587 |
param = 0x5a; |
583 |
if (i8042_command(¶m, I8042_CMD_AUX_LOOP) || param != 0xa5) { |
588 |
if (i8042_command(¶m, I8042_CMD_AUX_LOOP) || param != 0xa5) { |
584 |
|
589 |
*/ |
585 |
/* |
590 |
/* |
586 |
* External connection test - filters out AT-soldered PS/2 i8042's |
591 |
* External connection test - filters out AT-soldered PS/2 i8042's |
587 |
* 0x00 - no error, 0x01-0x03 - clock/data stuck, 0xff - general error |
592 |
* 0x00 - no error, 0x01-0x03 - clock/data stuck, 0xff - general error |
Lines 589-600
Link Here
|
589 |
* Because it's common for chipsets to return error on perfectly functioning |
594 |
* Because it's common for chipsets to return error on perfectly functioning |
590 |
* AUX ports, we test for this only when the LOOP command failed. |
595 |
* AUX ports, we test for this only when the LOOP command failed. |
591 |
*/ |
596 |
*/ |
|
|
597 |
|
598 |
/* Removed for e-machines laptop |
592 |
|
599 |
|
593 |
if (i8042_command(¶m, I8042_CMD_AUX_TEST) |
600 |
if (i8042_command(¶m, I8042_CMD_AUX_TEST) |
594 |
|| (param && param != 0xfa && param != 0xff)) |
601 |
|| (param && param != 0xfa && param != 0xff)) |
595 |
return -1; |
602 |
{ |
|
|
603 |
printk(KERN_INFO "i8042.c: AUX failed loopback/connection test<n"); |
604 |
return -1; |
605 |
} |
596 |
} |
606 |
} |
597 |
|
607 |
*/ |
598 |
/* |
608 |
/* |
599 |
* Bit assignment test - filters out PS/2 i8042's in AT mode |
609 |
* Bit assignment test - filters out PS/2 i8042's in AT mode |
600 |
*/ |
610 |
*/ |