summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedf/qedf_main.c
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@cavium.com>2018-04-25 06:09:00 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-08 00:57:11 -0400
commit96673e1e224c8ecb44effc5aaf32455456b7c3e9 (patch)
treefd98a5846bb5eea87a69ed94aff31ce99cb99013 /drivers/scsi/qedf/qedf_main.c
parent65b7beca42a34b965602db4a1c06aa344cd62bc8 (diff)
downloadlinux-96673e1e224c8ecb44effc5aaf32455456b7c3e9.tar.bz2
scsi: qedf: If qed fails to enable MSI-X fail PCI probe
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf/qedf_main.c')
-rw-r--r--drivers/scsi/qedf/qedf_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 777ab14d2998..23849f56210b 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -2134,7 +2134,8 @@ static int qedf_setup_int(struct qedf_ctx *qedf)
QEDF_SIMD_HANDLER_NUM, qedf_simd_int_handler);
qedf->int_info.used_cnt = 1;
- return 0;
+ QEDF_ERR(&qedf->dbg_ctx, "Only MSI-X supported. Failing probe.\n");
+ return -EINVAL;
}
/* Main function for libfc frame reception */