Received: by 10.223.185.116 with SMTP id b49csp2633572wrg; Mon, 5 Mar 2018 06:20:38 -0800 (PST) X-Google-Smtp-Source: AG47ELtdgvv7RtY5D5sj5n1j0cIvrkOhwdE3Ggzopej9CWHGSlY8btUPwDYnTosffk30yDxIY+lA X-Received: by 10.99.127.69 with SMTP id p5mr12230640pgn.346.1520259638638; Mon, 05 Mar 2018 06:20:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259638; cv=none; d=google.com; s=arc-20160816; b=roVsedYbwSj+3nZ+v2NI5ofKUOnaaXEwY1RvAJmS5Z+8ehRSvEGsgidblznQEGD0uC ib0+XEOgl/a3K8v9L7fXgtl29M/72wIyiKdAJBKTp+rCe2V89YJo34z0Z4sZoQL/SLf7 FF+qoRXVI4fRj/d8IC2Cm+90TzWF9l3Cx3ZWyaz7KkvTUCW6xq93MsC43rIxDiwPdxs7 S6NMtuNB8PyUX8iw1IWXsfRv7tN3SEqEbC7KNZ18eizF4VEosnjD469eiqNkNunAfbmE W8nSkuITyghKGJw5VsGTgu8fRL5f9y9BmJQ939a4XlEP0IcMp/eoOQUFPjxV7a4qDmy9 +hBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=XbLrkdFh8v7/QarDCCf9cyW5UV++q6uC0GIQXRJKNzc=; b=mZb2Yu2EnSDHglyiseFv71VKXvFztDmU8J7VOPpNSvUkBpIxJ7iSlfgFquLkedjqJn SnA4XfAEtX4VX7V/Fp9gmcWLsxyetKKxtBKdqAuanhzkGxU98tRn03QZu49S6U/ibD3A 6kLLtG77U/ulj0o+6cIWJR0O3zKOcoStsUm0hO0auka2y2EQAhwZXqVikrZI4OZZvpa3 wyVXWzUsObFmvJIegit4LtLVcikr00rLmcax9UyV2ukYPqW/cYjKDkP2CvHraGebx7sn uR5igmK6S5Fv1ONsrqEpm5aUcYph73Wi/b7V0MwCZxGEKZR6bXsIbsCrdFQ+AcMs5Z/l tECw== 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.20.23; Mon, 05 Mar 2018 06:20: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 S935264AbeCENsq (ORCPT + 99 others); Mon, 5 Mar 2018 08:48:46 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:41713 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933502AbeCENso (ORCPT ); Mon, 5 Mar 2018 08:48:44 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1esqTr-0003lC-U5 from Harish_Kandiga@mentor.com ; Mon, 05 Mar 2018 05:48:43 -0800 Received: from [10.0.2.15] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 5 Mar 2018 13:48:38 +0000 Subject: Re: [PATCH v3] mmc: Export host capabilities to debugfs. To: Ulf Hansson CC: Linus Walleij , Adrian Hunter , Shawn Lin , , Andy Shevchenko , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Vladimir Zapolskiy References: <1520242120-2924-1-git-send-email-harish_kandiga@mentor.com> From: Harish Jenny K N Message-ID: <9c263aee-7780-9ac9-7433-d4a5ca445f16@mentor.com> Date: Mon, 5 Mar 2018 19:18:26 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 05 March 2018 05:43 PM, Ulf Hansson wrote: > On 5 March 2018 at 10:28, Harish Jenny K N wrote: >> 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; >> + > This isn't the correct place to created the node(s). Please move this > to mmc_add_host_debugfs(). > > Moreover, I suggest you export both caps and caps2 in the same change, > there is no need to have two changes for that - and finally name the > nodes to "caps" and "caps2". Addressed your review findings in v4 patch. Thanks, Harish Jenny K N