It's perfectly normal for an older (e.g. pre SCSI-2) device to send

MESSAGE_REJECT in response to SDTR or WDTR.  Because of this, the
printfs that indicate refusal of sync/wide negotiation are unneeded
in normal operation.  In the __NetBSD__ case, disable them by default.
They, like the other extra-verbose ahc driver boot messages, may be
reenabled with "options DEBUG".  The behavior in the !__NetBSD__ case
is unchanged.
This commit is contained in:
thorpej 1997-06-09 01:51:03 +00:00
parent e78f8ce7da
commit da1b5f9021

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic7xxx.c,v 1.23 1997/04/10 02:48:38 cgd Exp $ */ /* $NetBSD: aic7xxx.c,v 1.24 1997/06/09 01:51:03 thorpej Exp $ */
/* /*
* Generic driver for the aic7xxx based adaptec SCSI controllers * Generic driver for the aic7xxx based adaptec SCSI controllers
@ -1539,18 +1539,22 @@ ahc_handle_seqint(ahc, intstat)
targ_scratch &= 0x7f; targ_scratch &= 0x7f;
ahc->needwdtr &= ~targ_mask; ahc->needwdtr &= ~targ_mask;
ahc->wdtrpending &= ~targ_mask; ahc->wdtrpending &= ~targ_mask;
#if !defined(__NetBSD__) || defined(DEBUG)
printf("%s:%c:%d: refuses WIDE negotiation. Using " printf("%s:%c:%d: refuses WIDE negotiation. Using "
"8bit transfers\n", ahc_name(ahc), "8bit transfers\n", ahc_name(ahc),
channel, target); channel, target);
#endif
} else if(ahc->sdtrpending & targ_mask){ } else if(ahc->sdtrpending & targ_mask){
/* note asynch xfers and clear flag */ /* note asynch xfers and clear flag */
targ_scratch &= 0xf0; targ_scratch &= 0xf0;
ahc->needsdtr &= ~targ_mask; ahc->needsdtr &= ~targ_mask;
ahc->sdtrpending &= ~targ_mask; ahc->sdtrpending &= ~targ_mask;
#if !defined(__NetBSD__) || defined(DEBUG)
printf("%s:%c:%d: refuses synchronous negotiation. " printf("%s:%c:%d: refuses synchronous negotiation. "
"Using asynchronous transfers\n", "Using asynchronous transfers\n",
ahc_name(ahc), ahc_name(ahc),
channel, target); channel, target);
#endif
} else { } else {
/* /*
* Otherwise, we ignore it. * Otherwise, we ignore it.