From patchwork Thu Feb 22 12:43:20 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: 20791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp226133dyb; Thu, 22 Feb 2024 04:48:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbKmXdQnUiWRYiIposqLbSH4k4GzmXaBR3DHAdaGpQYYvTr5J0RIIUkg7QN+KF7LiY2zOIuFV08FAycrvFuMqYyUqVfA== X-Google-Smtp-Source: AGHT+IEuWKMVw38LuOQUt3JWiU4n6bMYlukwU9hj5a18yaGPfCpl+GVjtyFyz53N1f6ElJM4PF1x X-Received: by 2002:a17:90a:d157:b0:299:64d8:10ef with SMTP id t23-20020a17090ad15700b0029964d810efmr12603985pjw.10.1708606113259; Thu, 22 Feb 2024 04:48:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708606113; cv=pass; d=google.com; s=arc-20160816; b=bprNZYMEnY0Lq7n5pe2ynDRIPFJj4ejyKrenlF9rd0kPu6Zu1jcueHcWLzXgN5QFEI fqbFxgCSP/BEZIKMnowWiWqhpVB7CEztkozVWH2/Q0p9qZz4rMH3xCy57fLgdhrf+/wQ JUC+zfImxLWYWBehoLSMmuv2XRpQIopdR8UohoRN65+me9shgTxOnu464HhOx9m/G/Cy ZkcN057/AMw2ufYeu0H+QJQeH6kgkjfqezJkcn51+FrIcWVV/WVKIHho1sCHBVcyzs8r 4zWKT8h6oCQRQ0r0M5yZSwnZpnnsnePzBaHvUYIjn5aKHOovzbG85Csm/U/B9V5HkTbx RhOw== 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=/UriqUDZOVTOdrLY7fvobESzgDF+A3KZymF8MeBXlFo=; fh=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=VJutv8+/3KP2rwR3NJnQTwYDSYx9Q8Y4irfALTAbPQR0+YpanIrHreb+uRxx4jo4NU 5RpSw10s6exK/xY+xuxHYM2FLmtn5zqumkqNawn0rpDhfpv9UoAcPdIhnXoYGarwdDxZ BKlu0nqFz7RS06tWY9Qh2Ww5+3A2Pq5fBkshnzaaPomDoDy/ZxoQSMMa5o8dKeo4rZsj 34WoyYK/KWw35ebdeGJTn5kwK8yucNh8yZA8eKsJkcsZZTOY5kagqiR//DMoSgypECHK narCbP6eZK/lLXGGjituvrGNLZlPmeDtaWBF4MhHmdTnJUgFxINkFCbswpVUj3Zm8o/s 157A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RpPnITRj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76528-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76528-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bu5-20020a17090aee4500b002995cc18356si3476543pjb.67.2024.02.22.04.48.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 04:48:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76528-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RpPnITRj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76528-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76528-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 07237B266C2 for ; Thu, 22 Feb 2024 12:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2642E14601C; Thu, 22 Feb 2024 12:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RpPnITRj" 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 3227312DD8F; Thu, 22 Feb 2024 12:43:41 +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=1708605822; cv=none; b=p7yRrEG0XJgzSRahCEfQICO1lM1ME+u+tnHJ/U1Bo/YqcsY+H3avl5FI/u2aqckpzC+YjQZTNwyEzRp4taeBektijE19H1Eziy8jaZCC7Mm+o5xBw3xYUmgqSF9joJPXbOoPbBxwL/CbV9YUwVbzl4VgKwZ8ULV943hl/j3HNrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708605822; c=relaxed/simple; bh=fxXyTnfaIEMd/Q22ZZODuf6RK5WPhFO+nFybeSW6WRM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=i3zd80/b0pOkhalFbXFzIsdEVkFe+VoiHFBtlrn+cG77It6cetyP4EGX+NHOAYGTMnuJ1hLERvT96loGFbyD/7KSL+kcsKW5mxrKlTj9LuDlkyG3/zd5EGLt9Ea7LMOCkZxThsH+9GhEnzOH65JdIWiq7CQuAiL1Uk3xwZgOxac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RpPnITRj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B4D9CC433F1; Thu, 22 Feb 2024 12:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708605821; bh=fxXyTnfaIEMd/Q22ZZODuf6RK5WPhFO+nFybeSW6WRM=; h=From:Subject:Date:To:Cc:Reply-To:From; b=RpPnITRj9dSrbD/t1sjshLiCi+BTf2/+GLZKXBfbvIrcS9Dr+zgjeEG+Cxk3gckMj ywTBYOowk3LFLqYciEEVkEabePeA7LPzG0sdosaIFsrJmomlgIF0DVSnWpd/KS7gF9 iLle01qR2CL/hJfutEOcIZC6iVaXm3l08f6EWUB5gvkX7peKxal/tMR6vCvmzJJ2G4 Jtk0rV5EKkQY72Um+LhKXxA+UlbcWIATMEak7dDOpYhDFcD3bmQclAzOM/pSV/8lLZ QkWYiR6Cul67kLGmDJIHeVXJnszYP5wzwqY4//2O82yGy3f5OrGXWRYSwg4T3MfUb5 san7A+127UYfw== 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 96A72C48BEB; Thu, 22 Feb 2024 12:43:41 +0000 (UTC) From: Yang Xiwen via B4 Relay Subject: [PATCH net-next v4 0/6] net: hisi-femac: add support for Hi3798MV200, remove unmaintained compatibles Date: Thu, 22 Feb 2024 20:43:20 +0800 Message-Id: <20240222-net-v4-0-eea68f93f090@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=H4sIAGhB12UC/23MTQ6CMBQE4KuYrq1pH/2hrryHcdGWhzRqawAJh nB3K24kupzMfDORDtuAHdlvJtLiELqQYg5iuyG+sfGMNFQ5E2AgGHBFI/bUWGAlcu0Fq0le3lu sw7i8HMl7EHHsySk3Tej61D6X+4Ev/epp4JRRZLYyGnxljTmkR39N6bLz6bY8DPBHQValcZVwm inp4VcVXwrYRxVZOVWidFqiVnKt5nl+AcVufu0OAQAA 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=1708605802; l=2180; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=fxXyTnfaIEMd/Q22ZZODuf6RK5WPhFO+nFybeSW6WRM=; b=RrqJTz2jLMJ7U3KfrwKu0Jq2o8HGaCGAG8EpKR8IWL0Pa49wginkGhGWVa/kmqdHo7rVh6UL+ Vmh4RpB5yMYAYn2A2ihTYNchYzzuB7IkeaLm9W79IPzAVSTi/vrjnhx 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: 1791603363316681365 X-GMAIL-MSGID: 1791603363316681365 Signed-off-by: Yang Xiwen --- 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 (6): dt-bindings: net: hisilicon-femac-mdio: convert to YAML net: mdio: hisi-femac: make clock optional 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 | 43 ++++++++ .../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 | 2 +- 6 files changed, 221 insertions(+), 81 deletions(-) --- base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d change-id: 20240216-net-9a208e17c40f Best regards,