aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-26 15:50:35 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-26 15:50:35 -0500
commit788d669736dd3d15195fea07bf97ec5a2e9f15e7 (patch)
tree76ebb3213c73556f0d9dc13faff21e7011244ff0 /drivers/ide
parentc53ea18dc29a1ac075119f651d6ac4386a549a34 (diff)
qd65xx: fix setup of QD6580 Control register
Control register of QD6580 should be setup before probing for devices. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/legacy/qd65xx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/legacy/qd65xx.c b/drivers/ide/legacy/qd65xx.c
index bba29df5f21d..1ec0e970f577 100644
--- a/drivers/ide/legacy/qd65xx.c
+++ b/drivers/ide/legacy/qd65xx.c
@@ -444,6 +444,8 @@ static int __init qd_probe(int base)
444 printk(KERN_DEBUG "qd6580: config=%#x, control=%#x, ID3=%u\n", 444 printk(KERN_DEBUG "qd6580: config=%#x, control=%#x, ID3=%u\n",
445 config, control, QD_ID3); 445 config, control, QD_ID3);
446 446
447 outb(QD_DEF_CONTR, QD_CONTROL_PORT);
448
447 if (control & QD_CONTR_SEC_DISABLED) { 449 if (control & QD_CONTR_SEC_DISABLED) {
448 /* secondary disabled */ 450 /* secondary disabled */
449 451
@@ -460,8 +462,6 @@ static int __init qd_probe(int base)
460 462
461 ide_device_add(idx, &qd65xx_port_info); 463 ide_device_add(idx, &qd65xx_port_info);
462 464
463 outb(QD_DEF_CONTR, QD_CONTROL_PORT);
464
465 return 1; 465 return 1;
466 } else { 466 } else {
467 ide_hwif_t *mate; 467 ide_hwif_t *mate;
@@ -487,8 +487,6 @@ static int __init qd_probe(int base)
487 487
488 ide_device_add(idx, &qd65xx_port_info); 488 ide_device_add(idx, &qd65xx_port_info);
489 489
490 outb(QD_DEF_CONTR, QD_CONTROL_PORT);
491
492 return 0; /* no other qd65xx possible */ 490 return 0; /* no other qd65xx possible */
493 } 491 }
494 } 492 }