]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: fix debugfs register accesses while suspended
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 5 Apr 2023 09:03:42 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:32 +0000 (11:35 +0200)
commitfabf551f033951212ee5dacd16393ec5610de84c
tree7fcf036079af882b232a84fbecf4348db3cccf73
parent4e6d467542d9e21874b19c4a27b1bf5c57703e87
xhci: fix debugfs register accesses while suspended

commit 735baf1b23458f71a8b15cb924af22c9ff9cd125 upstream.

Wire up the debugfs regset device pointer so that the controller is
resumed before accessing registers to avoid crashing or locking up if it
happens to be runtime suspended.

Fixes: 2100b998f426 ("usb: xhci: Add debugfs interface for xHCI driver")
Cc: stable@vger.kernel.org # 4.15: 94bd87e85813: debugfs: regset32: Add Runtime PM support
Cc: stable@vger.kernel.org # 4.15
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230405090342.7363-1-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-debugfs.c