diff options
author | Mathias Nyman <[email protected]> | 2021-03-11 13:53:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-03-11 13:03:06 +0100 |
commit | d26c00e7276fc92b18c253d69e872f6b03832bad (patch) | |
tree | 450232517f19260ce97eb0bb130b10c06147bd18 /lib/mpi/mpiutil.c | |
parent | b71c669ad8390dd1c866298319ff89fe68b45653 (diff) |
xhci: Fix repeated xhci wake after suspend due to uncleared internal wake state
If port terminations are detected in suspend, but link never reaches U0
then xHCI may have an internal uncleared wake state that will cause an
immediate wake after suspend.
This wake state is normally cleared when driver clears the PORT_CSC bit,
which is set after a device is enabled and in U0.
Write 1 to clear PORT_CSC for ports that don't have anything connected
when suspending. This makes sure any pending internal wake states in
xHCI are cleared.
Cc: [email protected]
Tested-by: Mika Westerberg <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions