Received: by 10.223.185.116 with SMTP id b49csp2632326wrg; Mon, 5 Mar 2018 06:19:29 -0800 (PST) X-Google-Smtp-Source: AG47ELt9Behiu3WvSHah0V3yom6EZ6p2FJpJWo1OF2Ud9BOv9HG7U+8RZXLFCZHtvEtTTmyNeQaQ X-Received: by 10.98.226.16 with SMTP id a16mr15351285pfi.157.1520259569359; Mon, 05 Mar 2018 06:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259569; cv=none; d=google.com; s=arc-20160816; b=WPxq+X8jiSeBSwtM3eGexxeO5LXi/NtrqBWuyTLDikEwd59lurFin0mXU3EGjplXs5 Q7J46sJpIP1ASSSxYE9AmhF5VvDNDEe+WvZ7x5PiqQ0XhgU06sCcAHohR1kX1fVDm949 NIDa3ysct3a9QIIHTXvXwpeceAE+KpGIn0lD6j0wTaQyBKt21Imbty2ZU1FMCHHoRF0c sPyZkWkhBb4lyk6+b1/rkuwfAnbdTNgk3naR/L/cILBBoIiMOx/pYTTeKrFdnIPbT7jF TxUm9p7oxgi9rSVdnVaM2xmVEKMoDJ6lLbNuddqvc1Lfk0NoOoQP46B2vyM6rqPbe+M0 Bl6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=ySgTBv8zBP+AM44pUCufPmJI4OTbg20Sq3I0lS+JnIs=; b=sdv+g33HQcPQNmmHRU3yu1nPKOycaswKWFYctgolcCWcCQ/lxemt+3YR/hkmIELUHJ nlOnPPzJzf8sgcslHXgYDbRF22tTIj4F0p40jDPTh8RoWiNPSNFdbVqUuYwnqxBSyjv8 JLh9LFK0L++3G4TSsgYSZdw/yWIhFWNMSeETZ79UwriFkVvrOJjVEveyLDvDzUWavHgI DEN3xIud72F2KJ+FUNvkl+doUWj83rbCXI5glBlRK3LifdZDR3g3xdqO7gTfWicjwruW 90hg5AIU/5CwGdLrBTx/ucCZ6E7mK82+zHFPEO/e7b51RlM0HkhBrKwW/so9DGlDHh6o 8qlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si7884762pfi.32.2018.03.05.06.19.14; Mon, 05 Mar 2018 06:19:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935175AbeCENi5 (ORCPT + 99 others); Mon, 5 Mar 2018 08:38:57 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:40471 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934037AbeCENiy (ORCPT ); Mon, 5 Mar 2018 08:38:54 -0500 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtps (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1esqKH-0001aY-BU from Harish_Kandiga@mentor.com ; Mon, 05 Mar 2018 05:38:49 -0800 Received: from hkandiga-VirtualBox.ina.mentorg.com (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.224.2; Mon, 5 Mar 2018 05:38:47 -0800 From: Harish Jenny K N To: , , , , , CC: , , , Subject: [PATCH] mmc: Export host capabilities to debugfs. Date: Mon, 5 Mar 2018 19:08:44 +0530 Message-ID: <1520257124-27647-1-git-send-email-harish_kandiga@mentor.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Abbas Raza This patch exports the host capabilities to debugfs Signed-off-by: Abbas Raza Signed-off-by: Andrew Gabbasov [Harish: Added caps2, moved creation to mmc_add_host_debugfs] Signed-off-by: Harish Jenny K N --- Changes in v4: - Moved the creation of nodes to mmc_add_host_debugfs - Exported caps2 - Renamed host_caps to caps Changes in v3: - Removed typecasting of &host->caps to (u32 *) Changes in v2: - Changed Author drivers/mmc/core/debugfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index c51e0c0..d2275c5 100644 --- a/drivers/mmc/core/debugfs.c +++ b/drivers/mmc/core/debugfs.c @@ -243,6 +243,12 @@ void mmc_add_host_debugfs(struct mmc_host *host) if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) goto err_node; + if (!debugfs_create_x32("caps", S_IRUSR, root, &host->caps)) + goto err_node; + + if (!debugfs_create_x32("caps2", S_IRUSR, root, &host->caps2)) + goto err_node; + if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, &mmc_clock_fops)) goto err_node; -- 1.9.1