Received: by 10.223.185.116 with SMTP id b49csp2632673wrg; Mon, 5 Mar 2018 06:19:49 -0800 (PST) X-Google-Smtp-Source: AG47ELuqRUP8aJsUK7DGMWVTq8LioqFJPiap4wtQ5top94lGPCmIiK55GEa7q9r49USpRCmfOoRE X-Received: by 2002:a17:902:8215:: with SMTP id x21-v6mr13496688pln.164.1520259588935; Mon, 05 Mar 2018 06:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259588; cv=none; d=google.com; s=arc-20160816; b=JbjBsdZMRPP+nVuESZOCIIaGh2VvCmmTaiLeRYKLU7X/gtypkPRqUDX11UIqw+fW31 eem4mMu1nXtwixzLx8xRhUtLiOS9YDK5gH9x/MreftglNxOu1YNMzjUK0KCzV/rvmHjn M1QfHD2YOP3fm2oKaOalVqAQtwXpHnAJBdPXZMmcYcIKma214ZSO2NR/fo5sUM7BF7GJ eu4zhtV/IE73CgqnUPypP6WWj0uoCnDuiM1+D7TOWb4mt6GD4QkkLlCRZvySxefF2NC6 ixV1BXswh+x4wZs5n2f2YDaUw8DE1XFn71o5GaC9cfmwMjk/u3nCKFhjRWt0A6Q+TUjk stQA== 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=j93+v2cWewR8LDbg62rs1HrDseVT7RlukrTthMT0PMD+O0LFQMF+oSfADL/rL0ey6r D4n1/HNLRccR+F42s4lhBZqFRfzEh+ZDq6oL+VxnvDKXjWZr7S4RHn5S3P59d5i2d1dg uCvB41pW8o9XmHr4pGZCfSX3C3RqDXXXhP+RBD5hq0vDl3Vbi5EvPOHbRiHjdPKMQ5/0 YemakgcA2N1xkb9pD8uRQeOVJAwCmE3RakPJk+GyDGJo47UFZB7Bv4T2M5cEgQj6sGff IuTGioF3Ns55F2wrVYL9xXQMDeSEvN/Kckyy8Ff+u3EIxzQrf2JQTRZd5bLZ95xghbKU F8Gw== 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 n7si1236134pgv.831.2018.03.05.06.19.34; Mon, 05 Mar 2018 06:19:48 -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 S935200AbeCENj2 (ORCPT + 99 others); Mon, 5 Mar 2018 08:39:28 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:40521 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933511AbeCENjZ (ORCPT ); Mon, 5 Mar 2018 08:39:25 -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 1esqKq-0001jJ-26 from Harish_Kandiga@mentor.com ; Mon, 05 Mar 2018 05:39:24 -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:39:22 -0800 From: Harish Jenny K N To: , , , , , CC: , , , Subject: [PATCH v4] mmc: Export host capabilities to debugfs. Date: Mon, 5 Mar 2018 19:09:19 +0530 Message-ID: <1520257159-27699-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