i8042.c (011d89d6066592a67253df81905ace358968dacc) | i8042.c (8226a3e99f1c1e7ded648721d1e16118453761e5) |
---|---|
1/* 2 * (C) Copyright 2002 ELTEC Elektronik AG 3 * Frank Gottschling <fgottschling@eltec.de> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8/* i8042.c - Intel 8042 keyboard driver routines */ --- 120 unchanged lines hidden (view full) --- 129 goto err; 130 131 /* keyboard reset */ 132 if (kbd_write(I8042_DATA_REG, CMD_RESET_KBD) || 133 kbd_read(I8042_DATA_REG) != KBD_ACK || 134 kbd_read(I8042_DATA_REG) != KBD_POR) 135 goto err; 136 | 1/* 2 * (C) Copyright 2002 ELTEC Elektronik AG 3 * Frank Gottschling <fgottschling@eltec.de> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8/* i8042.c - Intel 8042 keyboard driver routines */ --- 120 unchanged lines hidden (view full) --- 129 goto err; 130 131 /* keyboard reset */ 132 if (kbd_write(I8042_DATA_REG, CMD_RESET_KBD) || 133 kbd_read(I8042_DATA_REG) != KBD_ACK || 134 kbd_read(I8042_DATA_REG) != KBD_POR) 135 goto err; 136 |
137 if (kbd_write(I8042_DATA_REG, CMD_DRAIN_OUTPUT) || 138 kbd_read(I8042_DATA_REG) != KBD_ACK) 139 goto err; 140 |
|
137 /* set AT translation and disable irq */ 138 config = kbd_cmd_read(CMD_RD_CONFIG); 139 if (config == -1) 140 goto err; 141 142 /* Sometimes get a second byte */ 143 else if ((quirk & QUIRK_DUP_POR) && config == KBD_POR) 144 config = kbd_cmd_read(CMD_RD_CONFIG); --- 206 unchanged lines hidden --- | 141 /* set AT translation and disable irq */ 142 config = kbd_cmd_read(CMD_RD_CONFIG); 143 if (config == -1) 144 goto err; 145 146 /* Sometimes get a second byte */ 147 else if ((quirk & QUIRK_DUP_POR) && config == KBD_POR) 148 config = kbd_cmd_read(CMD_RD_CONFIG); --- 206 unchanged lines hidden --- |