Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp616303lqh; Thu, 28 Mar 2024 11:01:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnXBLZV4rriwYUXUTm/WDIs0JE9EZimhUW+/jPb2hEfWG+Kcw6BnKVBn/6jnUq6aQd543toSYzw/nP37bjXKus9N7t/Egqpmnhe+bJsw== X-Google-Smtp-Source: AGHT+IGpJBvcEbV+T/H6wL5mzK13nl6JiPpmOe8T+inYEdR6CX8cPtXaBFP3zFyyz0zFz+95UEaC X-Received: by 2002:a50:a411:0:b0:568:7be0:50a4 with SMTP id u17-20020a50a411000000b005687be050a4mr10306edb.11.1711648886042; Thu, 28 Mar 2024 11:01:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711648886; cv=pass; d=google.com; s=arc-20160816; b=XihTPCqEF1WuiZwj140L4e2ip5Ok9LkjZURC20ImCGvtVspmB2xb0uGGO91JIQSKHw hI67LpHMCaFgTsQ0iFZUDrngiWrAorpANCLuztJMFKZrlwB7a9Aj4MxpJEAJnf131b/2 zhDQ0aGc69ExInDolwQI9OnWjGgCrsCczh6QegzfiKBdDMJDMsvDp4ceEyZl4sdduNax nGw/rcHerEZuSR501J+ebK36FbF242MKMSBMdYMTL67WhR/sy6Yw9gSbSeBhVYiRf6vE ZRKPh1LiHsZ+FRAQkDKHcmlg88CWngg7Ov4UOaRFAqYLCViGAtRS5KRmP1bXG86rE+bi H/GA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aAdtNxO8yYxrHD95+qXFDS3uG2IU0715+l1vzvyuj5o=; fh=nMWE2F8gqcrJooAwBbe0GVRKONojA/xxQXvHEiWGNOs=; b=MrNSEHXmhVXD7ondmR4LwaEPV/K7KJFebA5SY0pEv7kvdLLXLxynLrfxmMw61jiJQ0 vU5Lj/MNr1kioh8XMME4EMtouyA+t4pXFWFGLMSXhGCRU0LuHXRiHhctJVDbmbcWIoS6 BN2R9AnblEAND/rZjZIq0PQ5CUbjpnp9bDVnVekAhNOl2PZfnAmHWYEQ23EmXV04bYjB bGKZF/FgI/bUl6mFi0LpEeI5Lp6dFPZ0ID3m8JNVx894g2ljs3G3yTpD287oyd6MIF6z 0hxYLOivV8KKlCFJtDQe9V/dcNPxSu7f+PG9sqxXyxms++Ak09blFhJ652nSekFdRoZb UF3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PTHB7ySp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 28-20020a50875c000000b0056bde911514si1024817edv.73.2024.03.28.11.01.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PTHB7ySp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9ACED1F26EB8 for ; Thu, 28 Mar 2024 18:01:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6ED11131E2B; Thu, 28 Mar 2024 18:01:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PTHB7ySp" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FE2F3BBC5; Thu, 28 Mar 2024 18:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711648875; cv=none; b=TjG1Tx8FnEr3aFUhtaZp1C4fF99nltJEdQicuREzFZ5xkH9z9JgbWK70GZ3P2ow6riSh+BX8vqqMurc7/T632GXPSVspozZo1vN+tRVp3mvl8GXENTbUCLOXdFIJTMkRa6Q7Y3H4g59gKb9it46LsPOuuEieCbAWUIs/kAGml1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711648875; c=relaxed/simple; bh=4phPWnWO8U4B+6/tBTg6onrt6txt5QrNdPVtLs0pEDE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fXKa09+QARqTJr0MrxA+MrzndOzjebvmDzIDDnOBUrBFXEcOTAGdT46okt1wekF2hP+6bVb6ySCVEJbgLW5e16qj/TSPjFnAwOH8EMz947vOCPqvO2XYE/FfzHu1+sZCY+02PLEisQ5MQeIBe+e5E2XEfGu3OFoHBsKPyUuVfBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PTHB7ySp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CCBBC433C7; Thu, 28 Mar 2024 18:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711648875; bh=4phPWnWO8U4B+6/tBTg6onrt6txt5QrNdPVtLs0pEDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PTHB7ySpnSsjWLu+d154b3fd84Utt8K81WByU29Xe3bUphIcvK390k1jGFjvAua5Z 7SKYtrvWfSkCIdR3LkiUos2WstAbh+N7vyzUqY+8ZxVlO3z0Yd+pqPcnA1H5yCrh11 CnbF3bPD6RgCjKDvXuxMkaDK8vS+LeyZSRL8YzNsMXkt2g8/ji8cqHtWlV10VI2843 UVNb+TpojYuVYqzBqsMTKWuBR53awurPsxp3DPQGvnLMXXlqJF36xukiu4gUShLtla kD44XW1mgkhd+z9i83+af/HBfFnL5TWj1lFlwp8rTDNFC/OkYPdG/SaenG+h6eTkBR sZnQGqT/S8ykA== Date: Thu, 28 Mar 2024 18:01:09 +0000 From: Conor Dooley To: Alban Browaeys Cc: dev@folker-schwesinger.de, Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner , Chris Ruehl , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christopher Obbard , Doug Anderson , Brian Norris , Jensen Huang , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/3] phy: rockchip: emmc: Enable pulldown for strobe line Message-ID: <20240328-unnatural-unsorted-e53a13f5e87e@spud> References: <20240326-rk-default-enable-strobe-pulldown-v1-0-f410c71605c0@folker-schwesinger.de> <20240326-rk-default-enable-strobe-pulldown-v1-1-f410c71605c0@folker-schwesinger.de> <20240326-tactical-onlooker-3df8d2352dc2@spud> <871f0b24a38208d9c5d6abc87d83b067162c103e.camel@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8F3JqEr12hAqS6Zr" Content-Disposition: inline In-Reply-To: <871f0b24a38208d9c5d6abc87d83b067162c103e.camel@gmail.com> --8F3JqEr12hAqS6Zr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2024 at 06:00:03PM +0100, Alban Browaeys wrote: > Le mardi 26 mars 2024 =E0 19:46 +0000, Conor Dooley a =E9crit=A0: > > On Tue, Mar 26, 2024 at 07:54:35PM +0100, Folker Schwesinger via B4 > > Relay wrote: > > > From: Folker Schwesinger > > > - if (of_property_read_bool(dev->of_node, "rockchip,enable- > > > strobe-pulldown")) > > > - rk_phy->enable_strobe_pulldown =3D > > > PHYCTRL_REN_STRB_ENABLE; > > > + if (of_property_read_bool(dev->of_node, "rockchip,disable- > > > strobe-pulldown")) > > > + rk_phy->enable_strobe_pulldown =3D > > > PHYCTRL_REN_STRB_DISABLE; > >=20 > > Unfortunately you cannot do this. > > Previously no property at all meant disabled and a property was > > required > > to enable it. With this change the absence of a property means that > > it > > will be enabled. > > An old devicetree is that wanted this to be disabled would have no > > property and will now end up with it enabled. This is an ABI break > > and is > > clearly not backwards compatible, that's a NAK unless it is > > demonstrable > > that noone actually wants to disable it at all. >=20 >=20 > But the patch that introduced the new default to disable the pulldown > explicitely introduced a regression for at least 4 boards. > It took time to sort out that the default to disable pulldown was the > culprit but still. > Will we carry this new behavor that breaks the default design for > rk3399 because since the regression was introduced new board definition > might have expceted this new behavior. >=20 > Could the best option be to revert to =E9not set a default enable/disable > pulldown" (as before the commit that introduced the regression) and > allow one to force the pulldown via the enable/disable pulldown > property? > I mean the commit that introduced a default value for the pulldown did > not seem to be about fixing anything. But it broke a lot. ANd it was > really really hard to find the description of this commit to understand > that one had to enable pulldown to restore hs400. >=20 > In more than 3 years, only one board maintainer noticed that this > property was required to get back HS400 and thanks to a user telling > me that this board was working I found from this board that this > property was "missing" from most board definitions (while it was not > required before). >=20 >=20 > I am all for not breaking ABI. But what about not reverting a patch > that already broke ABI because this patch introduced a new ABI that we > don't want to break? > I mean shouldn't a new commit with a new ABI that regressed the kernel > be reverted? I think I said it after OP replied to me yesterday, but this is a pretty shitty situation in that the original default picked for the property was actually incorrect. Given it's been like this for four years before anyone noticed, and others probably depend on the current behaviour, that's hard to justify. > Mind fixing the initial regression 8b5c2b45b8f0 "phy: rockchip: set > pulldown for strobe line in dts" does not necessarily mean changing the > default to the opposite value but could also be reverting to not > setting a default. That's also problematic, as the only way to do this is make setting one of the enabled or disabled properties required, which is also an ABI break, since you'd then be rejecting probe if one is not present. > Though I don't know if there are pros to setting a default. What you probably have to weigh up is the cons of each side. If what you lose is HS400 mode with what's in the kernel right now but switching to what's been proposed would entirely break some boards, I know which I think the lesser of two evils is. It's probably up to the platform maintainer to weigh in at this point. Hope that helps? Conor. --8F3JqEr12hAqS6Zr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgWwZQAKCRB4tDGHoIJi 0jB0AQC8/xsQZ9aSVUyDP+TLrTxN1T6WpnZxDmZ0RytuJJKcagEAs1IkEDW1WV+R Vn4E8r+DK3CUYvmFu6xKJKaLOoafAwY= =YhMf -----END PGP SIGNATURE----- --8F3JqEr12hAqS6Zr--