From patchwork Fri Feb 23 13:28:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 20866 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp584675dyb; Fri, 23 Feb 2024 05:32:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfafuOKAKAbSWelw74bO9I14DkIvwRrm6Sa5Bpee9eZfisQXiJS2TEUEKqRilr4sqxAopm//Fij98DXu+8k4scXf0LzQ== X-Google-Smtp-Source: AGHT+IEq41LW6K7NvbRVHzVcg8zNdJ753vy7aJHLn8qGdnEEQTj6xt9DaBuqZkY//CW8uvyrA27C X-Received: by 2002:a17:90a:4417:b0:29a:691c:8404 with SMTP id s23-20020a17090a441700b0029a691c8404mr1842833pjg.0.1708695136171; Fri, 23 Feb 2024 05:32:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708695136; cv=pass; d=google.com; s=arc-20160816; b=VmLIe1sXCboyPyqNb7IRYvDC5C7LipOrn9S5Fq2Z0zgRzT/uTYarzocI1DBu9ygQLH +OrUWaolwyQSe6qp8Bh+ihHcMpb0CZ8Yqd/RqXgnpy+2lFMKgeyrVe0/cdnE+C2WxJkK 8oAVg2EOtwXHRGi11xx18JonSOiql4UI88SBWHJppe7VV10eDR0milBAXeIX1TQ3HMiy qz+RxIDTEHo3yslIRRZX2j00EJVxQA3auW763Lpla4/1bGzgxQ6JcqGLIAWZNfUkZqBU BF5WvcrcEW/Uz5EdMdVscdPGMRaWZG/VGcgOrX02t7z5yJHyE2j5RcQmUAX8T59h7NgH cKcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:from:dkim-signature; bh=KTsQPPnF453oOX9vxfDJ7AG8ZRQrMimRJuqYHpL5W3Q=; fh=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=U9GCQqQ+HMeniJAaVEDF7R3nCaFQmfKtSWSxyNsb0cvyc+ihGHuaVsu9fNPl/QP0/6 fe/tzWUJ4uz5BJcbmwPXREDoEqNllpvN972m4bq4aGFDLnY+sVcnf2jv2LEumzGFAxMF jgWf0GRAkb41hDndi5x6tUqqCa4I1C1sOTT0CFEHYDoCM3eCkE5DFH2ItsFHF5HmXSiq 54k5m9gdz6GUg3CqsarFKqQ0U+SBPbaer/+cJoxSNtDs2h8PSssYBxy6F3KGy6ES3Zmx 8zFnq2/YGeNLjiAzZPYGfzX8c9JBDPmpnVU5tsxyRuryLBQLbD/BwAKmBGvjsbmT/T5/ o56g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QMKlpope; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78375-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78375-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id sw11-20020a17090b2c8b00b0029722c5b612si1201653pjb.33.2024.02.23.05.32.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:32:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78375-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QMKlpope; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78375-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78375-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9A300B2242B for ; Fri, 23 Feb 2024 13:30:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FA9082870; Fri, 23 Feb 2024 13:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QMKlpope" 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 ACC427A73A; Fri, 23 Feb 2024 13:28:28 +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=1708694908; cv=none; b=G3p9yH2A6/x1KIhFxF5WjGQtSW5J7M+EviBA858Ec4ujErvL5vTWMZ8vX/mIx4FF3fImIsk64V/8Jp0EMqJWSkLHhIdFoyZaWUDVZP/AUolySeB/cDkbVMMuMLSIxkywZuSFe4negNld+2JouqYCv/cq5wLbHN3/Uf5/dXXtZjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694908; c=relaxed/simple; bh=8DzLgimkymdwxe/dgxIFcpGgsnFMVLS8xgcZ/cKHlA0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=AFrxcVRKKgejlg1d4LRjEecsWQ0Swwo0xeHGT0Yw3rlxBe8xiNIYDzt5F8++Htv5LyzksehlVAMfQhzXWENQ10fAN361z7dYdcC/hoVf+CWo3gJnk96yrGU8bDkOKGLhz79qEyeaYbC4uJRKf2+Zv2vydrvvL+44sz9n41d3b4c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QMKlpope; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 77180C433C7; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708694908; bh=8DzLgimkymdwxe/dgxIFcpGgsnFMVLS8xgcZ/cKHlA0=; h=From:Subject:Date:To:Cc:Reply-To:From; b=QMKlpopeiC4P7KqbFG2J/pnhV+q8ybPdy1eTWQMGC8qMYxATNb1j2UVyHWsDRbxz2 tJFTcWW7/UpLLpzPzxycF2H9UslrDRE4/hxd5j8yL7pMfgm1KhLbC7owcl6gTbAqaF UNSsZoMtdaQWoxCbiHuQWh+giLkSUISSVS2Vv3gWCl5u2Nz5oKkpDxb0bwnpyheGGE LBNboSOQvItKUTqGp09jqDWRV57uFCjb/DYe3G2mURKBhxJxgyNvgJURwTActh+Q2r wdzWitT+5aHrJlrRJmgsE0J699i4LbANrkqDj0o4ZlWVfZ1169fUK4zDIjX5cLYiZW zNAFcC/V15XPA== 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 5D918C5478C; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) From: Yang Xiwen via B4 Relay Subject: [PATCH net-next v5 0/7] net: hisi-femac: add support for Hi3798MV200, remove unmaintained compatibles Date: Fri, 23 Feb 2024 21:28:15 +0800 Message-Id: <20240223-net-v5-0-43b22d39c013@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAG+d2GUC/23OTQ6CMBAF4KuYrq0Zhv5QV97DuChl0EalBpBgC He3wAaiy5c338sMrKHaU8OOu4HV1PnGhyoGud8xd7PVlbgvYmYIKAATxStqubEIGSXaCShZvHz VVPp+Xjmz6aCivmWX2Nx804b6M893ydxvlrqEAyewhdHoCmvMKbzbRwj3gwvPeaHDPwqjykxei FyDkg5/VbpSCItKo8pVRjLXkrSSv0qsFS5KTB+SVVlp0hIMbNU4jl9E8i9QRAEAAA== To: 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, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708694896; l=2386; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=8DzLgimkymdwxe/dgxIFcpGgsnFMVLS8xgcZ/cKHlA0=; b=FY1uLXGvPGQH6mhEYG7UftN41nXckDIFRjZaWfO2cVFD45mih3KdAAhxbqNJaCm5hhnov0qCN iokPH60OCTFANhtIoY/prVwwMtMyfiFHSW228W4qgeU5i94yCNpQGD1 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 Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791696710926072996 X-GMAIL-MSGID: 1791696710926072996 Signed-off-by: Yang Xiwen --- Changes in v5: - hisi-femac-mdio: remove clock completely (Krzysztof Kozlowski) - dt-bindings: mdio: apply comments from Krzysztof Kozlowski Changes in v4: - edit commit log to show why mdio bus clk is optional (Krzysztof Kozlowski) - add clk_bulk_disable_unprepare() during error path (Maxime Chevallier) - remove of_node_put() (Simon Horman) - remove histb-clock.h header in binding example as it's goign to be deprecated. - rearrange patches so binding comes before driver - Link to v3: https://lore.kernel.org/r/20240220-net-v3-0-b68e5b75e765@outlook.com Changes in v3: - rearrange patches to fix bot error. (Rob Herring) - rewrite commit logs (Andrew Lunn) - use clk_bulk_ APIs (Andrew Lunn) - fix uninitialization use of ret (assign to -ENODEV before goto) (Simon Horman) - Link to v2: https://lore.kernel.org/r/20240216-net-v2-0-89bd4b7065c2@outlook.com Changes in v2: - replace email. - hisi-femac: s/BUS/MACIF (Andrew Lunn) - hisi-femac: add "hisilicon,hisi-femac" compatible since the driver seems generic enough for various SoCs - hisi-femac-mdio: convert binding to YAML (Krzysztof Kozlowski) - rewrite commit logs (Krzysztof Kozlowski) - Link to v1: https://lore.kernel.org/r/20240216-net-v1-0-e0ad972cda99@outlook.com --- Yang Xiwen (7): dt-bindings: net: hisilicon-femac-mdio: convert to YAML dt-bindings: net: hisilicon,hisi-femac-mdio: remove clocks net: mdio: hisi-femac: remove clock dt-bindings: net: remove outdated hisilicon-femac dt-bindings: net: add hisilicon,hisi-femac net: hisilicon: add support for hisi_femac core on Hi3798MV200 net: hisi_femac: remove unused compatible strings .../bindings/net/hisilicon,hisi-femac-mdio.yaml | 39 +++++++ .../bindings/net/hisilicon,hisi-femac.yaml | 116 +++++++++++++++++++++ .../bindings/net/hisilicon-femac-mdio.txt | 22 ---- .../devicetree/bindings/net/hisilicon-femac.txt | 41 -------- drivers/net/ethernet/hisilicon/hisi_femac.c | 78 +++++++++++--- drivers/net/mdio/mdio-hisi-femac.c | 18 +--- 6 files changed, 217 insertions(+), 97 deletions(-) --- base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d change-id: 20240216-net-9a208e17c40f Best regards,