]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: Create helper function getting MDWIDTH
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sun, 28 Mar 2021 00:54:01 +0000 (17:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:07:18 +0000 (14:07 +0200)
commit7d7fa78b1262988bb58ad634824a4dc6511c3a71
tree38af462b7cd46f56e64be8a87df9a7543e04aa18
parentcef6769a21d1df41d72583daebb4d607c11e62a8
usb: dwc3: Create helper function getting MDWIDTH

Different controller IPs check different HW parameters for MDWIDTH.
To help with maintainability, create a helper function to consolidate
the logic in a single place.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/456329d36e8c188df5c234f3282595b630bf1470.1616892233.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c