Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp169886lqo; Wed, 27 Mar 2024 09:41:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnQv/GdOsvEDsITH4oQ4eNLKqtRHjUpfCEXVjyk5YQbG5Rm9mD0aJCD2XSsXegVBIRV0loTerqhsRuA2lWAcxWDXcBzS0EOBZzDClyJA== X-Google-Smtp-Source: AGHT+IEinvvr3q/vZdxJhHwK1DaqCrrjG5ec0EI+O0EXkmdEeYulidmdTo3Jk3aJee+0Prg5IqKW X-Received: by 2002:a4a:ee83:0:b0:5a1:c13d:ac32 with SMTP id dk3-20020a4aee83000000b005a1c13dac32mr78611oob.8.1711557711822; Wed, 27 Mar 2024 09:41:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711557711; cv=pass; d=google.com; s=arc-20160816; b=xcWmbJl8tjlODJkRd4Ky5p2PkSsKGZ+8H0i64uERwbA5jqJ6v7cJyEAbYDRy5nz9q1 9rw/9Nxies1bqqRoR9uPXGBCluvkYoHfqTYj7FVTP7/UGquCyjHv7at7tmTpE0SRyh6j 68qSsZlYq49f8xKzG3OV9G4GlS8NPJ/BzurltvOueG15TOencmiDxAVAhytJaZ/bIvGQ 0FVBvWCfpA2CC+X6PJqhDeUQZnI917KqdVVHEHhpJnC5wBFyWJ9KiOC0Pd2UlE5FwFx6 tmfO8gqQKhXucm+BxOgCBo4vrI4r6XwKowMzjmRF2wna23uyQSxIaHs+w5YkoOQIWr4y Z8yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:content-transfer-encoding:to:from:cc:subject :message-id:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=jVmOJXz8MFZvDytCaXScOnp+CPymaJ0ZJNEjuWISf3k=; fh=4uVR0Y+gt5YmEWeYhc8VLR6DLZG5EvJnueIFFFambpc=; b=nGspR0I7fMGKJef2LlnFMpKNMVMCTfq/Pg+M3D7OQ35FLujhXvb91MAOYJ9OOVrs6K pzvx8gk34b5sBRnI5Sc8I8PH9PRaJOEKIYYWoheATp0zNVMic+jL1pFT/qh0tvdhX7Eu S84UEOmVKg1Kvodm4khQ3DbE4y5qrlhZGgSoyV/4GaLVmqfXlwP1y5MzVZopGEJA0b/x JGK2L5m+iy4l9X/b5GdxEMJrowW9viFs9LHqkszl0GcggO3vqebDpZiAFU5EJfF6aQHM 7u29BAgInCj7q30sySsDAmSU+SAYd9q8HmPn2ypmWrNZ4u6w31651GK3TsMO9vQ89AGp 1wxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@folker-schwesinger.de header.s=default2212 header.b=osjBcYNJ; arc=pass (i=1 spf=pass spfdomain=folker-schwesinger.de dkim=pass dkdomain=folker-schwesinger.de dmarc=pass fromdomain=folker-schwesinger.de); spf=pass (google.com: domain of linux-kernel+bounces-121643-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=folker-schwesinger.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t7-20020a05622a01c700b004315e361873si6049439qtw.704.2024.03.27.09.41.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:41:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121643-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@folker-schwesinger.de header.s=default2212 header.b=osjBcYNJ; arc=pass (i=1 spf=pass spfdomain=folker-schwesinger.de dkim=pass dkdomain=folker-schwesinger.de dmarc=pass fromdomain=folker-schwesinger.de); spf=pass (google.com: domain of linux-kernel+bounces-121643-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=folker-schwesinger.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 491271C243E6 for ; Wed, 27 Mar 2024 16:41:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A656414D28E; Wed, 27 Mar 2024 16:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=folker-schwesinger.de header.i=@folker-schwesinger.de header.b="osjBcYNJ" Received: from www522.your-server.de (www522.your-server.de [195.201.215.122]) (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 365D0149DEA; Wed, 27 Mar 2024 16:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.201.215.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557703; cv=none; b=oXAgY6ppJa+vMRswWPcWBITFH713dZYYicgOjSH4VyrJNYVV9TFjoSQa1nPXJkGstJde3oc93/VBbJt2jm57u/t2DzZj+5xRfyarT6q7bkWgxw85Hjr3ghSQK+YwzszOWO0UQ15Iun30NbbLhP8vU+J6cM1eBJtuaONe2Q3s1Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557703; c=relaxed/simple; bh=MNOFpOXkMOwWidvj9ganot3yFkYgKYqPs0TUbj4drHQ=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:From:To: References:In-Reply-To; b=A+afbpfxb6MZds7KMCYJ0hEpqMLHDpgK3EMp4+UJcAEeQhF/+/i3FECSQlTeqYn+rpfFljqbd/Oc7to2Byuv9SKjckvvKHnOLrItkBySUrkHa3QdWN6L+04NxpYZVR1toeMMyfmMAIsgRNXVfuPjzK03710WFYLnNG7PXk1F1MU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=folker-schwesinger.de; spf=pass smtp.mailfrom=folker-schwesinger.de; dkim=pass (2048-bit key) header.d=folker-schwesinger.de header.i=@folker-schwesinger.de header.b=osjBcYNJ; arc=none smtp.client-ip=195.201.215.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=folker-schwesinger.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=folker-schwesinger.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=folker-schwesinger.de; s=default2212; h=In-Reply-To:References: Content-Transfer-Encoding:To:From:Cc:Subject:Message-Id:Date:Content-Type: Mime-Version:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=jVmOJXz8MFZvDytCaXScOnp+CPymaJ0ZJNEjuWISf3k=; b=osjBcYNJq/cKgUy9AWTyY8hS6E E5HLAhY7omewDvChR3tHPmlbqGq5T2YdOAGnaZ5M0cmn71ww8qXth6+OXvYfe1nl+O45vivL9zVmg voHjd5t0NE0wivjq8NEIZKIy7Oz2MkS1388qo4lC0yPTuXHXwqdqU3eo8BjHLq9nnaMx0uGpTch5K ImjEjU+yoH4m/nIVzGrgoiSGYA0A7puBQ7I5mCekHohziTKpaj7atNdUx/yd8nCgejZNEZjHzWS++ WrB9zPGqXne7gRdpFt2KxZu7tC4KoBnjhD2RjUDfQsDNASlXkWUhT546ddF5zLe8d+uoAc2gVqzFv DX8I6/yA==; Received: from sslproxy07.your-server.de ([78.47.199.104]) by www522.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpW2I-000Cfv-EQ; Wed, 27 Mar 2024 17:21:58 +0100 Received: from [185.209.196.215] (helo=localhost) by sslproxy07.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rpW26-000PGF-0o; Wed, 27 Mar 2024 17:21:57 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: multipart/signed; boundary=f7cdc72aa3c9a69fa8ec481bcf6809df63323df0173f7777bf3d43c54eaf; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Wed, 27 Mar 2024 16:21:45 +0000 Message-Id: Subject: Re: [PATCH 1/3] phy: rockchip: emmc: Enable pulldown for strobe line Cc: "Vinod Koul" , "Kishon Vijay Abraham I" , "Heiko Stuebner" , "Chris Ruehl" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Christopher Obbard" , "Alban Browaeys" , "Doug Anderson" , "Brian Norris" , "Jensen Huang" , , , , , From: "Folker Schwesinger" To: "Dragan Simic" , "Conor Dooley" Content-Transfer-Encoding: quoted-printable X-Mailer: aerc 0.17.0-82-g6ffc0ed5991b 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> <436f78a981ecba441a0636912ddd1cf2@manjaro.org> In-Reply-To: <436f78a981ecba441a0636912ddd1cf2@manjaro.org> X-Authenticated-Sender: dev@folker-schwesinger.de X-Virus-Scanned: Clear (ClamAV 0.103.10/27227/Wed Mar 27 09:33:27 2024) --f7cdc72aa3c9a69fa8ec481bcf6809df63323df0173f7777bf3d43c54eaf Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi Conor and Dragan, thanks for your feedback! On Tue Mar 26, 2024 at 8:55 PM CET, Dragan Simic wrote: > On 2024-03-26 20:46, Conor Dooley wrote: > > On Tue, Mar 26, 2024 at 07:54:35PM +0100, Folker Schwesinger via B4 > > Relay wrote: > >> From: Folker Schwesinger > >> > >> Restore the behavior of the Rockchip kernel that undconditionally > >> enables the internal strobe pulldown. > > > > What do you mean "restore the behaviour of the rockchip kernel"? Did > > mainline behave the same as the rockchip kernel previously? If not, > > using "restore" here is misleading. "Unconditionally" is also > > incorrect, > > because you have a property that disables it. Apologizes for the misleading commit message. Prior to 5.11 the Linux kernel did not touch the pull-down registers. However, it seems the register's (factory?) default was set to enable the pull-down. As it was mentioned elsewhere that was the configuration recommended by Rockchip. The 4.4 vendor (Rockchip) kernel reflects that by enabling the pull-down in its kernel. Of course, this has nothing to do with the Linux kernel, so "restore" was a bad choice here. I previously had split the driver patch into two separate patches, one for changing the default (unconditionally at that point), the other for adding the disable property. As both changes were minimal I decided to squash the commits. I updated the cover letter, but forgot to update the commit message. Sorry. > >> Fixes: 8b5c2b45b8f0 ("phy: rockchip: set pulldown for strobe line in > >> dts") > >> Signed-off-by: Folker Schwesinger > >> --- > >> drivers/phy/rockchip/phy-rockchip-emmc.c | 6 +++--- > >> 1 file changed, 3 insertions(+), 3 deletions(-) > >> > >> diff --git a/drivers/phy/rockchip/phy-rockchip-emmc.c > >> b/drivers/phy/rockchip/phy-rockchip-emmc.c > >> index 20023f6eb994..6e637f3e1b19 100644 > >> --- a/drivers/phy/rockchip/phy-rockchip-emmc.c > >> +++ b/drivers/phy/rockchip/phy-rockchip-emmc.c > >> @@ -376,14 +376,14 @@ static int rockchip_emmc_phy_probe(struct > >> platform_device *pdev) > >> rk_phy->reg_offset = reg_offset; > >> rk_phy->reg_base = grf; > >> rk_phy->drive_impedance = PHYCTRL_DR_50OHM; > >> - rk_phy->enable_strobe_pulldown = PHYCTRL_REN_STRB_DISABLE; > >> + rk_phy->enable_strobe_pulldown = PHYCTRL_REN_STRB_ENABLE; > >> rk_phy->output_tapdelay_select = PHYCTRL_OTAPDLYSEL_DEFAULT; > >> > >> if (!of_property_read_u32(dev->of_node, "drive-impedance-ohm", > >> &val)) > >> rk_phy->drive_impedance = convert_drive_impedance_ohm(pdev, val); > >> > >> - 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. > > > > Moreover, as I already explained some time ago, [1] some boards and > devices are unfortunately miswired, and we don't want to enable the > DATA STROBE pull-down on such boards. > > [1] > https://lore.kernel.org/linux-rockchip/ca5b7cad01f645c7c559ab26a8db8085@manjaro.org/#t > > > 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. I agree, I'll post the patches later. Best regards Folker --f7cdc72aa3c9a69fa8ec481bcf6809df63323df0173f7777bf3d43c54eaf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJAEABYKADgWIQQFbmi0A2l3pTuK+esCQHEyPYq7fQUCZgRHmhocZGV2QGZvbGtl ci1zY2h3ZXNpbmdlci5kZQAKCRACQHEyPYq7fRamAP9MGs6G0N7CCPyktEFGvWmc v++fFAIl9dcZbzwkg9Dj9wD+KrYIRbmeqWtdkS3AfQoBJgBfYClulmn68BrCShah EAY= =o+ot -----END PGP SIGNATURE----- --f7cdc72aa3c9a69fa8ec481bcf6809df63323df0173f7777bf3d43c54eaf--