usb: dwc3: dwc3-octeon: Move node parsing into driver probe
authorLadislav Michl <ladis@linux-mips.org>
Mon, 31 Jul 2023 09:32:55 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:52:15 +0000 (14:52 +0200)
commitdc0092ce24dc1655a1b06edb37cddc0946bb40f9
tree5581f53a62c078a56938b9bfaefdc0b9d15690d7
parentc61101631cdc0a98840a8e4f5a1e571ca94d82fc
usb: dwc3: dwc3-octeon: Move node parsing into driver probe

Parse and verify device tree node first, then setup UCTL bridge
using verified values. This avoids needless allocations
in case DT misconfiguration was found in the middle of setup.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/ZMd/x3MHA4/QowMO@lenoch
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-octeon.c