aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fcs_rport.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs_rport.c')
-rw-r--r--drivers/scsi/bfa/bfa_fcs_rport.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c
index 58ac643ba9f3..2035b0d64351 100644
--- a/drivers/scsi/bfa/bfa_fcs_rport.c
+++ b/drivers/scsi/bfa/bfa_fcs_rport.c
@@ -189,8 +189,8 @@ bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, enum rport_event event)
189 break; 189 break;
190 190
191 case RPSM_EVENT_PLOGI_RCVD: 191 case RPSM_EVENT_PLOGI_RCVD:
192 bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); 192 bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending);
193 bfa_fcs_rport_fcs_online_action(rport); 193 bfa_fcs_rport_send_plogiacc(rport, NULL);
194 break; 194 break;
195 195
196 case RPSM_EVENT_PLOGI_COMP: 196 case RPSM_EVENT_PLOGI_COMP:
@@ -2577,7 +2577,7 @@ bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport, struct fc_logi_s *plogi)
2577 2577
2578 port->fabric->bb_credit = be16_to_cpu(plogi->csp.bbcred); 2578 port->fabric->bb_credit = be16_to_cpu(plogi->csp.bbcred);
2579 bfa_fcport_set_tx_bbcredit(port->fcs->bfa, 2579 bfa_fcport_set_tx_bbcredit(port->fcs->bfa,
2580 port->fabric->bb_credit, 0); 2580 port->fabric->bb_credit);
2581 } 2581 }
2582 2582
2583} 2583}
@@ -3430,9 +3430,10 @@ bfa_fcs_rpf_rpsc2_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg,
3430 num_ents = be16_to_cpu(rpsc2_acc->num_pids); 3430 num_ents = be16_to_cpu(rpsc2_acc->num_pids);
3431 bfa_trc(rport->fcs, num_ents); 3431 bfa_trc(rport->fcs, num_ents);
3432 if (num_ents > 0) { 3432 if (num_ents > 0) {
3433 WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid); 3433 WARN_ON(be32_to_cpu(rpsc2_acc->port_info[0].pid) !=
3434 bfa_ntoh3b(rport->pid));
3434 bfa_trc(rport->fcs, 3435 bfa_trc(rport->fcs,
3435 be16_to_cpu(rpsc2_acc->port_info[0].pid)); 3436 be32_to_cpu(rpsc2_acc->port_info[0].pid));
3436 bfa_trc(rport->fcs, 3437 bfa_trc(rport->fcs,
3437 be16_to_cpu(rpsc2_acc->port_info[0].speed)); 3438 be16_to_cpu(rpsc2_acc->port_info[0].speed));
3438 bfa_trc(rport->fcs, 3439 bfa_trc(rport->fcs,