linux/drivers/scsi/hisi_sas
Xiang Chen 4d0951ee70 scsi: hisi_sas: add v3 hw suspend and resume
For v3 hw SAS, it supports configuring power state from D0 to D3 for entering
Low Power status and power state from D3 to D0 for quit Low Power status.

When power state from D0 to D3, HW will send FLR to clear the registers of
ECAM and BAR space, and when power state from D3 to D0, it will clear the
registers of ECAM space only.

So when suspend, need to do like controller reset (including disable
interrupts/DQ/PHY/BUS), and also release slots after FLR. When resume,
re-config the registers of BAR space.

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>
2017-12-20 21:11:44 -05:00
..
Kconfig scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
hisi_sas.h scsi: hisi_sas: add v3 hw suspend and resume 2017-12-20 21:11:44 -05:00
hisi_sas_main.c scsi: hisi_sas: add v3 hw suspend and resume 2017-12-20 21:11:44 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: use an general way to delay PHY work 2017-12-14 21:25:03 -05:00
hisi_sas_v2_hw.c scsi: hisi_sas: do link reset for some CHL_INT2 ints 2017-12-14 21:25:03 -05:00
hisi_sas_v3_hw.c scsi: hisi_sas: add v3 hw suspend and resume 2017-12-20 21:11:44 -05:00