Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1045193ybc; Tue, 12 Nov 2019 13:20:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyNaueFsLgH7T7zwiMYtlipL7MG81g2VYGyWrih0ylV0l37ZX2e27NKWWkfHaOwTOCTYpSw X-Received: by 2002:a50:becf:: with SMTP id e15mr35248496edk.135.1573593649260; Tue, 12 Nov 2019 13:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573593649; cv=none; d=google.com; s=arc-20160816; b=g4+lKysHrzAx0Z9yMRnhzBDmE7m+8HkBf+ODCAWL2+GWHtSwm8a0z+f5GVuiI+5XN/ Ke5owKcwLzvqhJG5FuwXcfq2dUf0nSpapslOcv1ii3LMQxhZmgrQSleSxT6gLPO6wdUm zhko8tu4+QuzDvM3IZLtfjEDTIHSBN6dJyZah53SN60l9m9bh2hIMiIJ0VI4Om+UvMvt LlasZlT2GeQ2iumaAUxDXntHiOHiQeUZmLpzaglLuYziOsHVR3VVRUCyTx7Vz21xUo2q /CAtFDfHwgE3QRYGIZAuPQ40igVsXIHIDqAWZfZtPH8P5r8zfuXhHdzeHFbDJKqYtkA5 C9Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OX+LdjCKtO1HZwyeNdso4zMHpUOFOf+CcZdep7EcgC4=; b=tQ7VLAvV85A2V5wrT8xj8nYayvCPp+v3Krdsb55Aw/TK35ZlSZgnzVZ57u/Y39Hko2 /cpFDmzYv1D8mR3it/XQu8d+NqIYO4pcdlvkoMr0Ysx86t00AFcJyy+NLpUDKWLHIysR elsEJgXE3jtOf5q/jlOf7L4Dz0GK1gv7rPEhVk1mzoe+jaOMSo0f+ha+NGz3ZBD9JGyP exw4+lA7i2XiyX4yf3NDJZsnYEcpLuZLGc5t8GYAlmZeg2WH+BZr4r7weQuxu7zw9Eaw KXYmByJ5tQMmIkMMroYVXTNwpqqa/42Ymm6B48ytYHjArIOAn5WOYxUH09LdGSYzqTZy fvOQ== 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 1si907933ejt.404.2019.11.12.13.20.24; Tue, 12 Nov 2019 13:20:49 -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 S1727031AbfKLVTx (ORCPT + 99 others); Tue, 12 Nov 2019 16:19:53 -0500 Received: from sauhun.de ([88.99.104.3]:37572 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbfKLVTx (ORCPT ); Tue, 12 Nov 2019 16:19:53 -0500 Received: from localhost (x590c7292.dyn.telefonica.de [89.12.114.146]) by pokefinder.org (Postfix) with ESMTPSA id ECD472C015F; Tue, 12 Nov 2019 22:19:50 +0100 (CET) Date: Tue, 12 Nov 2019 22:19:50 +0100 From: Wolfram Sang To: Rob Herring Cc: Eugeniu Rosca , Ulf Hansson , Adrian Hunter , Wolfram Sang , linux-mmc@vger.kernel.org, Linus Walleij , Mathieu Malaterre , Pavel Machek , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eugeniu Rosca Subject: Re: [PATCH 1/3] dt-bindings: mmc: Add 'fixed-emmc-driver-type-hs{200,400}' Message-ID: <20191112211950.GB3402@kunai> References: <20191105055015.23656-1-erosca@de.adit-jv.com> <20191105062223.GB1048@kunai> <20191105083213.GA24603@vmlxhi-102.adit-jv.com> <20191107003907.GA22634@bogus> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline In-Reply-To: <20191107003907.GA22634@bogus> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi everyone, > > The first question which pops up in my mind is related to the meaning > > of each item. The option which I envision based on your proposal is: > >=20 > > * minItems: 1 > > * maxItems: 2 > > * Item[0]: Presumably equivalent to the current > > "fixed-emmc-driver-type", i.e. the strength value applied in both > > HS200 and HS400 modes. > > * Item[1] (optional): Presumably equivalent to > > "fixed-emmc-driver-type-hs400" proposed in this series. If this > > element is provided, the first one should likely change its role > > and become an equivalent of "fixed-emmc-driver-type-hs200" from > > this series. > > + Pro: Full backward compatibility. No need to touch the existing > > users of "fixed-emmc-driver-type". > > - Con: Not sure we have such DT bindings which dynamically change > > their semantics based on the usage pattern. > > - Con: Can't easily achieve the same flexibility as accomplished in > > this series. For example, current implementation allows users to > > define each of the three parameters (i.e. HSx00-agnostic drive > > strength, HS200 and HS400 specific drive strengths) individually, > > as well as in all possible combinations. This might be needed if, > > in certain HSx00 mode, users still need to rely on the > > RAW/unmodified drive strength. I am unsure if/how this can be > > achieved with an array OF property with a constant or variable > > number of elements (I try to sketch one solution below). > >=20 > > One option to achieve a similar degree of flexibility by using an array > > OF property (instead of several u32 properties) would be to agree on a > > convention based on magic values, i.e. below DT one-liner could be an > > example of providing solely the "fixed-emmc-driver-type-hs200" value > > (based on the agreement that 0xFF values are discarded by the driver): > >=20 > > fixed-emmc-driver-type =3D <0xFF 0x1 0xFF>; >=20 > I don't understand why you have 3 values instead of 2. Because he sketches maximum flexibility here. Have a non-HS (default) value, one for HS200, and one for HS400: fixed-emmc-driver-type =3D <[default] [HS200] [HS400]>; > I would just use -1 if you want to ignore an entry. If that's the common= =20 '-1' sounds good to me, too. > case, then I'd stick with what you originally proposed. If rare, then I= =20 > think an array is the better route. What I have seen so far: setting drive strength alone is more on the rare side. Setting specific values for default and HS200/400 seems even more rare to me. With this patchset, it is the first time I hear about it. Yet, my experience might be a bit limited, maybe others (Hi Ulf! ;)) can add their views, too? Regards, Wolfram --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl3LIfYACgkQFA3kzBSg KbZ6AxAAogqz/CwHCOeNP4khZeJ7sC5Ygz+6eicsFbLHeuwpOH0ISXnttpqbFDmy FIJxvL634Pqx5Cd9PsQG3S1V6prgKnnCLDZBX3KV1kYRtsAgvjx3w/AYotdeyitC MT1fazgM4JKJV7MOdmEqBZ9KtIH1/wRqYAD/sftTcy/0sPDsq3+aCsGiQnTcUEtC d6YA1ANOrnFYTxHFv2ze+Zo4ewaRBzFSBPNwzNL4Ps3IBB8z38iYBnq6OOgMnfub B8pTntxQeWLank+apB7nZYxH3w3qs7t0qkuVwz/7qyhHcGxpfU41VxwhceFH0fFe s//pE2DI1n4CwtRtNPryIoAW2PYuzMBGhNQ67oQQCQsWKjEgaQLGm29VQgEj3zYx 1dUoJIrom9MOA3t0JGURhBSXtdOw5K8RNVcspidoGobn52f1WQcxr/dwOoArDEqo 4hFZosQnzqcGkKksE74Jj7XZQON9ZnSV5t3IU8SpNaYjswPu/rWaysPZcVDSPMPa EMFp7JwHYBoJEuUoaulsHIRZphCu1z8Zb8JsXBExs1zps0K3EwRiK6KKNoR11j1c rhD40N2NSMMXoOLfMFYqVG/Kp/iAvD7p3fqMoL31vLPjgab2xnVHMEuXPgKaUISy CZWEyhzRZhZ80HuDaDnaLyWjeLqBaEhxvazgd2/caBUmZSjsZZE= =UCNR -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--