pci: framework: disable auto suspend link

Some endpoint devices do not go into D3hot during suspend.  By pass
auto suspend if device do not allow D3hot.

CRs-Fixed: 2418347
Change-Id: Ida6e4a2b60b7d08932bfff79144afd67787ca0f2
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
This commit is contained in:
Sujeev Dias
2019-02-27 14:59:23 -08:00
committed by Gerrit - the friendly Code Review server
parent d126692554
commit 02f0bed29f
2 changed files with 16 additions and 1 deletions

View File

@@ -333,6 +333,7 @@ struct pci_dev {
unsigned int d2_support:1; /* Low power state D2 is supported */
unsigned int no_d1d2:1; /* D1 and D2 are forbidden */
unsigned int no_d3cold:1; /* D3cold is forbidden */
unsigned int no_d3hot:1; /* D3hot is forbidden */
unsigned int bridge_d3:1; /* Allow D3 for bridge */
unsigned int d3cold_allowed:1; /* D3cold is allowed by user */
unsigned int mmio_always_on:1; /* Disallow turning off io/mem