[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201215025459.91794-1-zhengzengkai@huawei.com>
Date: Tue, 15 Dec 2020 10:54:59 +0800
From: Zheng Zengkai <zhengzengkai@...wei.com>
To: <balbi@...nel.org>, <gregkh@...uxfoundation.org>,
<khilman@...libre.com>, <narmstrong@...libre.com>,
<jbrunet@...libre.com>, <martin.blumenstingl@...glemail.com>
CC: <linux-usb@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-amlogic@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <zhengzengkai@...wei.com>
Subject: [RESEND] usb: dwc3: meson-g12a: disable clk on error handling path in probe
dwc3_meson_g12a_probe() does not invoke clk_bulk_disable_unprepare()
on one error handling path. This patch fixes that.
Fixes: 347052e3bf1b ("usb: dwc3: meson-g12a: fix USB2 PHY initialization on G12A and A1 SoCs")
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@...wei.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
---
drivers/usb/dwc3/dwc3-meson-g12a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c
index 417e05381b5d..bdf1f98dfad8 100644
--- a/drivers/usb/dwc3/dwc3-meson-g12a.c
+++ b/drivers/usb/dwc3/dwc3-meson-g12a.c
@@ -754,7 +754,7 @@ static int dwc3_meson_g12a_probe(struct platform_device *pdev)
ret = priv->drvdata->setup_regmaps(priv, base);
if (ret)
- return ret;
+ goto err_disable_clks;
if (priv->vbus) {
ret = regulator_enable(priv->vbus);
--
2.20.1
Powered by blists - more mailing lists