Received: by 10.213.65.68 with SMTP id h4csp1655309imn; Thu, 15 Mar 2018 06:05:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELuaPdPZmcdG0T9K8LAU3Iso1D2oOqSpPyriciy4ZkFDTW4w7MkmQz3GfSogvmiB9sKgN60J X-Received: by 10.99.51.74 with SMTP id z71mr6611437pgz.272.1521119118452; Thu, 15 Mar 2018 06:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521119118; cv=none; d=google.com; s=arc-20160816; b=UmdgMYhcXglSyWCMnYZuqGGifSmY760cKWZcyLacqd6Pwo4P7v1pyH9b4Yr/9Kvjzu 5KsmlIOaDHhBA2Xu5a5YxqWrCLK7eQ2idkKUmPqZGIopIXvMcl8IJVvu1DCr7ghIB1cJ fyTVp/aI0+CHtJ+ceZDBvpm3lC1g3AwWJZWECXhjl+eHgbyFgnO34M0gSCutpVdWH3RY QVLv/5alwmTxJ/0Bqzmx93+TDG8+8sMoT+FfwslcBPRpXeLRWckKvlLFi2XpODlcFuBT vEBChIjCiQzqHWI5cN46vGKjbS/25vqjYQOKNYgmh2uuAn8MGd0kM6cj7ySAkWAh8QV0 gd5w== 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:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=OgiHsReYDT5nzmfqxCeQnm0rI0O7Tja+5FJbXFBXlaI=; b=Z5g/Kxyl1Qc1nTIprFuhQ/4Zkt14lnlJGh7XA+F7g9QKNkM78gMT3vPE7QeKuJynBT HRCAGygNYtjSlb8OXrDMW57SmuFWdMsGK5VYiX1xpVBBGlyns9QOERuLG8cb58bVTWna fcU0DBzAIOX92FfjG6nQoKPY2gTm7O4G5SxdRQrZdSWmN51n9JqDdVuBEuxgQw/EVJf7 0SoKLj/tXCUXgZYKTxDLYd/rxU2lVCrtVbMVO6jpb3P5xv6HcRUpZma7hnM99cVJNUeF OSuhWaDBcH5rYkZ0I3X8ztRVWWfxG3Ranyd/udMQygvpPjEMJXHVilbuVXPwCmmHwLB/ DxmQ== 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 s9-v6si897894plp.171.2018.03.15.06.04.48; Thu, 15 Mar 2018 06:05:18 -0700 (PDT) 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 S1752404AbeCONCN (ORCPT + 99 others); Thu, 15 Mar 2018 09:02:13 -0400 Received: from mga12.intel.com ([192.55.52.136]:60360 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbeCONCM (ORCPT ); Thu, 15 Mar 2018 09:02:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2018 06:02:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,310,1517904000"; d="scan'208";a="35249851" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga003.jf.intel.com with ESMTP; 15 Mar 2018 06:02:09 -0700 Message-ID: <1521118928.10722.658.camel@linux.intel.com> Subject: Re: [PATCH v10] mmc: Export host capabilities to debugfs. From: Andy Shevchenko To: Ulf Hansson Cc: Harish Jenny K N , Linus Walleij , Adrian Hunter , Shawn Lin , avri.altman@wdc.com, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Vladimir Zapolskiy Date: Thu, 15 Mar 2018 15:02:08 +0200 In-Reply-To: References: <1520917812-20047-1-git-send-email-harish_kandiga@mentor.com> <1521109575.10722.654.camel@linux.intel.com> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.5-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-03-15 at 13:29 +0100, Ulf Hansson wrote: > On 15 March 2018 at 11:26, Andy Shevchenko > wrote: > > On Thu, 2018-03-15 at 11:12 +0100, Ulf Hansson wrote: > > > On 13 March 2018 at 06:10, Harish Jenny K N > > .com > > > > wrote: > > > > > > > Honestly, I don't like this, but maybe other people do, then I am > > > fine > > > with this approach. > > > > > > If were to decide, I would just rather print the caps field in a > > > hexadecimal bit form and leave the translation to the user. > > > > A compromise would be to print both: > > > > 0xHHHHHHHH\n > > Description of each enabled field, one per line > > > > > > Another format would be: > > > > Bit XX: Description of a field > > If we were to print the description, there is no point in printing the > bits in hex. Or is it? It is helpful for scripting (since it's debugfs, under scripting I mean something rather for test suites than for actual use). > As I said, if you and other folkz thinks this is valuable, then I am > fine as well. Just saying, it's not my preferred option. -- Andy Shevchenko Intel Finland Oy