Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: Revert "scsi: hisi_sas: Filter out new PHY up events during suspend"

This reverts commit b14a37e011d829404c29a5ae17849d7efb034893.

In that commit, we had to filter out phy-up events during suspend, as it
work cause a deadlock between processing the phyup event and the resume HA
function try to drain the HA event workqueue to complete the resume
process.

Now that we no longer try to drain the HA event queue during the HA resume
processor, the deadlock would not occur, so remove the special handling for
it.

Link: https://lore.kernel.org/r/1639999298-244569-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

John Garry and committed by
Martin K. Petersen
6cc73908 fbefe228

-6
-6
drivers/scsi/hisi_sas/hisi_sas_main.c
··· 611 611 if (!phy->phy_attached) 612 612 return; 613 613 614 - if (test_bit(HISI_SAS_PM_BIT, &hisi_hba->flags) && 615 - !sas_phy->suspended) { 616 - dev_warn(hisi_hba->dev, "phy%d during suspend filtered out\n", phy_no); 617 - return; 618 - } 619 - 620 614 sas_notify_phy_event(sas_phy, PHYE_OOB_DONE, gfp_flags); 621 615 622 616 if (sas_phy->phy) {