From patchwork Wed Feb 21 17:57:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10233763 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 8E5D660209 for ; Wed, 21 Feb 2018 17:57:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 847D126E55 for ; Wed, 21 Feb 2018 17:57:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77A9527F17; Wed, 21 Feb 2018 17:57:39 +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 B8CEB26E55 for ; Wed, 21 Feb 2018 17:57:38 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BCD012675FF; Wed, 21 Feb 2018 18:57:36 +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 09F36267600; Wed, 21 Feb 2018 18:57:35 +0100 (CET) Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by alsa0.perex.cz (Postfix) with ESMTP id B70812675FD for ; Wed, 21 Feb 2018 18:57:32 +0100 (CET) Received: by mail-qt0-f196.google.com with SMTP id d26so2993199qtk.10 for ; Wed, 21 Feb 2018 09:57:32 -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=H4dIJ1cmnAhFDUHujKs8HoQZ9Za4youxUKeV4jsqJ1Q=; b=oP15UOUtZnsoeKhB15x/om7wxLV9k+8PZE1L97OYPDX712/VqGVCQS0dgD/JHE8ARN IP412S5iu0d4kbCnbpQe/Yew3D5jmthsXfg2PEkW+RxZIp4d/n/ohlMNCGEq9NhCJJ4A TZ8Cp4003zucFAHFQ0a1jSzWqrZ4ex8C9/mZV9/8tQ1NyfMSsr5zQhwuJg7Y3lTq/FPK kKupPisXLElLqVRbDW3hCctZyA7Mca+R0dFqms7kQoowxkHV6SZS9zRR0VedxMqIgnW2 Sm2d27YzYVgJymxXtEpq9VMHPQ0st9Q0blG7DXHMXSSoGtAGrSqCyHGbqUsb8eDQIz8g +B3A== 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=H4dIJ1cmnAhFDUHujKs8HoQZ9Za4youxUKeV4jsqJ1Q=; b=QZIPO15kztD74FtGPBG4RVsynbcXZN+Dccbo5E3luJi1kUM/hFyj18Wp0VlUbkaBGJ nX93ZMqqj12rcFAuI/EZ1RS15m7nL/HXWRktWXQoYBEhB3uvbBKXAyk276qOaAcW9yOs DGSD9M+X2XKn825G+t2UBBpL4JlOKFICsnhCPIf2oxl2jAjoR9uJc99xN+EIiBg8jK+4 Im8gQet8fhEjIzaCcONV/ZMWpPt3yGiFtZF+r621LEP2nEWTD0eozvpJsvN7aeuNil2w EI6PJWv7i39+CE/Da0ph2prjVyXOdRLggqrcn8jNggODQmJ4JqXl0brnq/3Sq596G/ZN 7XhQ== X-Gm-Message-State: APf1xPDbV5ehsyej9mWy1qDcNsWIe8r0fx4ZLNNwnea+xkq3iBmoqFso KwO5CeDjzZjvQpiFcEatDOQ= X-Google-Smtp-Source: AH8x227enZduF0qSUoKf5Rpf2Fr69feudj7Z3VSNBSpZjwCEZ1uxt0775HlzQ4pRc+BlOiGaeL/h8w== X-Received: by 10.237.50.65 with SMTP id y59mr6040507qtd.19.1519235851235; Wed, 21 Feb 2018 09:57:31 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:a5e:d81f:f7db:5766:3221]) by smtp.gmail.com with ESMTPSA id d74sm19672514qka.68.2018.02.21.09.57.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 09:57:30 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Date: Wed, 21 Feb 2018 14:57:33 -0300 Message-Id: <1519235853-29856-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 v2] 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 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 --- Changes since v1: - Fixed typo in commit log "createcomponent" 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;