mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 21:21:28 +00:00
qla2x00t-32gbit: Fix PRLI and PLOGI handling
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8351 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -465,7 +465,7 @@ void qla24xx_handle_adisc_event(scsi_qla_host_t *vha, struct event_arg *ea)
|
|||||||
fcport->fw_login_state, ea->rc, fcport->login_gen, ea->sp->gen2,
|
fcport->fw_login_state, ea->rc, fcport->login_gen, ea->sp->gen2,
|
||||||
fcport->rscn_gen, ea->sp->gen1, fcport->loop_id);
|
fcport->rscn_gen, ea->sp->gen1, fcport->loop_id);
|
||||||
|
|
||||||
if (ea->data[0] != MBS_COMMAND_COMPLETE) {
|
if (ea->rc != (MBS_COMMAND_COMPLETE & MBS_MASK)) {
|
||||||
ql_dbg(ql_dbg_disc, vha, 0x2066,
|
ql_dbg(ql_dbg_disc, vha, 0x2066,
|
||||||
"%s %s: adisc fail: post delete\n",
|
"%s %s: adisc fail: post delete\n",
|
||||||
__func__, wwn_to_str(ea->fcport->port_name));
|
__func__, wwn_to_str(ea->fcport->port_name));
|
||||||
@@ -1884,7 +1884,7 @@ qla24xx_async_abort_command(srb_t *sp)
|
|||||||
static void
|
static void
|
||||||
qla24xx_handle_prli_done_event(struct scsi_qla_host *vha, struct event_arg *ea)
|
qla24xx_handle_prli_done_event(struct scsi_qla_host *vha, struct event_arg *ea)
|
||||||
{
|
{
|
||||||
switch (ea->data[0]) {
|
switch (ea->rc | MBS_COMMAND_COMPLETE) {
|
||||||
case MBS_COMMAND_COMPLETE:
|
case MBS_COMMAND_COMPLETE:
|
||||||
ql_dbg(ql_dbg_disc, vha, 0x2118, "%s %d %s post gpdb\n",
|
ql_dbg(ql_dbg_disc, vha, 0x2118, "%s %d %s post gpdb\n",
|
||||||
__func__, __LINE__, wwn_to_str(ea->fcport->port_name));
|
__func__, __LINE__, wwn_to_str(ea->fcport->port_name));
|
||||||
@@ -1965,7 +1965,7 @@ qla24xx_handle_plogi_done_event(struct scsi_qla_host *vha, struct event_arg *ea)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ea->data[0]) {
|
switch (ea->rc | MBS_COMMAND_COMPLETE) {
|
||||||
case MBS_COMMAND_COMPLETE:
|
case MBS_COMMAND_COMPLETE:
|
||||||
/*
|
/*
|
||||||
* Driver must validate login state - If PRLI not complete,
|
* Driver must validate login state - If PRLI not complete,
|
||||||
|
|||||||
Reference in New Issue
Block a user