• Bartlomiej Zolnierkiewicz's avatar
    [ide] ide-cd: fix possible race in PIO mode · 887ec439
    Bartlomiej Zolnierkiewicz authored
    From: Alan Cox <alan@lxorguk.ukuu.org.uk>
    
    When we issue an ide command the status bits don't become valid for
    400nS. In the DMA case ide_execute_command handles this but in the PIO
    case we don't do the needed locking, use OUTBSYNC to avoid posting or
    delay. This means that in some situations we can execute the command
    handler in PIO mode before the command status bits are valid and the
    handler may read and act wrongly.
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    887ec439
ide-cd.c 101 KB