]> git.baikalelectronics.ru Git - kernel.git/commit
hisi_sas: use device linkrate in MCR for v2 hw
authorJohn Garry <john.garry@huawei.com>
Fri, 8 Apr 2016 09:23:11 +0000 (17:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:15 +0000 (16:53 -0400)
commitdfd8042e0dc159508ae36489ceb798f64d458a67
treed3ab48abbdf22516380958453b3e2adfc98f2501
parent6e9a3ca032998390df0f281f5efaa4f9413b189c
hisi_sas: use device linkrate in MCR for v2 hw

Contrary to the field name, the MCR (max connection rate) in the ITCT
should hold the device linkrate (linkrate of the connected phy), and not
the max linkrate.

This fixes an issue seen where some SATA drives connected through an
expander which would not attach.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c