Received: by 10.213.65.68 with SMTP id h4csp231379imn; Fri, 16 Mar 2018 00:59:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELuG0N6yLIfKX+TyZbcKSDtM91MBJfJ2wNqNeTj+DDmS7LkpShq7b5eNHB0ufdMuHQlVKFLd X-Received: by 2002:a17:902:143:: with SMTP id 61-v6mr1055637plb.345.1521187143737; Fri, 16 Mar 2018 00:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521187143; cv=none; d=google.com; s=arc-20160816; b=xQGAS55b7lPsVhPkFn8d35DaV68gimTjue7yFQEtg6JwntICUOD0OCcE3w1b4sJpUX QLOAF9u4ihHZ7GK0obHYQWBqUU3danY3+BjLyXmYLQ0x0CSEq1zodpLDwiLrQDXvapXZ ISh4dSg61kF80yETdricvhwImupwuodMxhsI/MVmaBOIvIg8CmTeAzNNxk669aA6xKLL Y3oNGDDQHwL986qAqpWkRxSOY9ydSgvZOyglL8avszxbRXjy3GtydzpXkt2a5jhvDUAU b15lKhQXhQn/qYhK+A8IwWrCFvf5wlq9+rqvgihcL/gxNhbQ4qxN1K1H3NWZF4qpkocg CSrA== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=3SDy95QXbJB05hRYxmXjW/xK1mz4G5oMZA8KLDq21G8=; b=GzGyPaqf6894SkRUM6ZAOGkWUPePejlatKsHnkOjxbk6YM1dCmOm79lDVcbtgBajVm OV/uqe0fcQbalK3HOcdia3O/ODfyiFbKA52Nq+JpmHiH6PASVHg6NjZUFwQEgh2k8BkZ vubnPlJsTGCUG/7mpHRXTj5b8mSBcCpYZ1LZQwCtW5sbZ0aChpD40UbhtqPw1u410n24 QeqD36pYtwi+ky3vbZpxyfEH42e7UM7hQhPK+yx3YPRxVWQ3jA7/rNs1kXL+tbg02SVZ oEQkupEXGKMdZqYTrNOnmQck9g4rFOe4lPi3RT+zWqtb1KCdTqqGcHFd6nVgZa6mNuJt vFbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jHRU8n9e; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si4653891pgv.396.2018.03.16.00.58.49; Fri, 16 Mar 2018 00:59:03 -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; dkim=pass header.i=@linaro.org header.s=google header.b=jHRU8n9e; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752199AbeCPH5n (ORCPT + 99 others); Fri, 16 Mar 2018 03:57:43 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:34281 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbeCPH5l (ORCPT ); Fri, 16 Mar 2018 03:57:41 -0400 Received: by mail-io0-f181.google.com with SMTP id e7so11654180ioj.1 for ; Fri, 16 Mar 2018 00:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3SDy95QXbJB05hRYxmXjW/xK1mz4G5oMZA8KLDq21G8=; b=jHRU8n9eBE7QHiOLVBQro9pjZWyBxE6wLvPvDrGf36ET5S1dOMwN3nx2m3QyTvMl6M mxkTNfCn8/1bB3UKqSu4GVd57Df3zbMH56Rgi2OBIQfdzv2h+Zx+MAM1wPixZ7aKshQb q5Bc7V0282t7L8aOHEboRsrdAx4eEGVaO28Oo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3SDy95QXbJB05hRYxmXjW/xK1mz4G5oMZA8KLDq21G8=; b=Vt9BS+2tuOLZyNlWcn19tEbpM9MwwME0HnoAv6o3Vpyojda9BHcWXIKSuOXCbVuRk4 1Ro4BZBkcOD+i6YIe7tYODcGWeDVV2ruU1A9jJHQ8R2CpfHhGZGcL0h0gwBJDDuwsR1S qPsVFuri+sEtag7bBBnetFW2GVORnDQU8eamgayzsFDLaL/MplsS+SGQqlnzLZTvFXPW +uXYIGpBW4HvEPLBIuXj1kGcOp5MVvkthcuYRfVXV3+rYyQqf92ViirP6dFsaR5So/MT rqSiORkfi/gDLbDMl++G8AdReMnVWQxcOCCMgKhbiiyzN0JpN0TGMTZpJSeC0Lr21nBR Txfg== X-Gm-Message-State: AElRT7F/l+0yO3F4MF3Tr29pjAXMjDSsCPgr4evseDfVS4s+Ut2Z8ncZ 1okronvhB520JI8lsclVF7UZhSJC/zTRzr65c5iPlg== X-Received: by 10.107.132.197 with SMTP id o66mr783339ioi.119.1521187060900; Fri, 16 Mar 2018 00:57:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.101.23 with HTTP; Fri, 16 Mar 2018 00:57:40 -0700 (PDT) In-Reply-To: References: <1520917812-20047-1-git-send-email-harish_kandiga@mentor.com> <1521109575.10722.654.camel@linux.intel.com> From: Ulf Hansson Date: Fri, 16 Mar 2018 08:57:40 +0100 Message-ID: Subject: Re: [PATCH v10] mmc: Export host capabilities to debugfs. To: Harish Jenny K N Cc: Andy Shevchenko , Linus Walleij , Adrian Hunter , Shawn Lin , avri.altman@wdc.com, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Vladimir Zapolskiy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16 March 2018 at 05:20, Harish Jenny K N wro= te: > > > On Thursday 15 March 2018 05:59 PM, 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 >>>> 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? > Yes. I also do not see the use of printing hex value if we are printing t= he description. > >> >> 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. >> >> > > > I just want to inform that the idea of printing the description came afte= r discussion in https://www.spinics.net/lists/linux-mmc/msg48246.html, wher= e it was decided adding utility in mmc-utils was not going to work ( reason= : We may very well be changing the bit offsets for the caps and caps2 in t= he mmc kernel header, keeping a copy of them is not a good idea. It's just = a matter of *when* it will break). I recall. However, I didn't realize all these strings were going to be needed. :-) > > On Thu, 2018-03-15 at 11:12 +0100, Ulf Hansson wrote: >> If were to decide, I would just rather print the caps field in a hexadec= imal bit form and leave the translation to the user. > > I think translation becomes difficult for the above reason and hence I wo= uld prefer printing the description. Okay. > > Note: Printing values in Hex was the original idea and it is also availab= le in https://www.spinics.net/lists/linux-mmc/msg48213.html just in case if= it is required. Yeah, so maybe I should apply that one, then we can take it from there!? Kind regards Uffe