From patchwork Thu Feb 22 13:16:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 129229 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp584860lja; Thu, 22 Feb 2018 05:16:20 -0800 (PST) X-Google-Smtp-Source: AH8x227n3BvcYIK0JGGSakfvZbXY4r9XMQ5RczFr97PkHeM1b/NGVVd15hRmBb+qythzISz4zBYn X-Received: by 10.28.185.83 with SMTP id j80mr5164649wmf.69.1519305380578; Thu, 22 Feb 2018 05:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519305380; cv=none; d=google.com; s=arc-20160816; b=R7Bk9DH+0K7N+xPkvjXMp/nVm5sXci5SEwQuww7JaPuD9rNtt6XZ4CXbac4X+nEXPS MaLAmJ34HuHgY82xSzgF+pKxnRLqKs793ek97m/CpHk7dCApy8wVWpXMXgw7GBXnupXf pjgn6/PT/U1I4suMatT3++asPJuBlY7HRVj+9WVqYdv/7lKASWjUVIK5W/xldad5az2L SQR89Ss7hTqCDbmaPN+ey316Co0cHjd0qhj3wxzhdwsleAr4B1M3PYxMwv6vbTikolgq H5jDMnpjDQYNd2TgJiXYEI9nPuF69hwboW2juo7YMkNr2r4T4cQG/Dha0JONZM3TtJPI KPog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=ICBmNBSFftpCKEI3C/ArE9SQJK22IJQXISefV9Tbrd0=; b=geNLprlLt8Dm64ibC57hXELh59D/vC854kzd2aDvA71ycAA9MYoPf27cxUHaGucry1 J2M2T1p3Z8iiQdBo9Ohj30i6fiFndLIC/7ZtRXnVDglmCb6GMMazyfy6h3UlfZA9yuj+ 4AwqChBqU0w/fyvWKxloqjDmZhyLSjnI0MB9sKMHXSVtS4JqreYQ3DIk64S1Ljkt0+ZH JuP5Ih58sDQmxM3HzYB6FUu5xyZYjczm+Yfrbdtkxlos93yU3aGHjtgrMNZCDmAY8wOF GzYcBBSoI5AcE4CUejPwWg0D9Gy56Qscop0nkxaa0V4mUZ/RyhrbdN3p/TW1lRcG3CF8 btrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=OFwxUzsN; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id g6si48710wra.310.2018.02.22.05.16.20; Thu, 22 Feb 2018 05:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=OFwxUzsN; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1CE1526771B; Thu, 22 Feb 2018 14:16:19 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A8FEB26771C; Thu, 22 Feb 2018 14:16:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 64B93267718 for ; Thu, 22 Feb 2018 14:16:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=gEH/6du36vd1sdSaPQFij6GYELrTW40AgKjmoIepBc4=; b=OFwxUzsNSeQU cXTp6kro7DRpNrNX/b/wvW1eoi6vRCJOWYULL7XOL5k2oOYf2Kq8MeM8addP/JLH6Y/7nF7LyAz5m orbekVbADwFLqqiMixqNEtCH9fheBJe67YNhhxdoAewY6bfw4nPHV2oB3KHmLemzjTYKu6jVXgnuk cvFoc=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoqjG-0002Sg-Hu; Thu, 22 Feb 2018 13:16:06 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1eoqjF-00069X-Jb; Thu, 22 Feb 2018 13:16:05 +0000 From: Mark Brown To: Fabio Estevam In-Reply-To: <1519227780-26632-1-git-send-email-festevam@gmail.com> Message-Id: Date: Thu, 22 Feb 2018 13:16:05 +0000 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, broonie@kernel.org, lars@metafoo.de, kuninori.morimoto.gx@renesas.com Subject: [alsa-devel] Applied "ASoC: soc-generic-dmaengine-pcm: Add a DMA debugfs_prefix entry" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: soc-generic-dmaengine-pcm: Add a DMA debugfs_prefix entry has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From f0b3bdbd5c63c3f69f3b6a869355c676d22fd348 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Wed, 21 Feb 2018 14:57:33 -0300 Subject: [PATCH] ASoC: soc-generic-dmaengine-pcm: Add a DMA debugfs_prefix entry After the conversion from platform to component the following warnings are seen: fsl-ssi-dai 2028000.ssi: ASoC: Failed to create component debugfs directory fsl-spdif-dai 2004000.spdif: ASoC: Failed to create component debugfs directory As explained by Mark Brown: "It's a legit warning - we shouldn't really be creating two components for the same device. However this is a bit of a corner case as it's the dmaengine platform driver which is kind of a virtual device, it's not really the device that we use with DMA that's being represented but rather the link between that and the DMA controller." Disambiguate the DMA component name by adding a "dma" debugfs_prefix entry. Suggested-by: Mark Brown Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- sound/soc/soc-generic-dmaengine-pcm.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.16.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index d53786498b61..8fb828bb8a7f 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -431,6 +431,9 @@ int snd_dmaengine_pcm_register(struct device *dev, if (!pcm) return -ENOMEM; +#ifdef CONFIG_DEBUG_FS + pcm->component.debugfs_prefix = "dma"; +#endif pcm->config = config; pcm->flags = flags;