Thread (26 messages) flat view 26 messages, 6 authors, 2014-09-11

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

From: Nicolin Chen <nicoleotsuka@gmail.com>
Date: 2014-09-09 18:41:45
Also in: alsa-devel, lkml

On Tue, Sep 09, 2014 at 07:15:16PM +0100, Mark Brown wrote:
On Tue, Sep 09, 2014 at 11:03:10AM -0700, Nicolin Chen wrote:
quoted
On Tue, Sep 09, 2014 at 12:27:50PM +0100, Mark Brown wrote:
quoted
On Tue, Sep 09, 2014 at 05:18:07PM +0800, Shengjiu Wang wrote:
quoted
-	ssi_private->clk = devm_clk_get(&pdev->dev, NULL);
+	ssi_private->clk = devm_clk_get(&pdev->dev, "ipg");
quoted
quoted
Why is this change being made?  It wasn't mentioned in the commit log
and doesn't seem relevant to moving where the enable and disable are
done which is what the patch is supposed to be doing...
quoted
I think Shengjiu is trying to keep the clock disabled while SSI's idle.
The current driver enables ipg clock anyway even if there's no stream
running.
quoted
Apparently, these should be put into the comment log.
I got that bit.  However as well as changing where the enable and
disable take place this is also changing from requesting a clock with a
NULL to requesting one called "ipg".
Understood. Making one patch do one single change is the rule we should
always follow.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help