summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-10-29 20:34:01 +0000
committermav <mav@FreeBSD.org>2015-10-29 20:34:01 +0000
commit299c4c1e5d21111f2fa07b2cd7dcb1a7ed3c578e (patch)
tree6f8babe4e3e259ad90b7a8fb200fb3780a703757 /sys/dev/isp
parentc76e236063916d2db5131eb63d7f6af3d131cc23 (diff)
downloadFreeBSD-src-299c4c1e5d21111f2fa07b2cd7dcb1a7ed3c578e.zip
FreeBSD-src-299c4c1e5d21111f2fa07b2cd7dcb1a7ed3c578e.tar.gz
Remove reset delays for which I see neither explanation nor need.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp.c32
1 files changed, 7 insertions, 25 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index fb8e717..2ca5504 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -1011,33 +1011,15 @@ isp_reset(ispsoftc_t *isp, int do_load_defaults)
}
}
- /*
- * Give it a chance to finish starting up.
- * Give the 24XX more time.
- */
- if (IS_24XX(isp)) {
- ISP_DELAY(500000);
+ if (IS_SCSI(isp)) {
/*
- * Check to see if the 24XX firmware really started.
+ * Set CLOCK RATE, but only if asked to.
*/
- if (mbs.param[1] == 0xdead) {
- isp_prt(isp, ISP_LOGERR, "f/w didn't *really* start");
- ISP_RESET0(isp);
- return;
- }
- } else {
- ISP_DELAY(250000);
- if (IS_SCSI(isp)) {
- /*
- * Set CLOCK RATE, but only if asked to.
- */
- if (isp->isp_clock) {
- mbs.param[0] = MBOX_SET_CLOCK_RATE;
- mbs.param[1] = isp->isp_clock;
- mbs.logval = MBLOGNONE;
- isp_mboxcmd(isp, &mbs);
- /* we will try not to care if this fails */
- }
+ if (isp->isp_clock) {
+ MBSINIT(&mbs, MBOX_SET_CLOCK_RATE, MBLOGALL, 0);
+ mbs.param[1] = isp->isp_clock;
+ isp_mboxcmd(isp, &mbs);
+ /* we will try not to care if this fails */
}
}
OpenPOWER on IntegriCloud