From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v3 01/14] ASoC: SOF: Add Sound Open Firmware driver core Date: Wed, 12 Dec 2018 08:51:18 +0100 Message-ID: References: <20181211212318.28644-1-pierre-louis.bossart@linux.intel.com> <20181211212318.28644-2-pierre-louis.bossart@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20181211212318.28644-2-pierre-louis.bossart@linux.intel.com> 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: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, andriy.shevchenko@intel.com, Daniel Baluta , liam.r.girdwood@linux.intel.com, vkoul@kernel.org, broonie@kernel.org, Alan Cox , sound-open-firmware@alsa-project.org List-Id: alsa-devel@alsa-project.org 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). thanks, Takashi