summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-11-30 21:41:56 +0000
committermav <mav@FreeBSD.org>2015-11-30 21:41:56 +0000
commit9ab138f53b20aa568905a01cacb0b0f501708463 (patch)
treea06cfc43cf7d0b01aa88808da7e6d560a98f0b25
parenteb19e0a9bf6a52676dc0981bba512ea686abbf62 (diff)
downloadFreeBSD-src-9ab138f53b20aa568905a01cacb0b0f501708463.zip
FreeBSD-src-9ab138f53b20aa568905a01cacb0b0f501708463.tar.gz
MFC r291099: Some cosmetics for ancient cards.
-rw-r--r--sys/dev/isp/isp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 09dc433..8f8d6ae 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -2508,7 +2508,7 @@ isp_port_login(ispsoftc_t *isp, uint16_t handle, uint32_t portid)
switch (mbs.param[0]) {
case MBOX_PORT_ID_USED:
- isp_prt(isp, ISP_LOG_SANCFG|ISP_LOG_WARN1, "isp_port_login: portid 0x%06x already logged in as %u", portid, mbs.param[1]);
+ isp_prt(isp, ISP_LOG_SANCFG|ISP_LOG_WARN1, "isp_port_login: portid 0x%06x already logged in as 0x%x", portid, mbs.param[1]);
return (MBOX_PORT_ID_USED | (mbs.param[1] << 16));
case MBOX_LOOP_ID_USED:
@@ -5697,8 +5697,12 @@ isp_parse_async_fc(ispsoftc_t *isp, uint16_t mbox)
{
int echan, nphdl, nlstate, reason;
- nphdl = ISP_READ(isp, OUTMAILBOX1);
- nlstate = ISP_READ(isp, OUTMAILBOX2);
+ if (IS_23XX(isp) || IS_24XX(isp)) {
+ nphdl = ISP_READ(isp, OUTMAILBOX1);
+ nlstate = ISP_READ(isp, OUTMAILBOX2);
+ } else {
+ nphdl = nlstate = 0xffff;
+ }
if (IS_24XX(isp))
reason = ISP_READ(isp, OUTMAILBOX3) >> 8;
else
OpenPOWER on IntegriCloud