Received: by 10.223.185.116 with SMTP id b49csp2389959wrg; Mon, 5 Mar 2018 01:55:33 -0800 (PST) X-Google-Smtp-Source: AG47ELtFB80jdpcwGw6dZKUCnE2m7lw+DyodJgHFeaFWNWORAN0g+kzqPdYdIIgGbbX0EC1lcf+y X-Received: by 10.101.72.136 with SMTP id n8mr11875287pgs.201.1520243733818; Mon, 05 Mar 2018 01:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520243733; cv=none; d=google.com; s=arc-20160816; b=NW88K/amZX+BcNiCrp91DFDICJ1cshwu0xNaLxCojiTeEiBLfxroHaE2BFxUx7Wl5Z w6mwB+OkL3ugZfo/VaIQ6PcaS7dp+n0+++x+bF0/lX9K/OToszXo4TAkIz+cH+gJX2s7 cp0+xDtJanV21Wm95eSH6ztqVN8E9Lo9ix2pr3BcaWcfdJMDwhax6pwbq2slGVH4/lr+ ObhNWJjZuD6dGa+y1c8ANWQF79V0ArOaKBWjSa/QzEI+7T4CsT8HlVu5ydZOQkcr5/qp QnfgsUXpL/ZZ4clhpTVmtX87lfOnr26UoHXyD4+2/vzyCVKPgy379AzdCUy0e0by3rru OH1A== 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=+uA3wxwQQPTcczG4/OyegJkpJ6bVFJv20F3/WFcdZUE=; b=DL0tDRXHm9E+/6LBOdwQZtSPE5tce95YkQoolqn4Wp03edwqzSIjD2+e9s8jg8/l2X I++Fdtu/EBE0nN27A895oy4sxOxIkhu71n3sTsVwgXoBa3G17Wq7++m6GvYwvvysNr4Y +af06xqlm7WViJ2uR+vJmhh759hzmOSVuNYHx5F2CGqNfzUaOGKf7n09+9ilIS1JI95i 8WndDcErOyihy/Xl2FqBfEBNu+MWIhBt2K/EGbZSHFvhRBLG+rntcR7sF+ojVxLIhTMp XpWk6lc2PDBSR35yUzsBsMJA1y4/kd+sAh05Lb8WuYd1Lr/B9JL6Hid6epWhc0+PPT2z oPmQ== 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 83si8102390pge.817.2018.03.05.01.55.19; Mon, 05 Mar 2018 01:55:33 -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 S933409AbeCEJ2s (ORCPT + 99 others); Mon, 5 Mar 2018 04:28:48 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:47306 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932935AbeCEJ2p (ORCPT ); Mon, 5 Mar 2018 04:28:45 -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 1esmQG-0000Mg-N8 from Harish_Kandiga@mentor.com ; Mon, 05 Mar 2018 01:28:44 -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 01:28:44 -0800 From: Harish Jenny K N To: , , , , , CC: , , , Subject: [PATCH v3] mmc: Export host capabilities to debugfs. Date: Mon, 5 Mar 2018 14:58:40 +0530 Message-ID: <1520242120-2924-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 Signed-off-by: Harish Jenny K N --- Changes in v3: - Removed typecasting of &host->caps to (u32 *) Changes in v2: - Changed Author drivers/mmc/core/debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index c51e0c0..570c9e4 100644 --- a/drivers/mmc/core/debugfs.c +++ b/drivers/mmc/core/debugfs.c @@ -289,6 +289,9 @@ void mmc_add_card_debugfs(struct mmc_card *card) card->debugfs_root = root; + if (!debugfs_create_x32("host_caps", S_IRUSR, root, &host->caps)) + goto err; + if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) goto err; -- 1.9.1