]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xhci: dbc: add timestamps to DbC state changes in a new helper.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 3 Jun 2026 09:11:27 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2026 17:23:29 +0000 (19:23 +0200)
commit724eab31dd7edea68b731b7635f91e3158c61d2a
tree2587607776f3ca885f0afd9cd5c8e0dfdc17fde3
parentde58a7d374eb0caae801704c3e47400b41a53acf
xhci: dbc: add timestamps to DbC state changes in a new helper.

The timestamp helps us track when a state changed the last time.
It allows us to detect if DbC is stuck in connected state for too long,
and can later be used to enable runtime suspend if there is no activity
for some time

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20260603091132.1110849-11-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c
drivers/usb/host/xhci-dbgcap.h