Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp475642lqi; Thu, 7 Mar 2024 02:55:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1rSm7iXD0tIL6wRJPvO6RsmiGjQHjCSRgNs6fTb5yK1+CrX5wE0UBPLQsivSdqmSHRWuAKfYZ5WTTsoWt4Q9IFuh1IGsAB9e3Itycvg== X-Google-Smtp-Source: AGHT+IFrh13gj1ef//zSF4PZPncUgubVDFVHcoHNsWBWCb2pTx7az87EbIDKBM+rEBunG+gIWhhC X-Received: by 2002:a05:6a20:7793:b0:1a1:4d18:66be with SMTP id c19-20020a056a20779300b001a14d1866bemr6388346pzg.52.1709808900741; Thu, 07 Mar 2024 02:55:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709808900; cv=pass; d=google.com; s=arc-20160816; b=AVo2AUH6J+n4t+10F5e0PJN1uT046y0waCd26vexAk6RYcQx+xOLYxPMDP0kjyrVTI RLtxsU3xkpM3cLQrVeiCmAVZ9J0NEIKDSZM6lRS3RnX1gNImqVlJ2wpIWpq34yc03ncm sSN6ebKtd0filg9i8jz3WTJU6HoYVJDMoyqJ4ULp3qlZoIkC9HUlYcTZVJkUi6JiKFc0 eW+woge/qoPoQ8GZWYBVAaKmbOj7Bkvz8Pe7Pht/Rkvc132CWE7PaTEZmYbjycu54IS0 uocVADDE8dPtQR85iwpLGwnsjPyNGuF3SZUa++AANZ+MUVHhP2p5lVvnyizYIqvGfDvr Kdww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=L92e8PXyuWLhf1oxm+/VjaGzKgXNS1PJSpZ6PcMT0dU=; fh=4vlM0VSgKk/y99U6faJIUFZYCx48a/B7kDtOW7/YzY4=; b=nuTExms+wsCvDY5D83n3Mriptc3nD8GKQhzl9jY40fbunxTMhzjmseUFDM2QwT3Q6B TPg+HrDftgjIv3yLsh1LPq8a0lFDvdEnjA/Lig8ixFK943XxqIIchk8GBJLkaJTYf7pe lqb5Ub3bT1odk+R+WVqboXonL/rxb3OY3RutF/9CDZ/vMdgXiGcdnanxCl9E279+zWzJ hYRo9Q9xNxux4oGClxiWY5pxW3oENzCzoAc2d2nQsBtX+LY4jJOYxq1R+CCyYrv1bk8b oEtfXGyMXRhzY/FivLrvmxpxF9vMFdB4UJXHrUUAdHbyvudSMFzTkdDO5L0odXOWK8n2 ErKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IdD8ojq3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-95365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 f12-20020a170902684c00b001dd5a09116csi436302pln.115.2024.03.07.02.55.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95365-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=@linaro.org header.s=google header.b=IdD8ojq3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-95365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 1C2DA2838F7 for ; Thu, 7 Mar 2024 10:55:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C4AA127B61; Thu, 7 Mar 2024 10:54:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IdD8ojq3" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99C6B85633 for ; Thu, 7 Mar 2024 10:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709808888; cv=none; b=W4yvZl3uiz18zSBBCJmPJqYTQEqgvJejKlh8o2ZXkED0KroZUutv/dqRJ1EbQJeKBDlByOgHeawOljzXs2wK11J4OqQLA7vR80VBcFPiKX2/msuG7dq6XqJmCOCJNTb2kzMqmwHxqg1i3+OHZyHEADwfaaR9mpMVM3PauFaKFE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709808888; c=relaxed/simple; bh=hFENZOecmZ2fiZ6Ikwhql99wba8osU4H003EBkgSnws=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=F8s+pblWz7+Kt5U1uHcAOJX9RBx8Vx/ya0ogfWP8zxyvW57ed84u1KgL/gTg4phpNlCNrDJ7PePUEL/uJunL8sCviDz106LgoyX481BvDRDy8YLzPgcJHrgkjnDyT5kDFF91w/alI4PI3y0azkdtxUrCCa9kbhRYUwO1+eOtxBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IdD8ojq3; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a3f893ad5f4so99826266b.2 for ; Thu, 07 Mar 2024 02:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709808885; x=1710413685; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=L92e8PXyuWLhf1oxm+/VjaGzKgXNS1PJSpZ6PcMT0dU=; b=IdD8ojq3Zb0CugVzeo2ezkccm3AmH+WVDSicbqFNjla+sdoM1R5Y9dUqYwSs19/hrd XEkFG8sU9A24tmdBb1omIBjahaQ7bX3hGA+NwtsXx6cPhIuLPYfBtsmGdtCA5mgar9G7 wgcFvqHq7GC4NEjfaYECIVLwvzve/qyFm+QJmH/KEF8wjo2m5auRvGqvgMKIpC09Cht2 FhyB6vgbLsIxESr6uDX2y7OpoG0YBugaJX4S6CiwmK6cSHrAjZA9rXHz5aMgaLPkg75p iszKs9l721CRkML+ybbL3kIGuse3LrGm4cjDDFMRvmDQDWFUCgpDCbsBDp6UCpv5ujhJ 7Mog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709808885; x=1710413685; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L92e8PXyuWLhf1oxm+/VjaGzKgXNS1PJSpZ6PcMT0dU=; b=XqQgFhdzR1+VC/EX/I5zpMGqXTKm+IEW0gZLFGSQaKOiQtP7JyPilTlybGlyt5EWnB f7iHaOujYLkgYDao23Em9YvVQotIxqPH4wtsUR+Bb/bSA+jGsmeDBUAkwtKRMC/q7+mt PvS4+FmFG5ouE0yfQY5tikvua78ps5cIwGkaElhb6KMVQ6rqDtFQrFz3APUgg/3XrFIR AMiigp3DjPNbIYDYgY1awqKLFYQgaP4j4Pv2Wu7c+D8STx/S2mD6fGBosTnvML99mE4V WiVg2nR9j8yuFLaWrOnMmDxgm/A/wv+cVMCJZTfcmS0/t7rTFUDLOOm7geNkSasvBNzo Mrtw== X-Forwarded-Encrypted: i=1; AJvYcCXk9/U509AVRXtwYSwzzdUbXvBJvPZ+oQX+LfH91yiEBz10MB3weXV162fsr5zF3tL7YNjoPREojYSc9albtOAyv32W9yMbJNiOadJS X-Gm-Message-State: AOJu0YzFW9P/fSsaXK1qzWJlj3XqcdQiNa8jqh/5i90o0eeBNFf77ddg ZoHrZCAOAj2jXKjv+q/PY1Lt4Qhj0F2o7fDTYg/JDJgXoZB2MucB3JqgsAuEgFA= X-Received: by 2002:a17:906:6c8:b0:a45:6422:ea2a with SMTP id v8-20020a17090606c800b00a456422ea2amr7746920ejb.41.1709808884851; Thu, 07 Mar 2024 02:54:44 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id me12-20020a170906aecc00b00a45af5df0f3sm2200401ejb.112.2024.03.07.02.54.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Mar 2024 02:54:44 -0800 (PST) Message-ID: Date: Thu, 7 Mar 2024 11:54:41 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v8 4/9] dt-bindings: net: convert hisi-femac.txt to YAML Content-Language: en-US To: Yang Xiwen , Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20240305-net-v8-0-166aaeea2107@outlook.com> <20240305-net-v8-4-166aaeea2107@outlook.com> <66cf4c42-5b8e-41b8-bbdb-7fb2c6bb9e66@linaro.org> <66f578b4-5e1b-4cc3-b39c-3b61797cacd3@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVs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pWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/03/2024 11:33, Yang Xiwen wrote: > On 3/7/2024 3:48 PM, Krzysztof Kozlowski wrote: >> On 06/03/2024 10:28, Yang Xiwen wrote: >>> On 3/6/2024 3:39 PM, Krzysztof Kozlowski wrote: >>>> On 05/03/2024 08:51, Yang Xiwen via B4 Relay wrote: >>>>> From: Yang Xiwen >>>>> >>>>> Convert the old text binding to new YAML. >>>>> >>>>> While at it, make some changes to the binding: >>>>> - The version numbers are not documented publicly. The version also does >>>>> not change programming interface. Remove it until it's really needed. >>>>> - A few clocks are missing in old binding file. Add them to match the real >>>>> hardware. >>>>> >>>>> Signed-off-by: Yang Xiwen >>>>> --- >>>>> .../bindings/net/hisilicon,hisi-femac.yaml | 89 ++++++++++++++++++++++ >>>>> .../devicetree/bindings/net/hisilicon-femac.txt | 41 ---------- >>>>> 2 files changed, 89 insertions(+), 41 deletions(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml >>>>> new file mode 100644 >>>>> index 000000000000..ba207f2c9ae4 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml >>>>> @@ -0,0 +1,89 @@ >>>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>>>> +%YAML 1.2 >>>>> +--- >>>>> +$id: http://devicetree.org/schemas/net/hisilicon,hisi-femac.yaml# >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>> + >>>>> +title: Hisilicon Fast Ethernet MAC controller >>>>> + >>>>> +maintainers: >>>>> + - Yang Xiwen >>>>> + >>>>> +allOf: >>>>> + - $ref: ethernet-controller.yaml >>>>> + >>>>> +properties: >>>>> + compatible: >>>>> + items: >>>>> + - enum: >>>>> + - hisilicon,hi3516cv300-femac >>>>> + - const: hisilicon,hisi-femac >>>> Drop this fallback, your later driver change does not use it, so neither >>>> should have binding. Explain in commit msg, that old binding was >>>> incorrect (we discussed it a lot) thus you are making such change during >>>> conversion. >>> >>> What about deprecating "hisilicon,hisi-femac-vn" compatibles and >>> introduce a new generic compatible "hisilicon,hisi-femac" instead? This >>> way, We can keep backward compatibility. >> What backward compatibility? Didn't you say bindings and driver are >> broken and you are going to break ABI to fix them up? > > > Yes, indeed the old binding is broken. I'm just wondering why you say > "hisilicon,hisi-femac" should be removed. The FEMAC core on both SoCs > are compatible afaik. You don't use that fallback. What is the point of having it? You express compatibility via SoC compatibles. Best regards, Krzysztof