Received: by 10.223.185.116 with SMTP id b49csp4704188wrg; Tue, 6 Mar 2018 22:41:58 -0800 (PST) X-Google-Smtp-Source: AG47ELsZknE7+WyFTMz6A+A499mM4XxvESN4Y8pUtz8IFLx1YHSsZazY0t1yGjTTtr8V+Vd/0tWR X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr19786704plb.119.1520404918749; Tue, 06 Mar 2018 22:41:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520404918; cv=none; d=google.com; s=arc-20160816; b=ZQQ297w9bubVYuIp4kL5eEFz+lE0j5XydQRD2bC8RPHgQej9BavNyMbEHTmnOHRpIV bqy6SenMsiHqrcpAdE7KMqfYjKnazkFJY2hV5VmUbvCFRCsPvYuXprN4110f+ytxB+eM 7YNaIBakrqAKjDf0qVfqwKMy/U5kOEwGWkoWpKuhl9If4ghrZBT9YpHhskVH13QplBBo 4gA0Q0cuvHO0WMcKfy8bDw3Ezd3BFn1Gloqr6u9pK/NfHAqBvlZKKdaHdAQDju8QUQ6U oEcW3pYv7L6LjnNkWrxLe0Ga6YOv4beUtv+Fml8Nfgi8CcUPYfPa3iOHe4xhBM+Ah4Yw lbxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:wdcipoutbound :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=vjf8e2dWTVZLTa55SObCf/RaeewQQU5dEQndcPcXNNI=; b=oyzNbTLNnIWAEx6pqKaFoBlCSAKcvK0Z9aT2vu/4dmShU1C0G73Xo5W42JTWA6dnOj j+8/MqteQOS0p5s+FdNal+C3nwWm7OaVQBdNE1xHZLbF0rX/tmNspf4Q9vsXyfykhIpU hdiB+D2++1kmgIjg5UDmLxmJrkEHgnqEv/rfOg24xVABYBWhX2Ah3xq3ucUBR8lQ9M48 Eahsjq3zf02wIjL3vrrHiJkeqA1GGpAYx7GSuz0LXrv4Ta954tA0O1hZQguP8CFGAvcn 8HNpOUAP6EQVIVRF7J7NQMIrTv6ZHdW2KCwF0D/HQjNz/U3dzrA8l73V0H1dhVtcOtMS 9kNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=U+ciHVwk; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=dAXuV6Fh; 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 p11si7040698pfh.247.2018.03.06.22.41.43; Tue, 06 Mar 2018 22:41:58 -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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=U+ciHVwk; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=dAXuV6Fh; 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 S1751074AbeCGGku (ORCPT + 99 others); Wed, 7 Mar 2018 01:40:50 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:31944 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbeCGGkr (ORCPT ); Wed, 7 Mar 2018 01:40:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1520404847; x=1551940847; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vIYoMzri8CRbxVYkJf0+xP6+RwgO+p4pc1CIqnSoHME=; b=U+ciHVwk6Afff9uychVj8NlmFZa46HO1zNUfYTz+C9SPvA5Pp0K3OM6l jwVrDLJrVZyP5jWs1L1LTUoyiU3t6R9UhjNo/d82s59hvkHVDGpGNYS5P lVgLfRURg5zhn7wIXjVtVmTrKn9LgfJfsIvk6YFjcAHafvagh7PzEsdp9 yJxa9LnuwxysC7CbTjORzx9RwuyxiZTCPWzdP6RPg2zNG0utbiLX546b1 y3zxHRB+vgHdfB6zdxnLxPXObVVUinOZ6HieC5YFJpdM6czBSTmR3kF+Z GubsHbnB0z/Yy0IkZ5jvWVjamPTljfi9wTadNC9/m7stUvxqPi+Fu8wG/ w==; X-IronPort-AV: E=Sophos;i="5.47,434,1515427200"; d="scan'208";a="73612130" Received: from mail-sn1nam02lp0024.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.24]) by ob1.hgst.iphmx.com with ESMTP; 07 Mar 2018 14:40:46 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vjf8e2dWTVZLTa55SObCf/RaeewQQU5dEQndcPcXNNI=; b=dAXuV6FhOGhl8L+dtIUksBEnFenoB1VUCCwE0mJOvVE7NVccPfugY3BcVrByr1cb3pjiWxlJhjP7R9e2mAms1yRNEFbfaXTgMLYzzOhzPvE2nBWETHTvoYEFYmBlGLvN6/AgTbiA9DvO3zMJKlWcGYjEVsvQcuSDe4XazXnPJRo= Received: from DM5PR04MB1085.namprd04.prod.outlook.com (10.174.242.35) by DM5PR04MB1147.namprd04.prod.outlook.com (10.173.173.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 7 Mar 2018 06:40:44 +0000 Received: from DM5PR04MB1085.namprd04.prod.outlook.com ([fe80::e079:df5a:b22d:8154]) by DM5PR04MB1085.namprd04.prod.outlook.com ([fe80::e079:df5a:b22d:8154%13]) with mapi id 15.20.0548.016; Wed, 7 Mar 2018 06:40:44 +0000 From: Avri Altman To: Harish Jenny K N , "ulf.hansson@linaro.org" , "linus.walleij@linaro.org" , "adrian.hunter@intel.com" , "shawn.lin@rock-chips.com" , "andriy.shevchenko@linux.intel.com" CC: "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Vladimir_Zapolskiy@mentor.com" Subject: RE: [PATCH v6] mmc: Export host capabilities to debugfs. Thread-Topic: [PATCH v6] mmc: Export host capabilities to debugfs. Thread-Index: AQHTtdZuKkHx5ynt6kqgcWhh3VT3raPET4/w Date: Wed, 7 Mar 2018 06:40:44 +0000 Message-ID: References: <1520401051-11135-1-git-send-email-harish_kandiga@mentor.com> In-Reply-To: <1520401051-11135-1-git-send-email-harish_kandiga@mentor.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Avri.Altman@wdc.com; x-originating-ip: [212.25.79.133] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR04MB1147;7:KjpOcjpo7sncwlIkO2dGlQeEexK0qCHCxUtAMAEP58FEPp0m2MDeWNdS7lLb81agsHvP6Qo39pwlC8Zehx2b++R95gREdx7rYfl3yBnmaRZKp9COlJSLu3A30NoSy6QcAgIlJVxZA+ieSXTbFY196xwVZdx3AqULOSs1CdiB5RMfQc1TLzXkJQXX+BSMJtBRRy1nB4NVJ1wX/yo2rrtAp8/+MXxjdOjdpwwotA+NrJueNI8QY9WpKf+50H3/vI0C;20:s9VwUWwyKHRmLCu8GuJQMKVH373Eq96G0vzMKt2tjskwK5OKRSuIkQ7Dv4MeXrog/1PCrIV/mREODI8Iv9zDd+y7Snnt8WhaVt8h06086naIHT07x37e3P0pmSgj5HuNodzsQ72yOQ1mubuo0V76bVug/vJ1H3e1O5Hp7KcKM/M= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c6073ed3-1066-425e-87d3-08d583f65a54 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM5PR04MB1147; x-ms-traffictypediagnostic: DM5PR04MB1147: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(3002001)(6055026)(6041288)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR04MB1147;BCL:0;PCL:0;RULEID:;SRVR:DM5PR04MB1147; x-forefront-prvs: 0604AFA86B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(39860400002)(39380400002)(396003)(376002)(13464003)(199004)(189003)(26005)(3280700002)(316002)(2201001)(2900100001)(110136005)(54906003)(229853002)(14454004)(25786009)(2950100002)(86362001)(99286004)(186003)(76176011)(7696005)(106356001)(5250100002)(2501003)(72206003)(3846002)(6116002)(478600001)(2906002)(68736007)(8936002)(5660300001)(33656002)(305945005)(7736002)(81166006)(81156014)(8676002)(74316002)(105586002)(53546011)(9686003)(966005)(6506007)(6306002)(66066001)(6246003)(53936002)(6436002)(97736004)(102836004)(55016002)(4326008)(3660700001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR04MB1147;H:DM5PR04MB1085.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-microsoft-antispam-message-info: 5mlTz2k4bwfYbTMPA1rfygog+Gs+N4vKBXcQs7dIivugh2W80ICevGFYqMRK0BGfuFxe7fcLtvcRlznKC6injQwVnSXh/Zdj4yazYuy7yRHvkCiQIbCzGa1hcXrNm0t/jgebEfbDXUK9Ya6OdvEz73AnDKH2CTN5eYEDhNtLLhAc19jOcTivZZkkshWxgAKEJCZAe5RN4Zn9oMHygQdDBtbmi/IvX4qTb3XZHM30s9MZkllvARQPOvMGToTgCzc1RJOpsLwghfHoZUCq+ZNtNW52wOlfV9udfKeB13AYGRTytVFaVSdWx77+USt9KuZxS5T8r0f+zFBf45jmCRq9iA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6073ed3-1066-425e-87d3-08d583f65a54 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2018 06:40:44.2069 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB1147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Harish Jenny K N [mailto:harish_kandiga@mentor.com] > Sent: Wednesday, March 07, 2018 7:38 AM > To: ulf.hansson@linaro.org; linus.walleij@linaro.org; > adrian.hunter@intel.com; shawn.lin@rock-chips.com; Avri Altman > ; andriy.shevchenko@linux.intel.com > Cc: linux-mmc@vger.kernel.org; linux-kernel@vger.kernel.org; > harish_kandiga@mentor.com; Vladimir_Zapolskiy@mentor.com > Subject: [PATCH v6] mmc: Export host capabilities to debugfs. >=20 > This patch exports the host capabilities to debugfs >=20 > This idea of sharing host capabilities over debugfs came up from Abbas Ra= za > Earlier discussions: > https://lkml.org/lkml/2018/3/5/357 > https://www.spinics.net/lists/linux-mmc/msg48219.html >=20 > Signed-off-by: Harish Jenny K N > --- >=20 >=20 > +static int mmc_caps_show(struct seq_file *s, void *unused) { > + struct mmc_host *host =3D s->private; > + u32 caps =3D host->caps; > + > + seq_puts(s, "\nMMC Host capabilities are:\n"); > + seq_puts(s, > "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n"); > + seq_printf(s, "Can the host do 4 bit transfers :\t%s\n", > + ((caps & MMC_CAP_4_BIT_DATA) ? "Yes" : "No")); Maybe use a more compact form, and just call a macro with the applicable (s= tringified) bit? Thanks, Avri