USB: dwc3: remove debugfs root dentry storage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 09:39:24 +0000 (11:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 17:57:21 +0000 (19:57 +0200)
commit8562d5bfc0fcdfd3aef32991e17dca585ae5ae7d
tree4c4a78b4b99daf91f906cfd57e6e178b124105ba
parent03a674f5d758eee6ae0beb16891eb1183fc87051
USB: dwc3: remove debugfs root dentry storage

There is no need to keep around the debugfs "root" directory for the
dwc3 device.  Instead, look it up anytime we need to find it.  This will
help when callers get out-of-order and we had the potential to have a
"stale" pointer around for the root dentry, as has happened in the past.

Tested-by: Jack Pham <jackp@codeaurora.org>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Acked-by: Felipe Balbi <balbi@kernel.org>
Link: https://lore.kernel.org/r/20210609093924.3293230-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c