Module Name:    src
Committed By:   nat
Date:           Fri Nov 22 07:23:04 UTC 2024

Modified Files:
        src/sys/arch/mac68k/dev: sbc.c

Log Message:
This delay is no longer necessary.

The delays throught the code were there to ensure error free transfers.  This
has been fixed in an eariler commit today by serializing the drq interrupt.

Part of PR kern/58452.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/mac68k/dev/sbc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/dev/sbc.c
diff -u src/sys/arch/mac68k/dev/sbc.c:1.65 src/sys/arch/mac68k/dev/sbc.c:1.66
--- src/sys/arch/mac68k/dev/sbc.c:1.65	Fri Nov 22 07:20:05 2024
+++ src/sys/arch/mac68k/dev/sbc.c	Fri Nov 22 07:23:04 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: sbc.c,v 1.65 2024/11/22 07:20:05 nat Exp $	*/
+/*	$NetBSD: sbc.c,v 1.66 2024/11/22 07:23:04 nat Exp $	*/
 
 /*
  * Copyright (C) 1996 Scott Reynolds.  All rights reserved.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbc.c,v 1.65 2024/11/22 07:20:05 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbc.c,v 1.66 2024/11/22 07:23:04 nat Exp $");
 
 #include "opt_ddb.h"
 
@@ -512,7 +512,6 @@ sbc_drq_intr(void *p)
 #undef W1
 			dh->dh_addr += dcount;
 			dh->dh_len -= dcount;
-			DELAY(100);
 		}
 
 		/*
@@ -543,7 +542,6 @@ sbc_drq_intr(void *p)
 #undef W1
 			dh->dh_len -= dcount;
 			dh->dh_addr += dcount;
-			DELAY(100);
 		}
 		dh->dh_flags |= SBC_DH_DONE;
 		if (dcount >= MAX_DMA_LEN)
@@ -576,7 +574,6 @@ sbc_drq_intr(void *p)
 			}
 			dh->dh_addr += dcount;
 			dh->dh_len -= dcount;
-			DELAY(100);
 		}
 
 		/*
@@ -604,7 +601,6 @@ sbc_drq_intr(void *p)
 			}
 			dh->dh_len -= dcount;
 			dh->dh_addr += dcount;
-			DELAY(100);
 		}
 		dh->dh_flags |= SBC_DH_DONE;
 	}

Reply via email to