]> 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)
commit84ff676a99877e3ee77786b55cb21f5d7c9f86f6
treea75178ee2aa62d36196316cf1a370f516e0891fb
parent27041326d5cd527cc3538abc8dd2f28ef2d87e42
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