Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp593892pxb; Tue, 19 Oct 2021 09:02:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu3s2hkOcwTAVrpnhE3ZP2wQ9sZcVLGIW60ad0qltOD49VioTH+kUMQjgZLzKBb+e3rF+d X-Received: by 2002:a17:906:6a2a:: with SMTP id qw42mr37789413ejc.561.1634659354752; Tue, 19 Oct 2021 09:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634659354; cv=none; d=google.com; s=arc-20160816; b=SwA9j44x3GkywtNRjO6Ms2s8cuBFaKlbZHnAw2ryVeFI079Se2frcIJ0Ib+gKRMHKr /GUEJcr0plq2Jy/E2uM8nvIlBBHYocMR36k04GuOjYNvectM6Ymylu1+vGUOVNgrSZOI YzFF8ysNrDLTn6xivuv784rZyCHQ5HTTdjUqsjRnitDrHbEwYbmdHoz4GcqeghhWKxF1 o384ihEealeV8XqSnwR/WxiF1FMS3/F9ATA/Qn8qXp2PdcLml9EURDoYUg5/p+s+NXgt VAVejSaTvD2ONgHXEgfUNQBBhkWjxY5LT0JozvxgRnfrIeBmIhdOfZLNNUl51mW8UokK m76A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ohCTP0uODLRW9P3eP+LoaGHL9mV6KmRWSx1hDkPLuQk=; b=wIHfll82Iz1wTOne7IBw1Z+BLPzxxUzLqZAdEmCw4rU+V61FOteW898n0EmXWQSJ6m iSJ1rUKibRt+g7mpCqeXvwlUQp21+i8ZEhw9YeJEmkgSbTGrrLXdERlhi2AriCoPJhaq 15EeBPQdbDlNJVUIaKc9QdpMKDXJL7msx5KKqhMnnPOk5WLKYjRjL+oWbv6tVhhkM76s LuqIWaxo2DnCFCGJ4VXGdFaZhmW/i5dXiJwDEGKwdtMCDG9aY0O9rZjbiKj65VJm5sm9 plu0AIlDwtr0/kmQpDjIiD+GbIpGDnJe02U1+vLiAgxt4LQeej32KxV2Z0Kue1sjv74D ygyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sc32si22765521ejc.95.2021.10.19.09.02.01; Tue, 19 Oct 2021 09:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232929AbhJSQAE (ORCPT + 99 others); Tue, 19 Oct 2021 12:00:04 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:48339 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbhJSQAD (ORCPT ); Tue, 19 Oct 2021 12:00:03 -0400 Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 655E7240006; Tue, 19 Oct 2021 15:57:47 +0000 (UTC) Date: Tue, 19 Oct 2021 17:57:46 +0200 From: Thomas Petazzoni To: Andrew Lunn Cc: =?UTF-8?B?S8O2cnk=?= Maincent , Geert Uytterhoeven , netdev , Linux-Renesas , Linux Kernel Mailing List , Sergey Shtylyov , "David S. Miller" , Jakub Kicinski , Lad Prabhakar , Biju Das , Sergei Shtylyov , Adam Ford , Yoshihiro Shimoda , Yang Yingliang Subject: Re: [PATCH] net: renesas: Fix rgmii-id delays Message-ID: <20211019175746.11b388ce@windsurf> In-Reply-To: References: <20211019145719.122751-1-kory.maincent@bootlin.com> <20211019173520.0154a8cb@kmaincent-XPS-13-7390> Organization: Bootlin X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Oct 2021 17:41:49 +0200 Andrew Lunn wrote: > > When people update the kernel version don't they update also the devicetree? > > DT is ABI. Driver writers should not break old blobs running on new > kernels. Often the DT blob is updated with the kernel, but it is not > required. It could be stored in a hard to reach place, shared with > u-boot etc. Right, but conversely if someone reads the DT bindings that exists today, specifies phy-mode = "rgmii-rxid" or phy-mmode = "rmgii-txid", this person will get incorrect behavior. Sure a behavior that is backward compatible with older DTs, but a terribly wrong one when you write a new DT and read the DT binding documentation. This is exactly the problem that happened to us. I know that those properties are considered obsolete, but even though they are considered as such, they are still supported, but for this particular MAC driver, with an inverted meaning compared to what the DT binding documentation says. What wins: DT ABI backward compatibility, or correctness of the DT binding ? :-) Best regards, Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com