]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit69f4ec1edb136d2d2511d1ef96f94ef0aeecefdf
treea75178ee2aa62d36196316cf1a370f516e0891fb
parentb14a37e011d829404c29a5ae17849d7efb034893
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