summaryrefslogtreecommitdiff
path: root/drivers/scsi/csiostor/csio_hw.c
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2017-07-31 19:32:55 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-17 03:01:30 +0300
commit82f0fd06d4a84ff32cc2cf9503764219316ec728 (patch)
tree475ee06bd08a47c9f633fc24e404c6ddfc04a302 /drivers/scsi/csiostor/csio_hw.c
parent61f0c3c7a0fd37f252b0f23c237973ddf4c21ea7 (diff)
downloadlinux-82f0fd06d4a84ff32cc2cf9503764219316ec728.tar.xz
scsi: csiostor: fail probe if fw does not support FCoE
Fail probe if FCoE capability is not enabled in the firmware. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor/csio_hw.c')
-rw-r--r--drivers/scsi/csiostor/csio_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c
index 2029ad225121..5be0086142ca 100644
--- a/drivers/scsi/csiostor/csio_hw.c
+++ b/drivers/scsi/csiostor/csio_hw.c
@@ -3845,8 +3845,10 @@ csio_hw_start(struct csio_hw *hw)
if (csio_is_hw_ready(hw))
return 0;
- else
+ else if (csio_match_state(hw, csio_hws_uninit))
return -EINVAL;
+ else
+ return -ENODEV;
}
int