Commit 97f41009 authored by Xiang Chen's avatar Xiang Chen Committed by Martin K. Petersen
Browse files

scsi: hisi_sas: Add more logs for runtime suspend/resume

parent e31e1812
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -4904,6 +4904,8 @@ static int _suspend_v3_hw(struct device *device)
	if (test_and_set_bit(HISI_SAS_RESETTING_BIT, &hisi_hba->flags))
		return -1;

	dev_warn(dev, "entering suspend state\n");

	scsi_block_requests(shost);
	set_bit(HISI_SAS_REJECT_CMD_BIT, &hisi_hba->flags);
	flush_workqueue(hisi_hba->wq);
@@ -4919,11 +4921,11 @@ static int _suspend_v3_hw(struct device *device)

	hisi_sas_init_mem(hisi_hba);

	dev_warn(dev, "entering suspend state\n");

	hisi_sas_release_tasks(hisi_hba);

	sas_suspend_ha(sha);

	dev_warn(dev, "end of suspending controller\n");
	return 0;
}

@@ -4961,6 +4963,8 @@ static int _resume_v3_hw(struct device *device)
	sas_resume_ha_no_sync(sha);
	clear_bit(HISI_SAS_RESETTING_BIT, &hisi_hba->flags);

	dev_warn(dev, "end of resuming controller\n");

	return 0;
}