]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/qla2xxx/qla_init.c
scsi: qla2xxx: Add FC-NVMe F/W initialization and transport registration
[karo-tx-linux.git] / drivers / scsi / qla2xxx / qla_init.c
index ed898b7a32c809720453bd17d105eb7bb0df2256..d06c3c758322df6ba280a77a74f76fafc307cd07 100644 (file)
@@ -4520,6 +4520,11 @@ qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport)
        fcport->deleted = 0;
        fcport->logout_on_delete = 1;
 
+       if (fcport->fc4f_nvme) {
+               qla_nvme_register_remote(vha, fcport);
+               return;
+       }
+
        qla2x00_set_fcport_state(fcport, FCS_ONLINE);
        qla2x00_iidma_fcport(vha, fcport);
        qla24xx_update_fcport_fcp_prio(vha, fcport);
@@ -4669,6 +4674,9 @@ qla2x00_configure_fabric(scsi_qla_host_t *vha)
                        break;
        } while (0);
 
+       if (!vha->nvme_local_port && vha->flags.nvme_enabled)
+               qla_nvme_register_hba(vha);
+
        if (rval)
                ql_dbg(ql_dbg_disc, vha, 0x2068,
                    "Configure fabric error exit rval=%d.\n", rval);