Move a verbose printf before the first exit so we get a chance
to see what was there.
This commit is contained in:
parent
fce4fe318a
commit
313fe9e05d
@ -563,16 +563,16 @@ ata_generic_reset(struct ata_channel *ch)
|
||||
}
|
||||
}
|
||||
|
||||
if (bootverbose)
|
||||
ata_printf(ch, -1, "reset tp1 mask=%02x ostat0=%02x ostat1=%02x\n",
|
||||
mask, ostat0, ostat1);
|
||||
|
||||
/* if nothing showed up there is no need to get any further */
|
||||
/* SOS is that too strong?, we just might loose devices here XXX */
|
||||
ch->devices = 0;
|
||||
if (!mask)
|
||||
return;
|
||||
|
||||
if (bootverbose)
|
||||
ata_printf(ch, -1, "reset tp1 mask=%02x ostat0=%02x ostat1=%02x\n",
|
||||
mask, ostat0, ostat1);
|
||||
|
||||
/* reset (both) devices on this channel */
|
||||
ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_MASTER);
|
||||
DELAY(10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user