Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp529625lqp; Tue, 11 Jun 2024 11:16:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3Gq/Jj6xiP5tV7KZPq+g6k+ngZgGNBHSN0w+2mrKRcU4jmIuwDlw263a0cDg/EN2gziDER7TQT+eK8rZRE7VT2Xw8MIMvacYOnpdGzA== X-Google-Smtp-Source: AGHT+IHECDMT/hbitvTyW9CrTaaOhDnC6Y4QIR54IykopRhUOVBKQVSoNsu9+EXjxjn/RZt68Ptm X-Received: by 2002:a05:6a20:3c8f:b0:1b4:b4af:6047 with SMTP id adf61e73a8af0-1b4b4af6201mr12034465637.33.1718129770161; Tue, 11 Jun 2024 11:16:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718129770; cv=pass; d=google.com; s=arc-20160816; b=IcgQzRHkrWaPfCDsxy26edhcRvKVZfXl6/U5D2oBL6Y9WGF36FekoMH9zz7Afqt2jq 1Xf1I5nmIZ1X5VOEiXWKLlz7V/xdo4p6HIseSNfmMIfuOKVcE/Ph0sCuBuxDHMh5YCiZ iT5vP37EdZWvNS9cF0ayc5If/UQua4pS9zPO5VEXw01ZlIcs5sGwcNOcQtxWXuHePIBp 1KrsdnIQSXHvLy2CZ+VH43kApX2WdlyMnwLfryDbpAZpi5HSksxoE3F37uutyvYYAZaY 7Msm8XWKPo72/y/RCkU+gCZPK0EE/xj6bhRBIJEsjg651MyM3+a/SOe3SYmQU0DCK/KA B5pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rg+NohawaTXFK1Fhif7XHyzzS0tstlbs6exoV45k748=; fh=e1DH1dGhWRPD1wPmBIImkmX590MbwWV45T9nkDA9A3c=; b=tlVA/hL2mPnR95AhH3aBl/Ui6HXVD+aCHZMXE+7oS339vx1/XvKek13blhLi+Qr/iZ OSd2aWAkmq7KWjxVukWMQowgC0jpN5gOTsRL51RpuipDSxZPZ+t06pZT2l4sVrXGoj8u HLQ/kB98lwCmHahwJs7j+jxNFpNW/8XHoFFkU17ek7zDw6YmFXMBRu2pOBWf7CU6+m4e YIJFZIKTgwPpn9fRGGIrR2cux5VyE6gg72zCMoYVYi26Ch43xrhzxf1Lqqqa7TBL1/EA MtImjr+mJRtROm31PfB6dnEFy3tdmO0nS1JlkRBJftZ/nrqOL6LF7CWIw+U+eyF8KOFi +oQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=cohNJ7To; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-210410-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210410-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e3bbc7e880si6259502a12.423.2024.06.11.11.16.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:16:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210410-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=cohNJ7To; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-210410-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210410-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com 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 C085528D4E3 for ; Tue, 11 Jun 2024 18:16:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CBE46FE16; Tue, 11 Jun 2024 18:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="cohNJ7To" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 D9235249E5; Tue, 11 Jun 2024 18:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718129762; cv=none; b=GXzCAObZLkfzdUEmisQyNMKTWUD8scn4dPdU+zWYodm6OiHxHkGW9QhKd/quthWVqzOWjMZbeBIehhsgwZJxPXMSQmem1BRYdw50moqJYjIZjDJ/eqSOFnDRWrKbCT/LfAK8LXS0WI+kEmpLEyxXaW3BW/Jb1NgXOF57TCqOcN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718129762; c=relaxed/simple; bh=WSVt5TuM3v51vEobXM6W+vqUjan4uWl+GRpcWofmP8k=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=AxjEzwr5qahr4iEPr/wiooZ+XO5l7dvhp2cABAzcDa/pkIoDAfjXo3ExDW/C10trJ1A7cOBbuzHxd/IjVvI3d+oMLKs81opUnM/aplTfC42BL7Iz0n7SnFH79edYe4UCN93dbqyQNMouzAeYtKREIp/JwzyGw5gLqYwzLN+tBZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com; spf=pass smtp.mailfrom=arinc9.com; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b=cohNJ7To; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 9AD7C20007; Tue, 11 Jun 2024 18:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1718129758; 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=rg+NohawaTXFK1Fhif7XHyzzS0tstlbs6exoV45k748=; b=cohNJ7ToVC/jNm/iqicKhPbz/PNrGQEIPHhKIYDkQHrpkEGTrnxRJbtoKNWrItNX1hmGSR kJiAdD4eaTgg4NYHz36ovV9RrM7t51okkaXVRtNvWrOrmFCf/kUq+e2yP2Xybaoa/32kDV hLBJgdXie0o4AqSqzhMcUWFUtiDINqUQblTDQx7noZwEUwsvGNsMZlVBgdWJWCc4Qnb/8m ID9lDKfgzvLHmeCM8U/LJzsVaGh+HY9HfguxTKKCOCa5CzQyGnOTKrwef75j3b5Z+1chaL 3r+nuBdBPYnTI0krgM6l3H1ZlyJY+ZjIgdE1loo2B+P689i6B9j+e41ErgLphQ== Message-ID: <4416ef22-78cc-4ce5-b61d-69ff0903811e@arinc9.com> Date: Tue, 11 Jun 2024 21:15:48 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= Subject: Re: [PATCH] arm64: dts: mt7622: fix switch probe on bananapi-r64 To: AngeloGioacchino Del Regno , Thorsten Leemhuis , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Daniel Golle , frank-w@public-files.de, Linux regressions mailing list , Frank Wunderlich , Paolo Abeni References: <20240516204847.171029-1-linux@fw-web.de> <5AEE5668-0C8E-4EE4-A398-66CB99DF5650@public-files.de> <43aacd9d-b851-4100-8ccc-878ac6ae10f8@leemhuis.info> <698cf562-1ca9-4aa3-be7e-a1474b612c5b@leemhuis.info> <0cba095c-3d55-416a-a7ad-b359129731cf@arinc9.com> <714da201-654b-4183-8e5e-8ff0b64fe621@leemhuis.info> <2cac4cf68304e81abffbd9ff0387ee100323c2b7.camel@redhat.com> <1807a142-1534-4fa4-ad4b-d1c03af014c2@arinc9.com> <58d8ddea-71cc-427a-94cc-a95f6bce61d2@collabora.com> <16e9c06e-9908-455d-a387-614fefe5bcf8@arinc9.com> <5e87d31c-b059-4f9a-93f7-dc87465ed14a@collabora.com> Content-Language: en-US In-Reply-To: <5e87d31c-b059-4f9a-93f7-dc87465ed14a@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com On 11/06/2024 16:03, AngeloGioacchino Del Regno wrote: > Il 11/06/24 14:56, Arınç ÜNAL ha scritto: >> On 11/06/2024 15:28, AngeloGioacchino Del Regno wrote: >>> Il 11/06/24 13:38, Arınç ÜNAL ha scritto: >>>> On 11/06/2024 14:30, Thorsten Leemhuis wrote: >>>>> On 07.06.24 16:15, Thorsten Leemhuis wrote: >>>>>> On 07.06.24 16:03, Paolo Abeni wrote: >>>>>>> On Thu, 2024-06-06 at 10:26 +0200, Thorsten Leemhuis wrote: >>>>>>>> On 31.05.24 08:10, Arınç ÜNAL wrote: >>>>>>>>> On 31/05/2024 08.40, Thorsten Leemhuis wrote: >>>>>>>>>> [adding Paolo, who committed the culprit] >>>>>>>> >>>>>>>> /me slowly wonders if the culprit should be reverted for now (see below) >>>>>>>> and should be reapplied later together with the matching changes from >>>>>>>> Arınç ÜNAL. >>>>>>> >>>>>>> FWIS I think a revert should be avoided, given that a fix is available >>>>>>> and nicely small. >>>>>> >>>>>> Yeah, on one hand I agree; but on the other it seems that the >>>>>> maintainers that would have to take care of the dt changes to fix this >>>>>> until now remained silent in this thread, apart from Rob who sent the >>>>>> mail regarding the warnings. >>>>>> >>>>>> I put those maintainers in the To: field of this mail, maybe that might >>>>>> lead to some reaction. >>>>> >>>>> Still no reply from the DRS folks or any other progress I noticed. Guess >>>>> that means I will soon have no other choice than to get Linus involved, >>>>> as this looks stuck. :-( #sigh >>>> >>>> Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address >>>> of MT7531 switch to 0x1f on MediaTek arm64 boards"? Aren't there any other >>>> ARM maintainers that can apply the fix to their tree? >>>> >>>> Arınç >>> >>> You have feedback from two people on the series that you mentioned, and noone >>> is going to apply something that needs to be fixed. >>> >>> I'm giving you the possibility of addressing the comments in your patch, but >>> I don't want to see any mention of the driver previously ignoring this or that >>> as this is irrelevant for a hardware description. Devicetree only describes HW. >>> >>> Adding up, in commit 868ff5f4944a ("net: dsa: mt7530-mdio: read PHY address of switch from device tree"), >>> you have created a regression. >>> >>> Regressions should be fixed - as in - if the driver did work before with the old >>> devicetrees, it shall still work. You can't break ABI. Any changes that you do >>> to your driver must not break functionality with old devicetrees. >>> >>> So... >>> >>> ------> Fix the driver that you broke <------ >> >> The device tree ABI before the change on the driver: >> >> The reg value represents the PHY address of the switch. >> >> The device tree ABI after the change on the driver: >> >> The reg value represents the PHY address of the switch. >> >> I see no device tree ABI breakage. What I see instead is the driver >> starting enforcing the device tree ABI. No change had been made on the >> device tree ABI so any non-Linux driver that controls this switch continues >> to work. >> >> These old device tree source files in question did not abide by the device >> tree ABI in the first place, which is why they don't work anymore as the >> Linux driver now enforces the ABI. Device tree source files not conforming >> to the ABI is not something to maintain but to fix. The patch series that >> fixes them are already submitted. > > As I said, the devicetree MUST describe the hardware correctly, and on that I do > agree, and I, again, said that I want to take the devicetree fix. > > However, the driver regressed, and this broke functionality with old device trees. > Old device trees might have been wrong (and they are, yes), but functionality was > there and the switch was working. > > I repeat, driver changes MUST be retro-compatible with older device trees, and your > driver changes ARE NOT; otherwise, this wouldn't be called *regression*. I'm going to argue that what caused the regression is the broken device tree. The recent change on the driver only worked towards exposing the broken device tree. The device tree files hosted on the Linux repository is not only for use with the Linux drivers. Other projects use these device tree files as well, as hardware description is not supposed to differ by project. And for any non-Linux driver that would use this broken device tree, there would be a regression. So I don't understand why you demand a change on a Linux driver to be made before applying the fix for a broken device tree. That said, I don't understand the old device tree sentiment here. The driver, after the change, still does support old device trees. Never in the existence of this switch bindings, the PHY address was supposed to be described a value other than the PHY address the switch listens on. Yes, the driver now doesn't work with old and broken device trees. Which is why we're fixing the said device trees. I don't see why it is necessary to make the driver support broken device trees just because they used to work for a certain range of time. This isn't about preserving ABI. Arınç