Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/newsmips/apbus Avoid panic when polling is used.



details:   https://anonhg.NetBSD.org/src/rev/b158a6068e14
branches:  trunk
changeset: 513209:b158a6068e14
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Thu Jul 26 11:44:06 2001 +0000

description:
Avoid panic when polling is used.

diffstat:

 sys/arch/newsmips/apbus/spifi.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r fe2b9df7fea0 -r b158a6068e14 sys/arch/newsmips/apbus/spifi.c
--- a/sys/arch/newsmips/apbus/spifi.c   Thu Jul 26 11:40:26 2001 +0000
+++ b/sys/arch/newsmips/apbus/spifi.c   Thu Jul 26 11:44:06 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spifi.c,v 1.3 2001/04/26 15:52:00 tsubai Exp $ */
+/*     $NetBSD: spifi.c,v 1.4 2001/07/26 11:44:06 tsubai Exp $ */
 
 /*-
  * Copyright (c) 2000 Tsubai Masanari.  All rights reserved.
@@ -316,6 +316,9 @@
 
        printf("spifi_poll: not implemented yet\n");
        delay(10000);
+       scb->status = SCSI_OK;
+       scb->resid = 0;
+       spifi_done(sc);
        return 0;
 
        if (xs == NULL)



Home | Main Index | Thread Index | Old Index