Module Name: src
Committed By: nat
Date: Fri Nov 22 07:27:17 UTC 2024
Modified Files:
src/sys/arch/mac68k/dev: sbc.c
Log Message:
Make writing of dummy byte conditional.
This is insurance against devices that do not leave ACK hanging at the end of
each transfer.
Final part of PR kern/58452.
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 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.66 src/sys/arch/mac68k/dev/sbc.c:1.67
--- src/sys/arch/mac68k/dev/sbc.c:1.66 Fri Nov 22 07:23:04 2024
+++ src/sys/arch/mac68k/dev/sbc.c Fri Nov 22 07:27:17 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: sbc.c,v 1.66 2024/11/22 07:23:04 nat Exp $ */
+/* $NetBSD: sbc.c,v 1.67 2024/11/22 07:27:17 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.66 2024/11/22 07:23:04 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbc.c,v 1.67 2024/11/22 07:27:17 nat Exp $");
#include "opt_ddb.h"
@@ -550,7 +550,8 @@ sbc_drq_intr(void *p)
* Write an extra byte to handle last ack.
* From NCR5380 Interface manual.
*/
- *drq = 0;
+ if (*ncr_sc->sci_csr & SCI_CSR_ACK)
+ *drq = 0;
/*
* XXX -- Read a byte from the SBC to trigger a /BERR.