Skip to content

Commit

Permalink
usb: dwc3: meson-g12a: disable clk on error handling path in probe
Browse files Browse the repository at this point in the history
commit a5ada3d upstream.

dwc3_meson_g12a_probe() does not invoke clk_bulk_disable_unprepare()
on one error handling path. This patch fixes that.

Fixes: 347052e ("usb: dwc3: meson-g12a: fix USB2 PHY initialization on G12A and A1 SoCs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20201215025459.91794-1-zhengzengkai@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Zheng Zengkai authored and gregkh committed Jan 12, 2021
1 parent 5a5ce1e commit 906b051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/dwc3-meson-g12a.c
Expand Up @@ -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);
Expand Down

0 comments on commit 906b051

Please sign in to comment.