From mboxrd@z Thu Jan 1 00:00:00 1970 From: broonie@opensource.wolfsonmicro.com (Mark Brown) Date: Tue, 15 Sep 2009 12:12:04 +0100 Subject: [PATCH 09/10] S3C64XX I2S: Set parent links for clock audio-bus. In-Reply-To: <1253008961-10698-1-git-send-email-jassi.brar@samsung.com> References: <1253008961-10698-1-git-send-email-jassi.brar@samsung.com> Message-ID: <20090915111204.GJ22878@rakim.wolfsonmicro.main> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Sep 15, 2009 at 07:02:41PM +0900, Jassi wrote: > Explicitly route audio-bus from FOUTepll via MOUTepll. > Signed-Off-by: Jassi Why do this in the audio driver rather than doing it in the arch/arm code? It seems bad form for the audio driver to be looking at clock configuration outside its domain. > + cm = clk_get(NULL, "mout_epll"); > + if (IS_ERR(cm)) { > + dev_err(&pdev->dev, "failed to get mout_epll\n"); > + ret = PTR_ERR(cm); > + goto mout_err; > + } > + clk_set_parent(i2s->iis_cclk, cm); > + cf = clk_get(NULL, "fout_epll"); > + if (IS_ERR(cf)) { > + dev_err(&pdev->dev, "failed to get fout_epll\n"); > + ret = PTR_ERR(cf); > + goto fout_err; > + } > + clk_set_parent(cm, cf); The mout/fout connection in particular isn't audio local, there's way more EPLL users than just the audio.