scsi: libsas: Resume SAS host for phy reset or enable via sysfs
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 14 Jul 2022 18:23:22 +0000 (02:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Jul 2022 03:04:12 +0000 (23:04 -0400)
commit1e82e4627a795aa33af0309c8f526df09abad188
tree13e122799b2bca4a23a134b4a6da35a5dad2efc6
parent7e15334f5d256367fb4c77f4ee0003e1e3d9bf9d
scsi: libsas: Resume SAS host for phy reset or enable via sysfs

Currently if a phy reset or enable phy is issued via sysfs when controller
is suspended, those operations will be ignored as SAS_HA_REGISTERED is
cleared. If RPM is enabled then we may aggressively suspend automatically.
In this case it may be difficult to enable or reset a phy via sysfs, so
resume the host in these scenarios.

Link: https://lore.kernel.org/r/1657823002-139010-6-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/libsas/sas_init.c