Received: by 10.223.185.116 with SMTP id b49csp2169163wrg; Sun, 4 Mar 2018 20:29:22 -0800 (PST) X-Google-Smtp-Source: AG47ELuHCfNsOQ8Ie5hUnkRlGn6n0A3Lxzp0+TY5DLcDYS49HZEmNZiX6bEWxLaLswQa1gVNDtWn X-Received: by 2002:a17:902:5596:: with SMTP id g22-v6mr11589956pli.4.1520224162280; Sun, 04 Mar 2018 20:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520224162; cv=none; d=google.com; s=arc-20160816; b=Eb5YcItjCtD+QMsMVOJk967WhT/YXQGaT3AZMSmWdAOklwss0UU++OvOTvomss5334 bp1Ywy9p/1h1FHD70zKfzgSU0bWqiC1RNqdb2ALTRJyNkxepLa9pN3ofXcDE4LlT7jmp MpjlYzEVueVARLDXf+sVrshhSWmAGn8fNrmKu1WEy6/nmFh1LeUhy5r0j5ZaC1Lpmu9u VrWDM4LMbyZp2DLv1Sc65m13EbaUnwTgj1599CvEzRYukaDLukvrgMn9/v7dvohGTJJT Il5YkPuTC3QfAJClIjypyusLqVB4NJ9gymDkj2djXwwdAyh4YMpUgPGzpLE20qYKH/kw K1Rw== 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=NkeUPHYPyI75AuceAtF/GXolokA+WvVDRpKP1iyfL7Y=; b=zO2rUE9pthIK7RWK9YGpE8AyylpLmnOimuJ10VhsI4VEb/cySrdzh44+7PCXRfyZEk 3ukQGfZBH/AMReCP7Ef7J7DmSQvUaGs7yUDva4leFWU6ux+uboN9/FAh6AHLz+Fi9Xz0 uLv/TjLjhs2KfecJiOf4HxDfYnspzRbuzeg2S20luMudL+hhte0O4lPdVo4NrxWebGUx 5euQNSsHn496Ewn3yqjEWpLDRdKges14hl/t5fral+p6Ju3Vgm94waXLX5h9BVDNX8XU 42hghiu77t7NDnNjFqJ/2+qyHQ0CE7nAK4UR54/VbMXl51VwLHkWNr5z+lz0xetdYxmY 9wIg== 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 w10-v6si5770029plq.458.2018.03.04.20.29.07; Sun, 04 Mar 2018 20:29:22 -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 S932539AbeCEEYh (ORCPT + 99 others); Sun, 4 Mar 2018 23:24:37 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:58293 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbeCEEYg (ORCPT ); Sun, 4 Mar 2018 23:24:36 -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 1eshfv-0004nx-5V from Harish_Kandiga@mentor.com ; Sun, 04 Mar 2018 20:24:35 -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; Sun, 4 Mar 2018 20:24:34 -0800 From: Harish Jenny K N To: , , , , , CC: , , , Subject: [PATCH v2] mmc: Export host capabilities to debugfs. Date: Mon, 5 Mar 2018 09:54:30 +0530 Message-ID: <1520223870-3471-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 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..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