Revert "ide: skip probe if there are no devices on the port (v2)"

This reverts commit a20b2a44ec.

As requested by David Fries.  This makes CDROMs which are slave drives
on a ribbon without a master disappear and causes other similar kinds
of badness.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2010-03-28 18:58:28 -07:00
parent e4afb29fa3
commit 9ce41aed0d
1 changed files with 3 additions and 9 deletions

View File

@ -695,14 +695,8 @@ static int ide_probe_port(ide_hwif_t *hwif)
if (irqd) if (irqd)
disable_irq(hwif->irq); disable_irq(hwif->irq);
rc = ide_port_wait_ready(hwif); if (ide_port_wait_ready(hwif) == -EBUSY)
if (rc == -ENODEV) { printk(KERN_DEBUG "%s: Wait for ready failed before probe !\n", hwif->name);
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, * Second drive should only exist if first drive was found,
@ -713,7 +707,7 @@ static int ide_probe_port(ide_hwif_t *hwif)
if (drive->dev_flags & IDE_DFLAG_PRESENT) if (drive->dev_flags & IDE_DFLAG_PRESENT)
rc = 0; rc = 0;
} }
out:
/* /*
* Use cached IRQ number. It might be (and is...) changed by probe * Use cached IRQ number. It might be (and is...) changed by probe
* code above * code above