Re: [PATCH v3 1/2] WIP: ASoC: mediatek: mt6359: add codec driver

2 messages, 2 authors, 2020-08-15 · open the first message on its own page

Re: [PATCH v3 1/2] WIP: ASoC: mediatek: mt6359: add codec driver

From: Mark Brown <broonie@kernel.org>
Date: 2020-08-14 16:01:52

On Fri, Aug 14, 2020 at 06:45:53PM +0800, Jiaxin Yu wrote:

This looks mostly good, a couple of very small things:
+	ret = regulator_enable(priv->avdd_reg);
+	if (ret) {
+		dev_err(&pdev->dev, "%s(), failed to enable regulator!\n",
+			__func__);
+		return ret;
+	}
You need a remove() function to undo this enable.
+	dev_info(&pdev->dev, "%s(), dev name %s\n",
+		 __func__, dev_name(&pdev->dev));
This isn't really adding anything, just remove it - it's not reading
info from the hardware or anything.

Re: [PATCH v3 1/2] WIP: ASoC: mediatek: mt6359: add codec driver

From: Jiaxin Yu <hidden>
Date: 2020-08-15 17:29:34

On Fri, 2020-08-14 at 17:01 +0100, Mark Brown wrote:
On Fri, Aug 14, 2020 at 06:45:53PM +0800, Jiaxin Yu wrote:

This looks mostly good, a couple of very small things:
quoted
+	ret = regulator_enable(priv->avdd_reg);
+	if (ret) {
+		dev_err(&pdev->dev, "%s(), failed to enable regulator!\n",
+			__func__);
+		return ret;
+	}
You need a remove() function to undo this enable.
Ok, I will add a remove() function to do regulator_disable() and
snd_soc_unregister_component().
quoted
+	dev_info(&pdev->dev, "%s(), dev name %s\n",
+		 __func__, dev_name(&pdev->dev));
This isn't really adding anything, just remove it - it's not reading
info from the hardware or anything.
Yes, it was unnecessary, removed it in PATCH v4.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help