From patchwork Wed Feb 21 15:43:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10233295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B414160209 for ; Wed, 21 Feb 2018 15:43:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9AB328BAE for ; Wed, 21 Feb 2018 15:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DEC228C2A; Wed, 21 Feb 2018 15:43:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E040128C0C for ; Wed, 21 Feb 2018 15:43:04 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B93772675DE; Wed, 21 Feb 2018 16:43:02 +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 B45F82675E4; Wed, 21 Feb 2018 16:43:00 +0100 (CET) Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by alsa0.perex.cz (Postfix) with ESMTP id 5BED426706F for ; Wed, 21 Feb 2018 16:42:58 +0100 (CET) Received: by mail-qk0-f195.google.com with SMTP id g2so2457392qkd.12 for ; Wed, 21 Feb 2018 07:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6cMNeGC9tWAE0mdD9qlTjgOexuvtOvfXrB4LYRH7ZcQ=; b=K9R4rrr6+yGfdN83kDzTC863vF1ERFbr5Bk27sGyah8vpVCuUfA/sHGYOztA65nTBM vI6NE3aK6A2s8vB3tEbHs4mcLwlYlt1J4+gmOXt45mWlR02AVrTRf2joyiF6YiR1K2dd tqrMeaXUxiE9yJzGvyNYvJUp5mSSqOTGQ8smsWhKMhbwrJdWbir2GD7zdPTMPbek9Sxe 3sXdIP96NAiUpt1JNr+PoqPb7bx4U5fjR+/8CYx7/crI801MZnFV+1hZloB9p8x8fYJs snXIyx5bgqhDkq6qfXDmrOItvgKNlsLniaTjbJbD2Pa3vwxCuPqljMQbAQOE3iHitm9M BabQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6cMNeGC9tWAE0mdD9qlTjgOexuvtOvfXrB4LYRH7ZcQ=; b=QUEGecohveTXlMkI4wnRzPiCPSWRahzlA0oDCJU+0jAP+DB2WC7eZC7j0R4JOJKqZT 1q+e2iiCdjOo+frGMUQnNUcCuyzemMs3AVkd/vtDyOttwdZMPEDvnOq1yQwYkyMm/5TS OZTUSrAO2bmzB9e2gMVhz5xR88Lvz/54P367AvnTsVIjpC8gOvGWFiqwUOxpY6LNfr5A KgNjHCrsGavOK298MaMf9BVA8T5Fe1TuxmcshBAxXTPIoBSvhqAPEkpfpSEAFDc1If5n 0XJ9KfF5YGWaG3wbKqxxMHZuovntf2+2zpIgBUitG4TzrPxOti30wwGQ6cc0LugnH03j dXkA== X-Gm-Message-State: APf1xPCPDHw4Pyttfe7hBc7zHDqnWpyY5fCBhtK4L4iXEvDH/L9RAeBE MDOlQcH/YQ+UT9Q7UUMcI+U= X-Google-Smtp-Source: AH8x226SnsMn5TOJihZyGl6d4UsDpKS2vIEK5jLtsA8vs3O7j3ZYtmaL5EUimdttVRU20f3+CCqv8Q== X-Received: by 10.55.207.214 with SMTP id v83mr5380468qkl.287.1519227776883; Wed, 21 Feb 2018 07:42:56 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:a5e:d81f:f7db:5766:3221]) by smtp.gmail.com with ESMTPSA id r22sm20132897qkr.21.2018.02.21.07.42.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 07:42:56 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Date: Wed, 21 Feb 2018 12:43:00 -0300 Message-Id: <1519227780-26632-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: nicoleotsuka@gmail.com, Fabio Estevam , alsa-devel@alsa-project.org, lars@metafoo.de, kuninori.morimoto.gx@renesas.com Subject: [alsa-devel] [PATCH] ASoC: soc-generic-dmaengine-pcm: Add a DMA debugfs_prefix entry 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 X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam 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 createcomponent 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 --- sound/soc/soc-generic-dmaengine-pcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index c07d5c7..768247f 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -442,6 +442,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;