Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp402496lqc; Fri, 8 Mar 2024 00:22:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5grmyR1/C24ZrFvg2NoBSk9Y/wkFJKmfAh3Os0rVqpnoV+hnFDeX5NSRQ2O4EcU2I6Ztn4lGnKcr+gJeHBKQu8EfBid9CCl/MwCVloA== X-Google-Smtp-Source: AGHT+IF+nk87RzaycvFEnabCp5nrLG/w7FgYbnYKuRK0mwMkRdenNbikP4Z5wAbuXR3fEBnnPeRr X-Received: by 2002:a17:906:2406:b0:a44:f4a9:ea3e with SMTP id z6-20020a170906240600b00a44f4a9ea3emr11000541eja.12.1709886177286; Fri, 08 Mar 2024 00:22:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709886177; cv=pass; d=google.com; s=arc-20160816; b=Yv5fuFAhKGyd0qmRLAQq6ypZPgSNWgMp/oXmR8i21Pn4ABltDpuIUJkj0BDm0hGES+ GP6YiYAoJrodE298LUP0OFZi8kvZw0w9g3qUce8Dz/PRTFW74lrqPfkRNzbA59DdK9hP 6cOqva/QiqSw7TuadHhrOeHY0YpRE9mX9Wzo5X5Et1tmsib4eSdb2DsI7ZIeWbohd0Mt vp9TEKs4Ijl2lJRtr+rDqmVoZ7Ppl+uxtuJ8hOp+/HWe0RckDBHGUJuOn/tNMR6farAw pFS02wH9bikgJivZUHeNySHPe0EN6fb9d1ptgRwhFD7tMto3/H/VPXsZ3+Cwttq0MEdU exGw== 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=MBCprgFYoUn8Y+xzvtdODul06R5mYKc2lB7UpcRimLs=; fh=QFzrDIy73BtC0xZyJij0r/BhYmWeCiowf2q2Z2e773k=; b=ZBkQSGLd4Qa/C/cja+fH6PidPL7SWrlsNMYRIeqHmhgpuZefWbeZ5uyLJVZCB7DiIS 19QicYyCD+Kmrssldyj9k6Mkbg3FAfbPMsNLx5WUqDf1t8UTsp1XpYirXnXk+7D/yRKS LdNszLKW1paqtWggC3QvsC2yqdDg2wl4TW5hpZVafk7ZLC/wQjepGX4+PTa1LddVMz+h I7K+PyJmKOD65YRESfm9Dl9Hg/G01Komc7gLE78lTGr64BQRJeMLFmRl0r8/6hJfynzX TBh34x51yorLBL0hAtSAU8V5qtbogHulN6suVKfKxsucj0sucMOtb0sBYTD0sysp6Mto M+Kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iQsWYTpN; 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-96645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ku13-20020a170907788d00b00a45aefc7a74si2719681ejc.580.2024.03.08.00.22.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 00:22:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iQsWYTpN; 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-96645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96645-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B971C1F21332 for ; Fri, 8 Mar 2024 08:22:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36069524A8; Fri, 8 Mar 2024 08:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iQsWYTpN" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 5DB4E51009 for ; Fri, 8 Mar 2024 08:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709886164; cv=none; b=hwhBHTfHzxCjKQ8WGYaot+jjvowx3jZgcbBXHZhxe5k8yjtJ2Wv8hJx3UpNdFrt3F60MPamZDdZsFCRgZ4u/MLp/2Wlaw4y2Qics1D1LgiaJ4IIWcZ5K8T8odkYdOJnYlMPtfFlpd3F8fIszryoakRYUzwxUD+8O/eq5ih6Qgu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709886164; c=relaxed/simple; bh=Znf+9MNwPib1lHJSsGEHjM4k057n3SI9agYFPAu9+JY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T7da+E5YZdRo/vBc0iSERdOy/cdXJIuKlHqoTfOhy1hnm4uBqSoHrExLdataHA5BrUkH2a1gFl89oCEGD92PheYdUEkca1H01R80uj+IbfTw56if89fww/F0+DRfUrSAjR+Lf+5877N7MDa8zgAxI8eGeSoOCLZmw8h3N0jzf+w= 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=iQsWYTpN; arc=none smtp.client-ip=209.85.218.49 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-f49.google.com with SMTP id a640c23a62f3a-a293f2280c7so295588766b.1 for ; Fri, 08 Mar 2024 00:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709886160; x=1710490960; 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=MBCprgFYoUn8Y+xzvtdODul06R5mYKc2lB7UpcRimLs=; b=iQsWYTpNWKBoMAHF+woN1WhFnafu2aEPWwrtQprT3/87dJ2uu3ZJ6TF8UY7h1mDAv/ KTNi+ezCn+1V/swjQPy0JwWm03LXELVi4xeuXN/lyDu8vCZF3w3cBo2D+uyIQUi2GSme 4cJ4clRqDuyiJZ0NdCg8OSht6w18mJ+pXDVe3W9ctITAknenMxeOu4oBQzXOL8/XKfHG gLBk0fXU6fHa2T5fQeIA7Hbb2RlsDYM3niGZXECHTqQedbUNDSeNWVkYd+51ZYyiJLL8 8bloCJmYuBKgBRmNV20hKtlfbu7AJb0D1ZRWAGsdCK4pBiMw8I0HOcv0qM6QyWte+OcZ o6wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709886160; x=1710490960; 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=MBCprgFYoUn8Y+xzvtdODul06R5mYKc2lB7UpcRimLs=; b=IKK19Gmdf8/L4exbZHH2ED54x9BBar1uNDBRKbb6bGnbG5MWtpGenXnN26Khjl2sT4 +oYn4VMOthUlWJeD/9Xpqj5pkCnM1lDZ8RAytulTOUJSuUreDX74tAHuARRHxDh9r4mS WcBxiimCYsjTvpF4KOxYjIQQbsoIhyvnszrGHyNJXLBmuleYCYh9iaw09B6xE01gV0T5 hly6hERHEFphKVxD8LwFyEzOQ8CI4GVrKb8yT3xzN0e/eJLC9c/rwBNvfFel4MQyW6Bw IPk00VNuddHc2XmrgMrN1NW8NldcOJtvTUswdIERkWGexgj1t3V80Sk2yZJm7qBFPVGu CtIA== X-Forwarded-Encrypted: i=1; AJvYcCXO73U6PYepjgllVXxGRzXg0EnJMfZYU62KlYltq5HMLNUFVmR9TdmD1BnzGyB8H5fCFgBNxPMCgtkt9ko4DVnqpPutuiHfVy7UkDPw X-Gm-Message-State: AOJu0Yx6KW4g+NMP4ixHKi3dcGumLm9990C/u+OF0xUDBEDxwfB8rWAq cy7eP8ZiFVxYG/fLLvlOWPOAsga9KeIlMpaJa+24XveK5QZMvW+U+YKPj6SuDiw= X-Received: by 2002:a17:906:3c4f:b0:a3e:b523:90b with SMTP id i15-20020a1709063c4f00b00a3eb523090bmr14446616ejg.14.1709886160454; Fri, 08 Mar 2024 00:22:40 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id l26-20020a1709066b9a00b00a45b81acdfbsm2703484ejr.210.2024.03.08.00.22.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Mar 2024 00:22:40 -0800 (PST) Message-ID: Date: Fri, 8 Mar 2024 09:22:37 +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 v9 8/9] net: hisi_femac: add support for hisi_femac core on Hi3798MV200 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: <20240307-net-v9-0-6e0cf3e6584d@outlook.com> <20240307-net-v9-8-6e0cf3e6584d@outlook.com> <37ebeeca-e53b-445b-9fa7-53a1b7a4dcd3@linaro.org> <1cdbe5b8-ed3a-46a6-bc73-6bf35e3305f2@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/G23PcowM1CwP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bLlqs2XpWaVCo2jv8+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 08/03/2024 09:18, Yang Xiwen wrote: > On 3/8/2024 4:09 PM, Krzysztof Kozlowski wrote: >> On 08/03/2024 09:07, Yang Xiwen wrote: >>> On 3/8/2024 4:02 PM, Krzysztof Kozlowski wrote: >>>> On 07/03/2024 12:34, Yang Xiwen via B4 Relay wrote: >>>>> From: Yang Xiwen >>>>> >>>>> Register the sub MDIO bus if it is found. Also implement the internal >>>>> PHY reset procedure as needed. >>>> ... >>>> >>>>> >>>>> @@ -946,6 +991,7 @@ static int hisi_femac_drv_resume(struct platform_device *pdev) >>>>> >>>>> static const struct of_device_id hisi_femac_match[] = { >>>>> {.compatible = "hisilicon,hi3516cv300-femac",}, >>>>> + {.compatible = "hisilicon,hi3798mv200-femac",}, >>>> Why do you keep growing this table? >>> >>> I'm completely confused. Don't I need to keep binding and driver >>> compatible ids sync? >>> >>> >>> The FEMAC cores on 2 SoCs are compatible afaik. That's why i want to add >>> a generic "hisilicon,hisi-femac" compatible. Though i know nothing about >>> the mysterious version numbers (v1, v2 etc..) documented in the old >>> binding, so i want them to be removed. Instead only keep one generic >>> fallback compatible. >>> >>> >>> Do you mean that i broke the backward compatibility for >>> "hisilicon,hi3516cv300-femac"? >> No. I meant, use one as fallback and only fallback needs to be in the >> device ID table. There are dozens if not hundreds of such examples in >> the tree. > > > I don't think an arbitrary SoC compatible is a good name for a fallback > compatible. Why can't we have "hisilicon,hisi-femac" instead of the odd Why? Anyway, why rules for Hisilicon should be different than for everyone else? > "hisilicon,hi3516cv300-femac", If we are not going to keep backward > compatibility? Hi3516CV300 is just an old and outdated ordinary SoC > after all, but the FEMAC core is still being used in latest SoCs afaik. > I can't see the reason to relate this core to some old SoC and keep the > compatible forever. Why rules for Hisilicon should be different than for everyone else? Best regards, Krzysztof