Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147927
b: refs/heads/master
c: a20b2a4
h: refs/heads/master
i:
  147925: 5377195
  147923: 7e660f2
  147919: 760ae25
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jun 8, 2009
1 parent 41d4af6 commit 09a4755
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75c2d7d71a85d02594da07d5d2ad587451b64b02
refs/heads/master: a20b2a44eca52818ef52a94959480b7e6ea2f528
12 changes: 9 additions & 3 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,14 @@ static int ide_probe_port(ide_hwif_t *hwif)
if (irqd)
disable_irq(hwif->irq);

if (ide_port_wait_ready(hwif) == -EBUSY)
printk(KERN_DEBUG "%s: Wait for ready failed before probe !\n", hwif->name);
rc = ide_port_wait_ready(hwif);
if (rc == -ENODEV) {
printk(KERN_INFO "%s: no devices on the port\n", hwif->name);
goto out;
} else if (rc == -EBUSY)
printk(KERN_ERR "%s: not ready before the probe\n", hwif->name);
else
rc = -ENODEV;

/*
* Second drive should only exist if first drive was found,
Expand All @@ -714,7 +720,7 @@ static int ide_probe_port(ide_hwif_t *hwif)
if (drive->dev_flags & IDE_DFLAG_PRESENT)
rc = 0;
}

out:
/*
* Use cached IRQ number. It might be (and is...) changed by probe
* code above
Expand Down

0 comments on commit 09a4755

Please sign in to comment.