summaryrefslogtreecommitdiff
path: root/drivers/usb/early
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2021-03-11 13:53:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-11 13:03:06 +0100
commitd26c00e7276fc92b18c253d69e872f6b03832bad (patch)
tree450232517f19260ce97eb0bb130b10c06147bd18 /drivers/usb/early
parentb71c669ad8390dd1c866298319ff89fe68b45653 (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: stable@vger.kernel.org Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20210311115353.2137560-5-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/early')
0 files changed, 0 insertions, 0 deletions