Received: by 10.223.185.116 with SMTP id b49csp3875342wrg; Tue, 6 Mar 2018 06:29:35 -0800 (PST) X-Google-Smtp-Source: AG47ELulXclVTmV2LwPnbVMQOw9CmwAFS2Lxz1ZTZ2o3tQWr5nrBKzX6ZJkNjFs4KcrL0ZXxj2RP X-Received: by 10.101.67.198 with SMTP id n6mr15297367pgp.150.1520346575093; Tue, 06 Mar 2018 06:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520346575; cv=none; d=google.com; s=arc-20160816; b=sxn2k/AYAMYQ7PfUnsrfHTiINkaZTu8+vG+/Vp1Tu/D8q5+SpXtk1TinuW7WEIcuvG fhQ66vtY6I0TQOkB3o12uD9njcCQC9g59u60OZ01JpGgV1N54FqUTIl7dj7BJZuRJk9t J+PeIfkCS/oojjQ7Zb5z8l/CYI6vMsb8sB+A5FcJUlsrlqVlEfc7/lW1raQlXKFyGHii Zxdo2MQoqjPx84K7nRN1rg/3YTT03+CsuZBSK1Mgus7JWHA46AQvihkAXQqivgZxkUIG W56qVVtJhP/dgmYEkktuH0+OuvtOktRpLmEYjXKqQY6Rvk6k1XgCfaTESTNHMoIPvoAO plIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :cc:arc-authentication-results; bh=vUeCUiM5dqt5g1A2yrMQMTklZwyCypVQuf3F890YESU=; b=qmnodq9wSJthXeLu+alnXE6N4Rs0lp3RGFIEBk09hiGSDtABx5W9/a1CkHuarCA6T+ IhciUjLs1ZG6Vjw8ZmPFfbjqa73ndYEVOiTnP9hdSbq4ryRtonfKEBbxjgy+WHbdwb4v 9dJeppbQyBEEXSiCWRHunu4EZUs6z4eGndu9JEl/MzFbR0KOfmyj87dQLryKwh5XeHzP YXGvUsL7i+BWm8FnoHJ//Iqnc0PCJBqdRyK3u77aFXDKpFZ/4yr0vHVnFc80KgWqJrCj XyvlHbgv2nHHUNgUkZACfl3wH9zdhi8YVIco4Rs5BqDpjyj442tL3GglovaA31ZMIXyE xBTw== 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 z7si12062054pfg.278.2018.03.06.06.29.20; Tue, 06 Mar 2018 06:29:35 -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 S1753654AbeCFO2I (ORCPT + 99 others); Tue, 6 Mar 2018 09:28:08 -0500 Received: from lucky1.263xmail.com ([211.157.147.133]:34942 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbeCFO2G (ORCPT ); Tue, 6 Mar 2018 09:28:06 -0500 Received: from shawn.lin?rock-chips.com (unknown [192.168.167.229]) by lucky1.263xmail.com (Postfix) with ESMTP id 3E2C6949FA; Tue, 6 Mar 2018 22:27:36 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from [192.168.1.105] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id B04943A3; Tue, 6 Mar 2018 22:27:36 +0800 (CST) X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: vladimir_zapolskiy@mentor.com X-SENDER-IP: 220.200.58.142 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: <19c388a2931be0557130b71bd559ac66> X-ATTACHMENT-NUM: 0 X-SENDER: lintao@rock-chips.com X-DNS-TYPE: 0 Received: from [192.168.1.105] (unknown [220.200.58.142]) by smtp.263.net (Postfix) whith ESMTP id 14389MQRPTJ; Tue, 06 Mar 2018 22:27:38 +0800 (CST) Cc: ulf.hansson@linaro.org, linus.walleij@linaro.org, adrian.hunter@intel.com, avri.altman@wdc.com, andriy.shevchenko@linux.intel.com, shawn.lin@rock-chips.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir_Zapolskiy@mentor.com Subject: Re: [PATCH v5] mmc: Export host capabilities to debugfs. To: Harish Jenny K N References: <1520344425-13131-1-git-send-email-harish_kandiga@mentor.com> From: Shawn Lin Message-ID: <6d51c3b3-abd3-82a8-ec7b-da063a9e5aaa@rock-chips.com> Date: Tue, 6 Mar 2018 22:27:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520344425-13131-1-git-send-email-harish_kandiga@mentor.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/3/6 21:53, Harish Jenny K N wrote: > This patch exports the host capabilities to debugfs > > This idea of sharing host capabilities over debugfs > came up from Abbas Raza > Earlier discussions: > https://lkml.org/lkml/2018/3/5/357 > https://www.spinics.net/lists/linux-mmc/msg48219.html > > Signed-off-by: Harish Jenny K N > --- > > Changes in v5: > - Added parser logic in kernel by using debugfs_create_file > for caps and caps2 instead of debugfs_create_x32 I'm fine with your method if Ulf likes it, but could you use DEFINE_SHOW_ATTRIBUTE instead? :) -- Best Regards Shawn Lin