diff options
author | James Smart <jsmart2021@gmail.com> | 2018-05-24 21:09:01 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-28 22:40:33 -0400 |
commit | b92dc72df3c6b46d2d085b56dcc764f798323e7c (patch) | |
tree | 9be8033ca9a636a8265398d6bf8e5a43c5c3da72 /include/linux/libata.h | |
parent | c221768bd49a7423be57c00a56985c0e9c4122cd (diff) | |
download | linux-stable-b92dc72df3c6b46d2d085b56dcc764f798323e7c.tar.gz linux-stable-b92dc72df3c6b46d2d085b56dcc764f798323e7c.tar.bz2 linux-stable-b92dc72df3c6b46d2d085b56dcc764f798323e7c.zip |
scsi: lpfc: Fix port initialization failure.
The driver exits port setup after failing the lpfc_sli4_get_parameters
command (messages 0356, 2541, & 1412).
The older CNA adapters do not support the MBX command. In the past
the code was allowed to fail and continue on with initialization.
However a nvme change moved a closing bracket and now makes all
failures terminal.
Revise the logic so that terminal failure only occurs if the command
failed on the newer adapters. Additionally, if parameters are set
that require information from the command and the command failed,
the parameters are erroneous and port set up should fail even on
the older adapters.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/libata.h')
0 files changed, 0 insertions, 0 deletions