[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160523165713.GX8206@sirena.org.uk>
Date: Mon, 23 May 2016 17:57:13 +0100
From: Mark Brown <broonie@...nel.org>
To: Jose Abreu <Jose.Abreu@...opsys.com>
Cc: alsa-devel@...a-project.org,
Carlos Palminha <CARLOS.PALMINHA@...opsys.com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, Rob Herring <robh@...nel.org>,
Alexey Brodkin <Alexey.Brodkin@...opsys.com>,
linux-snps-arc@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/4 v7] ASoC: dwc: Do not use devm_clk_get() if using
platform data
On Mon, May 23, 2016 at 11:02:23AM +0100, Jose Abreu wrote:
> When using platform data the devm_clk_get() function is
> called causing a probe failure if the clock is not
> declared. As we can pass the clock handler by platform
> data call only devm_clk_get() when platform data is not
> used.
No, this is broken - if the device needs a clock the device needs a
clock and clock names should be static rather than passed in via
platform data (indeed NULL is a perfectly valid clock name). The system
integation should map in a clock as needed, if it's just a fixed crystal
or something then just register a fixed clock and connect it up.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists