From 467ac38980af714fa225f508ea0934381616a017 Mon Sep 17 00:00:00 2001 From: deadwood Date: Tue, 3 Jun 2008 15:08:51 +0000 Subject: [PATCH] Added 400ns delay in ata_WaitBusyTO before read of device status. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@28870 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/common/ata.device/lowlevel.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/common/ata.device/lowlevel.c b/arch/common/ata.device/lowlevel.c index 3f351669e..0ba54bdd9 100644 --- a/arch/common/ata.device/lowlevel.c +++ b/arch/common/ata.device/lowlevel.c @@ -47,6 +47,7 @@ * 2008-05-18 T. Wiszkowski Replaced static C/H/S with more accurate calcs, should make HDTB and other tools see right capacity * 2008-05-19 T. Wiszkowski Updated ATA DMA handling and transfer wait operation to allow complete transfer before dma_StopDMA() * 2008-05-30 T. Wiszkowski Corrected CHS calculation for larger disks + * 2008-06-03 K. Smiechowicz Added 400ns delay in ata_WaitBusyTO before read of device status. */ /* * TODO: @@ -522,6 +523,13 @@ BOOL ata_WaitBusyTO(struct ata_Unit *unit, UWORD tout, BOOL irq) do { + + /* + * delay the check - this was found needed for some hardware + */ + + ata_400ns(); + /* * lets check if the drive is already good */ -- 2.11.4.GIT