[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BN3PR0301MB12511B448B1C0B9E8F0BB6C48D640@BN3PR0301MB1251.namprd03.prod.outlook.com>
Date: Mon, 8 Dec 2014 09:49:51 +0000
From: Zidan Wang <B50113@...escale.com>
To: Mark Brown <broonie@...nel.org>,
Charles Keepax <ckeepax@...nsource.wolfsonmicro.com>
CC: "lgirdwood@...il.com" <lgirdwood@...il.com>,
"perex@...ex.cz" <perex@...ex.cz>, "tiwai@...e.de" <tiwai@...e.de>,
"lars@...afoo.de" <lars@...afoo.de>,
"Li.Xiubo@...escale.com" <Li.Xiubo@...escale.com>,
"patches@...nsource.wolfsonmicro.com"
<patches@...nsource.wolfsonmicro.com>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [alsa-devel][PATCH v3] ASoC: wm8960: Let wm8960 codec driver
manage its own MCLK
So I should move mclk to wm8960_priv.
And doing wm8960_priv->mclk = devm_clk_get(&i2c->dev, "codec_mclk") in wm8960_i2c_probe.
Best Regards,
Zidan
-----Original Message-----
From: Mark Brown [mailto:broonie@...nel.org]
Sent: Saturday, December 06, 2014 1:40 AM
To: Charles Keepax
Cc: Wang Zidan-B50113; lgirdwood@...il.com; perex@...ex.cz; tiwai@...e.de; lars@...afoo.de; Xiubo Li-B47053; patches@...nsource.wolfsonmicro.com; alsa-devel@...a-project.org; linux-kernel@...r.kernel.org
Subject: Re: [alsa-devel][PATCH v3] ASoC: wm8960: Let wm8960 codec driver manage its own MCLK
On Fri, Dec 05, 2014 at 05:01:56PM +0000, Charles Keepax wrote:
> On Thu, Dec 04, 2014 at 08:41:19PM +0800, Zidan Wang wrote:
> > struct wm8960_data {
> > + struct clk *mclk;
> Is this really pdata? Would the pdata entry to locate the clock not be
> a string holding the clock name that you call clk_get on, rather than
> a clk pointer itself? Probably this should go in wm8960_priv instead.
There should be no platform data of any kind for the clock, the name should be fixed and defined in terms of the name of the clock on the device requesting it. The code is actually doing the right thing here, it's just that it's put the variable into the platform data because currently the driver just uses the platform data as the driver data.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists