From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: [PATCH v3 01/14] ASoC: SOF: Add Sound Open Firmware driver core Date: Wed, 12 Dec 2018 08:53:27 -0600 Message-ID: <95239c7f-7449-fb51-c7a2-80d428ca9df1@linux.intel.com> References: <20181211212318.28644-1-pierre-louis.bossart@linux.intel.com> <20181211212318.28644-2-pierre-louis.bossart@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: Daniel Baluta , andriy.shevchenko@intel.com, alsa-devel@alsa-project.org, liam.r.girdwood@linux.intel.com, vkoul@kernel.org, broonie@kernel.org, sound-open-firmware@alsa-project.org, Alan Cox List-Id: alsa-devel@alsa-project.org On 12/12/18 1:51 AM, Takashi Iwai wrote: > On Tue, 11 Dec 2018 22:23:05 +0100, > Pierre-Louis Bossart wrote: >> +static int sof_probe(struct platform_device *pdev) >> +{ > .... >> + /* register any debug/trace capabilities */ >> + ret = snd_sof_dbg_init(sdev); >> + if (ret < 0) { >> + dev_err(sdev->dev, "error: failed to init DSP trace/debug %d\n", >> + ret); >> + goto dbg_err; >> + } > So that's the problem Andy suggested. > snd_sof_dbg_init() returns an error for whatever reason, and this is > considered as a fatal error and the probe fails. The error about > debugfs is no fatal error, it should continue. > > Moreover, as I mentioned for another patch (I read that before this > one due to the mail delivery order :), it would fail always when > CONFIG_DEBUGFS=n. At best, create a wrapper for CONFIG_DEBUGFS=n to > return 0 (and void for free). ok. we'll fix this, point taken.