From: Jerome Brunet Date: Fri, 21 Feb 2020 12:11:46 +0000 (+0100) Subject: ASoC: meson: g12a: add tohdmitx reset X-Git-Tag: v5.15~2585^2~258^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22946f37557e27697aabc8e4f62642bfe4a17fd8;p=platform%2Fkernel%2Flinux-starfive.git ASoC: meson: g12a: add tohdmitx reset Reset the g12a hdmi codec glue on probe. This ensure a sane startup state. Signed-off-by: Jerome Brunet Link: https://lore.kernel.org/r/20200221121146.1498427-1-jbrunet@baylibre.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/g12a-tohdmitx.c b/sound/soc/meson/g12a-tohdmitx.c index 9cfbd34..8a0db28 100644 --- a/sound/soc/meson/g12a-tohdmitx.c +++ b/sound/soc/meson/g12a-tohdmitx.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -378,6 +379,11 @@ static int g12a_tohdmitx_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; void __iomem *regs; struct regmap *map; + int ret; + + ret = device_reset(dev); + if (ret) + return ret; regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(regs))