linux/drivers/scsi/hisi_sas
Luo Jiaxing caeddc0453 scsi: hisi_sas: Do not modify upper fields of PROG_PHY_LINK_RATE reg
When updating PROG_PHY_LINK_RATE to set linkrate for a phy we used a
hard-coded initial value instead of getting the current value from the
register. The assumption was that this register would not be modified, but
in fact it was partially modified in a new version of hardware. The
hard-coded value we used changed the default value of the register to a an
incorrect setting and as a result the SAS controller could not change
linkrate for the phy.

Delete hard-coded value and always read the latest value of register before
updating it.

Link: https://lore.kernel.org/r/1598958790-232272-4-git-send-email-john.garry@huawei.com
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>
2020-09-02 22:49:08 -04:00
..
hisi_sas_main.c scsi: hisi_sas: Avoid accessing to SSP task for SMP I/Os 2020-09-02 22:49:07 -04:00
hisi_sas_v1_hw.c SCSI misc on 20200806 2020-08-06 16:50:07 -07:00
hisi_sas_v2_hw.c SCSI misc on 20200806 2020-08-06 16:50:07 -07:00
hisi_sas_v3_hw.c scsi: hisi_sas: Do not modify upper fields of PROG_PHY_LINK_RATE reg 2020-09-02 22:49:08 -04:00
hisi_sas.h scsi: hisi_sas: Rename hisi_sas_cq.pci_irq_mask 2020-01-20 19:31:14 -05:00
Kconfig scsi: hisi_sas: Fix build error without SATA_HOST 2020-04-13 13:28:13 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00