From d37162ca7abfccfbf48216b4a079c4984c70e5d2 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Tue, 18 Jul 2000 07:05:37 +0000 Subject: If debugging set, zero out an incoming response entry when we're done reading it (makes checking things easier). Before calling isp_notify_ack make sure we're at RUNSTATE- elsewise we can be responding to LIPs or SCSI bus resets before we've finished some of the wiring. --- sys/dev/isp/isp_target.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c index dfd38d52529a5..a099849cd0c0d 100644 --- a/sys/dev/isp/isp_target.c +++ b/sys/dev/isp/isp_target.c @@ -240,6 +240,9 @@ isp_target_notify(isp, vptr, optrp) rval = -1; break; } + if (isp_tdebug) { + MEMZERO(vptr, QENTRY_LEN); + } #undef atiop #undef at2iop #undef ctiop @@ -533,7 +536,8 @@ isp_target_async(isp, bus, event) isp->isp_name, event); break; } - isp_notify_ack(isp, NULL); + if (isp->isp_state == ISP_RUNSTATE) + isp_notify_ack(isp, NULL); } -- cgit v1.3