]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: fix backwards compat with rockchip devices
authorPeter Geis <pgwipeout@gmail.com>
Sat, 9 Apr 2022 15:21:15 +0000 (11:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 16:58:35 +0000 (18:58 +0200)
commit340788d1f690a2b98aaddc0d0482a14c91a9e183
tree5e9fc74b5cd8dd7d146d42e189d4f870995df32e
parentf5583b4e7c891ce2178ce9e02a7f7426d88a7a13
usb: dwc3: fix backwards compat with rockchip devices

Commit 7dea79524eef ("usb: dwc3: Get clocks individually") moved from
the clk_bulk api to individual clocks, following the snps,dwc3.yaml
dt-binding for clock names.
Unfortunately the rk3328 (and upcoming rk356x support) use the
rockchip,dwc3.yaml which has different clock names, which are common on
devices using the glue layer.
The rk3328 does not use a glue layer, but attaches directly to the dwc3
core driver.
The offending patch series failed to account for this, thus dwc3 was
broken on rk3328.

To retain backwards compatibility with rk3328 device trees we must also
check for the alternate clock names.

Fixes: 7dea79524eef ("usb: dwc3: Get clocks individually")
Reported-by: Frank Wunderlich <frank-w@public-files.de>
Tested-By: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Link: https://lore.kernel.org/r/20220409152116.3834354-1-pgwipeout@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c