scsi: hisi_sas: Introduce hisi_sas_phy_set_linkrate()
authorJohn Garry <john.garry@huawei.com>
Mon, 21 May 2018 10:09:13 +0000 (18:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 02:40:31 +0000 (22:40 -0400)
commit757db2dae2c79b1f713043fcc13542683963fa82
tree729057109aa8fd2da7565b9daf6aa95d42b8a4a9
parenteb217359ebeae7b9ac51045d50f7a516925bc5c2
scsi: hisi_sas: Introduce hisi_sas_phy_set_linkrate()

There is much common code and functionality between the HW versions to set
the PHY linkrate.

As such, this patch factors out the common code into a generic function
hisi_sas_phy_set_linkrate().

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
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c