Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1074830lqz; Sun, 31 Mar 2024 12:26:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnM7IU85UWVsCSRQMfGMmInSrz2TsCLt/ITfMlUt2E/mSiGMTlBbyq19SFXIOTGgziQDwBcGHGyeyN8N+jf3LgLQhCj7eoOagKQFkHVA== X-Google-Smtp-Source: AGHT+IE3VRIk7K9yMGYMmP8L2w6VHA72tlKkXvzdy1rQN8liGzNYufNQ29QWYyWXg4yBbzGHI5Px X-Received: by 2002:a17:902:dacd:b0:1e0:11a4:30e0 with SMTP id q13-20020a170902dacd00b001e011a430e0mr10330990plx.19.1711913186306; Sun, 31 Mar 2024 12:26:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711913186; cv=pass; d=google.com; s=arc-20160816; b=FGmS0lcshV97+7XpEqNOkjqEl0BSyHMH98kD9OjAv42c2S/05TvFVWqk9zALoQdPuv puruzynFHUzfAl73d4550KMWX82QXsvwIv4Y2f+jZ/3NUa/JJ5ieZRnt5RTCsg1TUeiu YSDwD2WnjZX6THGvO9Wn4czRbCYQAXJvEYbvWwLYwbVsphDgzkwChMLskluHLwg6itwI sgPTgQ9s9cmoLy/lYMmnSIMmtInbVB6/cPuIFny2W8dOjefKwBa11iG5gdHQDI8n+szl 6QbhQ9TvRZWvyCVxHdsVJo3nOWxWSyDp18iXwuEzX3kzIatTqdrVPrgnxZam0U4IzZLM xS+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=r/SBcQHePB6X2sjFpLhBcuid5NUt0sikNKWyPFfmhVU=; fh=NV596Q+W8vzh67/LQ5ByoJKzn9WqxPvA4pL6hIMqomo=; b=rGujosDhdg2rYZLtPveCYh8QJW9NhGydLchoWC3rNwTxMsKLGoakWnkkwUmZUBlRVv WfoA2yRQsm13AVpUZTa2iuWU4sHOxdfBGSiwaWXdEssEjhAe/z9Hi+EyYMKIwF9k99Xz qWGZW4b9ezl8FlQDERO4HMyVVqIRUpd5FUZKR7iwwQQaptYKwy5SbJsO9FtiInH5UwyC AmOqy/96MyZZof+g2Qt93qwkHoW00GYXTcC0XM1d/A86s8dRhKCF/y8Hz1hqzjHy0+c1 X3aQendYy5lZakFimkvLUVfO4wHukJjrbUz3bhZCJg3wiqqBHd2uHYxsCi7hY57pi868 2nRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=ecs2lM11; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-126357-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ju20-20020a170903429400b001dbb6cdf7c3si7230751plb.643.2024.03.31.12.26.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 12:26:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126357-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=ecs2lM11; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-126357-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F2634285818 for ; Sun, 31 Mar 2024 19:26:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13E981474AB; Sun, 31 Mar 2024 19:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="ecs2lM11" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44E4B9463; Sun, 31 Mar 2024 19:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711913178; cv=none; b=Tu1edD/hQKA+78BZ0Dma0yf5u1WjbfR0ts9PIWKgR8IbTRkT2hfeJjRlylSamywkESmLCa1na6mRaZ4AdKUM2/WsiXxPrN1Z3R/XcjM/m9TAdb2cIzXhUeN93qUmleFwlptRGVDTTnvoCHUiQKnoQEOmOzlr/HvNs9WWDCftVrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711913178; c=relaxed/simple; bh=dVGI4PXbtwTJFjzEZ3HAN8Hb3XzHs5lYXx8qi9A2SzQ=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=KoDkYyMfgBgTbM+hQRUos/akQCrnhYjMEW4IwXxEt6yBUouslb1UtzOE2wgaAUY/ncPakXjAlTWp0LkK5X/UhWH1aH1VV8iwDdS9RHnKqMJ2ctHXtTKelJmJj6UBuvr4/d3AgymmvEIl52h8iVuVScG+qHrPg8KIaXuOFuJaVfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=ecs2lM11; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1711913173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r/SBcQHePB6X2sjFpLhBcuid5NUt0sikNKWyPFfmhVU=; b=ecs2lM11X8MT5cuXi5A+xnG/HO3hjwJ51ns6Z2JAzDAWG3UmONoZywxty90Usai3phig9C GBIrpvbQqhPXsjgiYR5vWW+kxQSSLA+I/+Kkkgv/6nElXk9ilfODtmoTn4Su6lf78mN3p9 m4V4APeRlG8w1x5oATdwB2tp4aS+9uj+karBXQS4EIQjzkVVwlZtzAa11aQHKEPZumr4xo mGsj6ZDyosbVmbZ6qkIcObeSbCuJQ8HcNxve1YZ10KQh9I0jRkLtD4/Rqxi7ClgaNmdNh9 e2n4lPT99v8uwoK6QCoBdiT4VY9oBBmCr5bWAwx/oOug6fHkI1JFxcx7163kAA== Date: Sun, 31 Mar 2024 21:26:13 +0200 From: Dragan Simic To: Alban Browaeys Cc: Conor Dooley , 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 In-Reply-To: <871f0b24a38208d9c5d6abc87d83b067162c103e.camel@gmail.com> 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> Message-ID: <46d0b87e704ed5a7a0fcc9dcfdbeec2e@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Hello Alban, On 2024-03-28 18:00, Alban Browaeys wrote: > Le mardi 26 mars 2024 à 19:46 +0000, Conor Dooley a écrit : >> 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 = >> > PHYCTRL_REN_STRB_ENABLE; >> > + if (of_property_read_bool(dev->of_node, "rockchip,disable- >> > strobe-pulldown")) >> > + rk_phy->enable_strobe_pulldown = >> > PHYCTRL_REN_STRB_DISABLE; >> >> 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. > > 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. > > Could the best option be to revert to énot 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. Quite frankly, I think it's better to leave the default as-is, and to fix the dts files for the boards that have been (or will be) tested to work as expected and reliably in the HS400 mode. Perhaps this is also a good opportunity to revisit the reliability of the HS400 mode on various boards. In other words, it could be that some boards now rely on the pull-down being disabled by default, so enabling it by default might actually break such boards. I know, the troublesome commit that disabled the pull-down caused breakage, but fixing that might actually cause more breakage at this point. > 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). A couple of years ago I've also spent some time debugging HS400 not working on a Rock 4, but ended up with limiting the speed to HS200 as a workaround, so I agree about the whole thing being a mess. > 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? > > 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. > Though I don't know if there are pros to setting a default. > > >> If this patch fixes a problem on a board that you have, I would >> suggest >> that you add the property to enable it, as the binding tells you to. >> >> Thanks, >> Conor. > > > Regards, > Alban > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip