Skip to content

Commit e7c310c

Browse files
Niels de VosLinus Torvalds
authored andcommitted
parport_pc: it887x fix
The IO port range requested by parport_pc.c:sio_ite_8872_probe is too small. The IO-ports of ttyS1 (0x2f8) will be missconfigured by the ITE-chip. The ITE starts looking for the chip a 0x2a0. An IO-portrange of 32 will not overwrite the ports of ttyS1. Therefore register 0x60 should be written with 0xe5000000, enabling the ITE and setting IO-portsize to 32 bytes. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f84d5a7 commit e7c310c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/parport/parport_pc.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,19 +2424,18 @@ static int __devinit sio_ite_8872_probe (struct pci_dev *pdev, int autoirq,
24242424
u32 ite8872set;
24252425
u32 ite8872_lpt, ite8872_lpthi;
24262426
u8 ite8872_irq, type;
2427-
char *fake_name = "parport probe";
24282427
int irq;
24292428
int i;
24302429

24312430
DPRINTK (KERN_DEBUG "sio_ite_8872_probe()\n");
24322431

24332432
// make sure which one chip
24342433
for(i = 0; i < 5; i++) {
2435-
base_res = request_region(inta_addr[i], 0x8, fake_name);
2434+
base_res = request_region(inta_addr[i], 32, "it887x");
24362435
if (base_res) {
24372436
int test;
24382437
pci_write_config_dword (pdev, 0x60,
2439-
0xe7000000 | inta_addr[i]);
2438+
0xe5000000 | inta_addr[i]);
24402439
pci_write_config_dword (pdev, 0x78,
24412440
0x00000000 | inta_addr[i]);
24422441
test = inb (inta_addr[i]);

0 commit comments

Comments
 (0)