diff options
author | Xiang Chen <chenxiang66@hisilicon.com> | 2017-12-09 01:16:50 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-12-20 21:11:44 -0500 |
commit | 4d0951ee70d348b694ce2bbdcc65b684239da4b4 (patch) | |
tree | fc5cf8fbfd3fa4460d8abee2a9c97cf47b09b8e4 /drivers/scsi/lpfc/lpfc_nvme.c | |
parent | 336bd78bdabf39dbcee6b41f9628c6e51d1c25b0 (diff) | |
download | lwn-4d0951ee70d348b694ce2bbdcc65b684239da4b4.tar.gz lwn-4d0951ee70d348b694ce2bbdcc65b684239da4b4.zip |
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>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nvme.c')
0 files changed, 0 insertions, 0 deletions