Received: by 10.223.185.116 with SMTP id b49csp2373293wrg; Mon, 5 Mar 2018 01:32:02 -0800 (PST) X-Google-Smtp-Source: AG47ELvbMcOhCgrXgebDRVwuKc7Ze5vMJqzJpYzUK/OnPi2eRiRaj6mowDxsLTX/bE/AxhUOkCA2 X-Received: by 10.101.92.6 with SMTP id u6mr11756934pgr.440.1520242322563; Mon, 05 Mar 2018 01:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520242322; cv=none; d=google.com; s=arc-20160816; b=j0rVtUEUGkz39McHffacxwkFkpljQVQXTPQIyN+/EqFFDLF6TrwAKZV1yDw32HGN2k +qkDTX0AXPhmwLUXZ+qK0otYO1lRDM75Hx9QHG4VoZRC96PVYaCqNKaW3QfKVf8Dj/zS QgpT8OJjJ8YEhXnZXxnQWSfEubgJ6m1GaCusTOBEkBt3G6sWq2PtxqsFvTSOk2d++Lxe hiafUFSlAxSZK6aVae2swzFkURuAbpkEX8KYGd1zWG/U5TyWCp5K7OO9a4FZNX8JUCpY OiDqCdJ8QnlQSzxKO1oA6zs4673SQVklgwnzpefZfi0pg6ybeyx8PDlIAi0aZtx+qbxw TL8g== 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=8VHD7+7DROM3EwXV4uKm9Q+bYUuOh02L904nudF7YTU=; b=nqi8Pe7n9ac9csNqEq5H93X2dG3s/m61LtBC3GG5MWUurksdIDaH8ulStibEVhViZW k/qjvAQkaGnGGKLAgjgK8Klje+FXvJrN+rktbwar/hkfim0R7mIUQppC3+U9q1bZ+NYk Vzg5zPxPXxp/CxIjOdR5FJWJ2To3bp/FytG1ToIvjSUfnQ5BmQ2pHiRZHUFuMtDt7nhQ jD0P1y/m7Exy64Q8UBHRHfBQ25gwE3HqtIQQc47gMC499d4dZ9zwir8sJoMKIEtjIuON vb7drVH0PrJbQr7HHyXkpq9zMYYnrJIUMvdO1CR2I5sfmmmjnIIozJOqzycj2/TKYOX3 zrOw== 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 k24si7136127pff.350.2018.03.05.01.31.37; Mon, 05 Mar 2018 01:32:02 -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 S1752571AbeCEJSg (ORCPT + 99 others); Mon, 5 Mar 2018 04:18:36 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:46428 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbeCEJSd (ORCPT ); Mon, 5 Mar 2018 04:18:33 -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 1esmGN-0006Oo-PQ from Harish_Kandiga@mentor.com ; Mon, 05 Mar 2018 01:18:31 -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 09:18:26 +0000 Subject: Re: [PATCH v2] mmc: Export host capabilities to debugfs. To: Shawn Lin , , , , , CC: , , References: <1520223870-3471-1-git-send-email-harish_kandiga@mentor.com> <40000048-4f64-792d-ba38-25a15be8569a@rock-chips.com> From: Harish Jenny K N Message-ID: Date: Mon, 5 Mar 2018 14:48:16 +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: <40000048-4f64-792d-ba38-25a15be8569a@rock-chips.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 01:21 PM, Shawn Lin wrote: > On 2018/3/5 12:24, 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 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)) > > Perhaps you don't need cast, and '&host->caps' should be fine? Yes. I will send updated patch. > And you don't need to export host->caps2? I will send this is as a separate patch, as this also requires changes in mmc-utils sample application to parse the value. Thanks, Harish Jenny K N