armv8: fsl-layerscape: rework the dwc3 snooping enable code
authorMichael Walle <michael@walle.cc>
Fri, 15 Oct 2021 13:15:19 +0000 (15:15 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 11:48:23 +0000 (17:18 +0530)
commitf53e102e12c0e1bdda035be1aa5ec59c9787a21a
tree8bfdf4d251cf782faf7feef0be419da92018e0a9
parentbce039acf2661b1484aeee3704100b645a3d2198
armv8: fsl-layerscape: rework the dwc3 snooping enable code

Instead of looking at all USB (host) devices, just search all DWC3
device tree nodes. This will (1) fix a panic if of_match is zero and (2)
also apply the fixup if the controller is in peripheral mode. Both
happen when the DWC3 USB controller driver is used.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c