]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Recover PHY state according to the status before reset
authorXiang Chen <chenxiang66@hisilicon.com>
Fri, 2 Oct 2020 14:30:38 +0000 (22:30 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Oct 2020 00:47:06 +0000 (20:47 -0400)
commit5fb19b05936d9a30de84a11c136881f0d236125b
treea75178ee2aa62d36196316cf1a370f516e0891fb
parent71e69538c4395eff4dae1d9bcc56968df43c4663
scsi: hisi_sas: Recover PHY state according to the status before reset

Currently the PHY state is set according to the state of the PHYs after
reset. This is invalid as the PHYs are already re-initialized.

Set PHY state according to the state before the reset instead of after.

Link: https://lore.kernel.org/r/1601649038-25534-8-git-send-email-john.garry@huawei.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.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