Message ID | 20200326134507.4808-6-narmstrong@baylibre.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | usb: dwc3: meson: add OTG support for GXL/GXM | expand |
On Thu, Mar 26, 2020 at 2:45 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > > The dwc3_meson_g12a_usb_init function can return an error, check it. > > Fixes: e3e716e6b889 ("usb: dwc3: Add Amlogic A1 DWC3 glue") I think this should be: Fixes: c99993376f72ca ("usb: dwc3: Add Amlogic G12A DWC3 glue") (because I don't see where e3e716e6b889 modifies dwc3_meson_g12a_usb_init) > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> and with that: Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Martin
diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 41bcbd31fe4e..69381c42a6d3 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -588,7 +588,9 @@ static int dwc3_meson_g12a_probe(struct platform_device *pdev) /* Get dr_mode */ priv->otg_mode = usb_get_dr_mode(dev); - dwc3_meson_g12a_usb_init(priv); + ret = dwc3_meson_g12a_usb_init(priv); + if (ret) + goto err_disable_clks; /* Init PHYs */ for (i = 0 ; i < PHY_COUNT ; ++i) {
The dwc3_meson_g12a_usb_init function can return an error, check it. Fixes: e3e716e6b889 ("usb: dwc3: Add Amlogic A1 DWC3 glue") Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> --- drivers/usb/dwc3/dwc3-meson-g12a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)