scsi: hisi_sas: Feed back linkrate(max/min) when re-attached
authorLuo Jiaxing <luojiaxing@huawei.com>
Mon, 24 Sep 2018 15:06:28 +0000 (23:06 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 04:27:03 +0000 (00:27 -0400)
commit5a54691f874ab29ec82f08bc6936866a3ccdaa91
treee45416fb49b51c8b770536732712e67cda4fdcda
parent38fe73cc2c96fbc9942b07220f2a4f1bab37392d
scsi: hisi_sas: Feed back linkrate(max/min) when re-attached

At directly attached situation, if the user modifies the sysfs interface
of maximum_linkrate and minimum_linkrate to renegotiate the linkrate
between SAS controller and target, the value of both files mentioned
above should have change to user setting after renegotiate is over, but
it remains unchanged.

To fix this bug, maximum_linkrate and minimum_linkrate will be directly
fed back to relevant sas_phy structure.

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