17 Mar
2016
17 Mar
'16
10:18 a.m.
On Thu, Mar 17, 2016 at 11:04:20AM +0800, John Hsu wrote:
On 3/17/2016 7:06 AM, Anatol Pomozov wrote:
nau8825->mclk = devm_clk_get(nau8825->dev, "mclk");
if (IS_ERR(nau8825->mclk)) {
Is it possible that clock system is not ready at this point and the method returns -EPROBE_DEFER? If so it matches IS_ERR() but not a real error and the nua8825 driver should backoff and wait a little before clocks are ready.
The function is used when playback startup not in the driver initiation. At this moment, we just skip mclk operation and let thing go on. Should driver return the errorno to machine driver to handle it?
Well, what should really be happening here is that the clock is requested at probe time.