linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libata: waiting for the drives to settle
@ 2009-08-20  9:40 Andrei Martynov
  2009-08-20 15:55 ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Andrei Martynov @ 2009-08-20  9:40 UTC (permalink / raw)
  To: linux-ide

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@web.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-02  8:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20  9:40 libata: waiting for the drives to settle Andrei Martynov
2009-08-20 15:55 ` Jeff Garzik
2009-08-21  7:56   ` Re[2]: " Andrei Martynov
2009-08-22 16:13     ` Jeff Garzik
2009-09-02  8:51       ` Re[2]: " Andrei Martynov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).