diff options
author | Amit Sunil Dhamne <amitsd@google.com> | 2024-08-22 15:37:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-25 13:45:56 +0200 |
commit | fc88bb11617978fb3fcfcc697fd5c9d2dae9c4a3 (patch) | |
tree | 94341ec9cd6edaa455d0108311ee162f7a20e99c /drivers/usb/dwc3 | |
parent | 4333dbd9798d470d0c81608bb44bb7c8fd7f7948 (diff) |
usb: roles: add lockdep class key to struct usb_role_switch
There can be multiple role switch devices running on a platform. Given
that lockdep is not capable of differentiating between locks of
different instances, false positive warnings for circular locking are
reported. To prevent this, register unique lockdep key for each of the
individual instances.
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20240822223717.253433-1-amitsd@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions