lkml.org 
[lkml]   [2004]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ide-cd problem
On Tue, Nov 23 2004, Jeff Garzik wrote:
> Jens Axboe wrote:
> > /* packet command */
> >- HWIF(drive)->OUTB(WIN_PACKETCMD, IDE_COMMAND_REG);
> >+ spin_lock_irqsave(&ide_lock, flags);
> >+ HWIF(drive)->OUTBSYNC(drive, WIN_PACKETCMD, IDE_COMMAND_REG);
> >+ ndelay(400);
> >+ spin_unlock_irqrestore(&ide_lock, flags);
> > return (*handler) (drive);
>
>
> FWIW this ndelay(400) is required by the spec, when you submit a command.

Yes, I know it isn't pulled out of thin air :)

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.078 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site