Commit 76ee471f authored by 薛德章's avatar 薛德章

Add logic for wait_hwif_ready, Skip needless hwif probe. fix bug 4678

To avoid waste time on needless hwif probe, add logic for wait_hwif_ready
function: if all drives in a HW interface was marked as "noprobe", then
skip the HW interface probe.
parent 39f0d8af
...@@ -644,6 +644,16 @@ static int wait_hwif_ready(ide_hwif_t *hwif) ...@@ -644,6 +644,16 @@ static int wait_hwif_ready(ide_hwif_t *hwif)
{ {
int rc; int rc;
unsigned int unit; unsigned int unit;
unsigned int hw_noprobe_flag=1;
for(unit = 0;unit < MAX_DRIVES; unit++) {
if(hwif->drives[unit].noprobe == 0) {
hw_noprobe_flag = 0;
break;
}
}
if(hw_noprobe_flag == 1)
return -EBUSY;
printk(KERN_DEBUG "Probing IDE interface %s...\n", hwif->name); printk(KERN_DEBUG "Probing IDE interface %s...\n", hwif->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment