scsi: hisi_sas: Reject setting programmed minimum linkrate > 1.5G
authorLuo Jiaxing <luojiaxing@huawei.com>
Fri, 25 Jan 2019 14:22:34 +0000 (22:22 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Jan 2019 06:41:20 +0000 (01:41 -0500)
commiteb44e4d7b5a3090f0114927f42ae575c29664a09
tree248d77831e9f8b700bff76d947050a97f9b29ba5
parentae68b566e0215b0e2ca6f4abf0dbf91e662e44e4
scsi: hisi_sas: Reject setting programmed minimum linkrate > 1.5G

The SAS controller cannot support a programmed minimum linkrate of > 1.5G
(it will always negotiate to 1.5G at least), so just reject it.

This solves a strange situation where the PHY negotiated linkrate may be
less than the programmed minimum linkrate.

Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c