Received: by 10.223.185.116 with SMTP id b49csp7416068wrg; Thu, 1 Mar 2018 05:18:38 -0800 (PST) X-Google-Smtp-Source: AG47ELvwMCZhiPIpfuc2j5LwFw4ReeSOMUZVultspfOSQMOKHmzx2wesgGuoLmvPc15NhvoEc/ny X-Received: by 10.99.49.208 with SMTP id x199mr4130pgx.424.1519910318390; Thu, 01 Mar 2018 05:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519910318; cv=none; d=google.com; s=arc-20160816; b=U4+9B1B1ZyCnW97yVoULwUMoq04SACDZv4CUXPdB8kQm+rTs5fN9JQYqIqMzQdfG4Z YEzwdfzfKnjE3CXtVdOB+xk3zjw5g1uuPyZsg/HrSAzOc3/aqgme1jOiYa5pR6bHbfJg lYKYNIJtNAaF9P32Ax5FmAmDunWMHrByKwqRPrD5I0fvzjZxX+Pa4CTo/uhu37Os1tXj oJ926mFY419APfk5zt4m9FfTjjTWwQDjLXqJBZi6Fw+rfOJz8Wm0C40GT41+7FBmSEon jkGRQQIqSMYaa/sAFwXnrGYMdVdB5WU2gv8tC1OePmBUFZT7w6iA/8Kz7p9VKlAMCq4q /Nhg== 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=uJ2Une5E3VQWXItxtgpWgFmFJIuI5PbQ0/iI7haqg+s=; b=vt7Re/wbRPKPG41thc4dvq4hWf4m9Y8sEVqlN6Wo34rJTFNDD+205gmCY7aFcVqGnJ 4qzCI+esy7+G83HR91Il95c07RxCTgI2mSXyU2IelbYaTr7I2fd5ksLihHyeyHCWZ4Ho FcwSAi3pXDpz7bhOT7pMoI17qf1l8dTOAFd2xTySWNC6vC4dX9aRlIyD469sGCGFk7uZ oAnpxqHUxO3bACo23lEhCYW23AL7ZWRcKY8+ujB/4eNNTub8zraZZRcxOwJ9gcLjoWoc UfNGIsuK3aueGN4v2AnUKrVoOm3o7fv1cRaaHmqy9z9dq1wqXnnWxo7hiC9IXydoOL4m EGYg== 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 t6-v6si3138400plj.126.2018.03.01.05.18.23; Thu, 01 Mar 2018 05:18:38 -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 S1030650AbeCANRo (ORCPT + 99 others); Thu, 1 Mar 2018 08:17:44 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:64827 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030496AbeCANRn (ORCPT ); Thu, 1 Mar 2018 08:17:43 -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 1erO5c-0001qx-2V from Harish_Kandiga@mentor.com ; Thu, 01 Mar 2018 05:17:40 -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; Thu, 1 Mar 2018 05:17:39 -0800 From: Harish Jenny K N To: , , , , , CC: , , Subject: [PATCH] mmc: Export host capabilities to debugfs. Date: Thu, 1 Mar 2018 18:47:35 +0530 Message-ID: <1519910255-6296-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 This patch exports the host capabilities to debugfs Signed-off-by: Andrew Gabbasov Signed-off-by: Harish Jenny K N --- 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..fa2df7f 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, (u32 *)&host->caps)) + goto err; + if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) goto err; -- 1.9.1