From: Bartlomiej Zolnierkiewicz Date: Mon, 28 Apr 2008 21:44:39 +0000 (+0200) Subject: ide-{floppy,tape,scsi}: 400ns delay is required after executing the command X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3910dde6410e742f8bd3f516ee9b1a7114abbad0;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git ide-{floppy,tape,scsi}: 400ns delay is required after executing the command Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index b9983c4a1fac..da79248633a4 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c @@ -698,6 +698,7 @@ static ide_startstop_t idefloppy_issue_pc(ide_drive_t *drive, /* Issue the packet command */ hwif->OUTBSYNC(drive, WIN_PACKETCMD, hwif->io_ports.command_addr); + ndelay(400); return (*pkt_xfer_routine) (drive); } } diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index f3f231de1835..dc88431a2359 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -1058,6 +1058,7 @@ static ide_startstop_t idetape_issue_pc(ide_drive_t *drive, } else { hwif->OUTBSYNC(drive, WIN_PACKETCMD, hwif->io_ports.command_addr); + ndelay(400); return idetape_transfer_pc(drive); } } diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 8f716da5b7de..8b1c783e259b 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c @@ -576,6 +576,7 @@ static ide_startstop_t idescsi_issue_pc(ide_drive_t *drive, /* Issue the packet command */ hwif->OUTBSYNC(drive, WIN_PACKETCMD, hwif->io_ports.command_addr); + ndelay(400); return idescsi_transfer_pc(drive); } }