Message ID | 20240216-net-v1-2-e0ad972cda99@outlook.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67851-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp193169dyb; Thu, 15 Feb 2024 15:50:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXFHO2VdNTaWXrR4YainO+amT9Kg2gQAOE10UDq0U9nR8gyrfgTDxy89oFgLRoVeVIsiRMMX7M2YakjFWO7e0yY6oa0Fg== X-Google-Smtp-Source: AGHT+IF72/nWPEbQ03hb+eJPxIu9sfgwcFM6ygDtT2xwg96qKKyuP+ecDnDe6Py0Tf5SDl26uRfn X-Received: by 2002:a2e:8802:0:b0:2d0:dfa5:666e with SMTP id x2-20020a2e8802000000b002d0dfa5666emr2280890ljh.16.1708041034420; Thu, 15 Feb 2024 15:50:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708041034; cv=pass; d=google.com; s=arc-20160816; b=TSk0e5s4NJh9yAIFfpfbVgXNWvp/AQ5xXkFSnCRFL0yDoIltWPxlkBU4m1ITdHAlMY qnbbR31Q0G6hewx2yiJKDir7smoCzV8ggUDb5VVXSFL6omrSad/mGs43zZojwsa+mcVP ULuBtoVOKV9RTlTHnGhnjNpsVwiY+hhJ8RqkkrvSh0FGSIIzoOU6U08IZtZyQGSUXTcI zxeHt9oVOC79Lrabnn0ESktcENQctFFdSNC1PILY7Yw1tymisiyjXpNLcEQ0H407TKVR fbHKnhSUTRiPXeyXW8yK+9RI7S7fmTsNI/Z5RcXZ9tki6bIgjZwT+c9heId4iFEemGse HncA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=Yg3XDav6GCo+UMx/asrOFGkHXBL6eRmR0GRcIc/3Wps=; fh=YUyCOKAW57vGpD9UsAB1Jf96lQXTx0J/i1SlBxoko4U=; b=RsN0yG3HnshLM9fRx2ROcYud7h9dtsND3jVnOb0Om8S+vjbEmn0pRIhhmgvVbF/IJm D0SIt0SkCHfuya4qDlePWqzhi7kv4u0TFMz4VRPVSAxTmLYp98aM8cFVgAR472yflqZo 3yPMOw9smQ2+8rxfh5vJbwDtWkpjhcAwJNM0w2SvwiDiA5Q4/A9Dvyr9xJJbSo3gdLRa +uscUhCTPLOwYu0yWyMur8b361Jxd8hAjtF0UKjXBJg2VJls3wkg/O5IIoZcYyOsP+0k asUIEWnaQzXpyqAMaQOM6Fut6N6R4M/355gbNmQj8S1PjJBwUGRmMSRbXn3dioHc/CqF OgLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ldt4ZEkx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67851-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67851-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x19-20020a50d613000000b00563b8a5bb8csi872145edi.227.2024.02.15.15.50.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 15:50:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67851-ouuuleilei=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=@kernel.org header.s=k20201202 header.b=Ldt4ZEkx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67851-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67851-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 0ABDD1F23DFC for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 23:50:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF8441487C4; Thu, 15 Feb 2024 23:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ldt4ZEkx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3603A145346; Thu, 15 Feb 2024 23:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708040933; cv=none; b=t/O4sOoyeRwtKSKNdgRWiIRLF1rnSftMm20dwyi8K+3a4bm6BJToz8cZPqOJLG4siMSOhUL5Lxf5+V6SIy2gy5D8JtfAqF4xuL1jF0cnuu1dGe8Uxdn/4yuwrngJSNSxp0bhccx51Jc/ZSLlq64YeftJfKM/VrY2xprQ5TEweho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708040933; c=relaxed/simple; bh=kHlJYXFc2o2nqfCsYXCiE5nblag+GF9yfKhjdNiYNhk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hJSUopXQd7JAdpD+BrTcVx8j00NFhmYdD+S+5isoDXPffB7odOjG0+obU0FPPryjnK9DAOZpro/JswmRlI7NQTwgt3cblySUtIE0neF1af8sYM0pyjSIdmc1ptWFG6dgcly9wFiMZG2o1/pIbAW7vjvHnNUwXCBUYsrSQ3X18Wg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ldt4ZEkx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id CBF4FC43399; Thu, 15 Feb 2024 23:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708040932; bh=kHlJYXFc2o2nqfCsYXCiE5nblag+GF9yfKhjdNiYNhk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Ldt4ZEkxxdQARf4z7y9yg1o5ZZ4/aP82xEHLJH5KmamlzWCW4jhjbWAX1i587Ebzg GwMkGWZEV+zCulEthzeHhvnVpQOdP0r8LMZPoTx9O9fu171cuwnVdg9HRHsrLXvUGq 9jNqpii8HD9S+Gy8JuNPBrMM+bYkophvfHyj3qWOvMAZWzVGqAq3ftQsZvSxrGQoC6 ek49UUc6FTgR8wj9gaYLWuTpvaEtwRmg4tfpbPb2t929SFZJZxtNGL0rBr5RHHiV37 Mgkxxd3V4waxfmHOo/QdwMHBoRtnaAQw1QmqUDabBqCz9rB5r8NIw67hvUUeKkwV92 Nqfnpdp0ojPEw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B54B9C4829E; Thu, 15 Feb 2024 23:48:52 +0000 (UTC) From: Yang Xiwen via B4 Relay <devnull+forbidden405.outlook.com@kernel.org> Date: Fri, 16 Feb 2024 07:48:54 +0800 Subject: [PATCH 2/6] net: hisi_femac: remove unused compatible strings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240216-net-v1-2-e0ad972cda99@outlook.com> References: <20240216-net-v1-0-e0ad972cda99@outlook.com> In-Reply-To: <20240216-net-v1-0-e0ad972cda99@outlook.com> To: Yisen Zhuang <yisen.zhuang@huawei.com>, Salil Mehta <salil.mehta@huawei.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Yang Xiwen <forbidden405@foxmail.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yang Xiwen <forbidden405@outlook.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708040932; l=848; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=Q6RobEliCYMOixlSWarXH2F6cDTqzSpO8SvRil35ZCg=; b=ic/0aLLq/JZF1P0XEK/8iZ7k8+22sry3xHwtc9XbBn5LCQaRENK+l+qF4NuHlLn3JUOfAjl80 hhleIxNJVIkCJWBxDEHq/spq3dyp/PNQ7jhZX4WliE331rdd0VTU2CA X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen <forbidden405@outlook.com> Reply-To: <forbidden405@outlook.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791010835774654336 X-GMAIL-MSGID: 1791010835774654336 |
Series |
net: hisi-femac: add support for Hi3798MV200, remove unmaintained compatibles
|
|
Commit Message
Yang Xiwen via B4 Relay
Feb. 15, 2024, 11:48 p.m. UTC
From: Yang Xiwen <forbidden405@outlook.com> These compatible strings are not found in any mainline dts, remove them. Signed-off-by: Yang Xiwen <forbidden405@outlook.com> --- drivers/net/ethernet/hisilicon/hisi_femac.c | 3 --- 1 file changed, 3 deletions(-)
Comments
On 16/02/2024 00:48, Yang Xiwen via B4 Relay wrote: > From: Yang Xiwen <forbidden405@outlook.com> > > These compatible strings are not found in any mainline dts, remove them. That's not a real reason. What about all other users? Best regards, Krzysztof
On 2/16/2024 3:20 PM, Krzysztof Kozlowski wrote: > On 16/02/2024 00:48, Yang Xiwen via B4 Relay wrote: >> From: Yang Xiwen <forbidden405@outlook.com> >> >> These compatible strings are not found in any mainline dts, remove them. > That's not a real reason. What about all other users? The people who want their devices being supported should post a working dts first. Having found the dts missing is strongly telling me that this SoC(Hi3516) is orphan and EOL already. I can't even find it in git commit logs. I'll argue that the old binding is simply wrong, and does not describe the hardware properly. Who knows? Could anyone tell me if the driver is still working for Hi3516 or not? I'm very willing to keep the backward compatibility if someone can tell me the effort i paid to maintain the old binding really makes sense. But the only things i found in mainline kernel about Hi3516 is an CRG(clock) driver and this femac driver. And it's been 8 years since last update for this SoC. > > Best regards, > Krzysztof >
On 16/02/2024 09:21, Yang Xiwen wrote: > On 2/16/2024 3:20 PM, Krzysztof Kozlowski wrote: >> On 16/02/2024 00:48, Yang Xiwen via B4 Relay wrote: >>> From: Yang Xiwen <forbidden405@outlook.com> >>> >>> These compatible strings are not found in any mainline dts, remove them. >> That's not a real reason. What about all other users? > The people who want their devices being supported should post a working > dts first. Having found the dts missing is strongly telling me that this Considering how poor HiSilicon contributions were - in numbers and quality - that's kind of expected. :( > SoC(Hi3516) is orphan and EOL already. I can't even find it in git > commit logs. I'll argue that the old binding is simply wrong, and does > not describe the hardware properly. Who knows? Could anyone tell me if > the driver is still working for Hi3516 or not? I'm very willing to keep > the backward compatibility if someone can tell me the effort i paid to > maintain the old binding really makes sense. But the only things i found > in mainline kernel about Hi3516 is an CRG(clock) driver and this femac > driver. And it's been 8 years since last update for this SoC. OK, that's fine with me, but please add parts of this explanation to the commit msg (SoC is EOL, driver looks buggy and might not even work, platform was upstreamed 8 years ago and no maintenance work happened on it, thus it looks abandoned etc.). Best regards, Krzysztof
On 2/16/2024 4:26 PM, Krzysztof Kozlowski wrote: > On 16/02/2024 09:21, Yang Xiwen wrote: >> On 2/16/2024 3:20 PM, Krzysztof Kozlowski wrote: >>> On 16/02/2024 00:48, Yang Xiwen via B4 Relay wrote: >>>> From: Yang Xiwen <forbidden405@outlook.com> >>>> >>>> These compatible strings are not found in any mainline dts, remove them. >>> That's not a real reason. What about all other users? >> The people who want their devices being supported should post a working >> dts first. Having found the dts missing is strongly telling me that this > Considering how poor HiSilicon contributions were - in numbers and > quality - that's kind of expected. :( > > >> SoC(Hi3516) is orphan and EOL already. I can't even find it in git >> commit logs. I'll argue that the old binding is simply wrong, and does >> not describe the hardware properly. Who knows? Could anyone tell me if >> the driver is still working for Hi3516 or not? I'm very willing to keep >> the backward compatibility if someone can tell me the effort i paid to >> maintain the old binding really makes sense. But the only things i found >> in mainline kernel about Hi3516 is an CRG(clock) driver and this femac >> driver. And it's been 8 years since last update for this SoC. > OK, that's fine with me, but please add parts of this explanation to the > commit msg (SoC is EOL, driver looks buggy and might not even work, > platform was upstreamed 8 years ago and no maintenance work happened on > it, thus it looks abandoned etc.). For me, it's a bit lucky to find a (partially) working driver in mainline. It'll take me even more time if no mainline driver is available. In fact, i wrote the driver for mainline u-boot from scratch and it has been merged. So it's good to have this binding accepted unmodified, or i'll have to modify u-boot side driver code to keep them sync. > > Best regards, > Krzysztof >
> For me, it's a bit lucky to find a (partially) working driver in mainline. > It'll take me even more time if no mainline driver is available. In fact, i > wrote the driver for mainline u-boot from scratch and it has been merged. So > it's good to have this binding accepted unmodified, or i'll have to modify > u-boot side driver code to keep them sync. Sorry, but that is not how it works. If during review we decided it needs to be modified, you will need to modify it. I would suggest you first mainstream bindings to the kernel, because it has active DT maintainers how really care about bindings. Then get is merged to u-boot. Andrew
On Fri, Feb 16, 2024 at 02:01:08PM +0100, Andrew Lunn wrote: > > For me, it's a bit lucky to find a (partially) working driver in mainline. > > It'll take me even more time if no mainline driver is available. In fact, i > > wrote the driver for mainline u-boot from scratch and it has been merged. So > > it's good to have this binding accepted unmodified, or i'll have to modify > > u-boot side driver code to keep them sync. > > Sorry, but that is not how it works. If during review we decided it > needs to be modified, you will need to modify it. > > I would suggest you first mainstream bindings to the kernel, because > it has active DT maintainers how really care about bindings. Then get > is merged to u-boot. Just to note, the U-Boot folk are currently working on a model where they will be importing the kernel's dts files directly into their tree along with the bindings. I think they're adding dtbs_check too. Although that will be opt-in per board, it does point to an increased desire for compliance there too, which is great.
On 2/17/2024 4:05 AM, Conor Dooley wrote: > On Fri, Feb 16, 2024 at 02:01:08PM +0100, Andrew Lunn wrote: >>> For me, it's a bit lucky to find a (partially) working driver in mainline. >>> It'll take me even more time if no mainline driver is available. In fact, i >>> wrote the driver for mainline u-boot from scratch and it has been merged. So >>> it's good to have this binding accepted unmodified, or i'll have to modify >>> u-boot side driver code to keep them sync. >> Sorry, but that is not how it works. If during review we decided it >> needs to be modified, you will need to modify it. >> >> I would suggest you first mainstream bindings to the kernel, because >> it has active DT maintainers how really care about bindings. Then get >> is merged to u-boot. > Just to note, the U-Boot folk are currently working on a model where > they will be importing the kernel's dts files directly into their tree > along with the bindings. I think they're adding dtbs_check too. > Although that will be opt-in per board, it does point to an increased > desire for compliance there too, which is great. Of course. I'll sync this stuff back to u-boot once this gets accepted and merged. I begin working from u-boot simply because the Driver Model of U-Boot is much simpler than Linux's. I wrote the driver for U-Boot first to figure out how the hardware is working, then port it to Linux.
diff --git a/drivers/net/ethernet/hisilicon/hisi_femac.c b/drivers/net/ethernet/hisilicon/hisi_femac.c index d72160efff9a..6dabc62a00b7 100644 --- a/drivers/net/ethernet/hisilicon/hisi_femac.c +++ b/drivers/net/ethernet/hisilicon/hisi_femac.c @@ -990,9 +990,6 @@ static int hisi_femac_drv_resume(struct platform_device *pdev) #endif static const struct of_device_id hisi_femac_match[] = { - {.compatible = "hisilicon,hisi-femac-v1",}, - {.compatible = "hisilicon,hisi-femac-v2",}, - {.compatible = "hisilicon,hi3516cv300-femac",}, {.compatible = "hisilicon,hi3798mv200-femac",}, {}, };