libata: waiting for the drives to settle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

what would be the right place in modern pata driver to implement the
following old code from function do_probe() in ide-probe.c ?

/*
 *  ColdFire platforms boot up so quick that most hard drives
 *  have not completed there own self tests. Pause here for
 *  a couple of seconds if it looks like there is a drive
 *  present...
 */
if (IN_BYTE(IDE_SELECT_REG) != drive->select.all) {
  printk("IDE: waiting for drives to settle...\n");
  for (rc = 0; (rc < 400); rc++) {
    SELECT_DRIVE(hwif,drive);
    ide_delay_50ms();
    if (IN_BYTE(IDE_SELECT_REG) == drive->select.all)
     break;
 }
}

It has to be executed once, so placing it into command handler is
probably not the right solution.
  

-- 
Best regards,
 Andrei                          mailto:andrei.martynov@xxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux