Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp529825lqt; Fri, 19 Apr 2024 03:10:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmmgwJcTftSH36PKiLRKJgx/klVNlxnT7kvuOQSJ9d03XdwaVDSLU+LF3H6QBRFC0hlOQOVEylIImr88yksbQXSrMzK15/30/F2dyFbg== X-Google-Smtp-Source: AGHT+IFE4w1m/rVnx+XiSfRTN3+4PpzhWn/g/Z2UXOjNxzDhp2G18A98oBBu0sKuIMXsihim5UE3 X-Received: by 2002:a05:620a:4112:b0:78f:1bd4:6b1a with SMTP id j18-20020a05620a411200b0078f1bd46b1amr1363497qko.24.1713521437105; Fri, 19 Apr 2024 03:10:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713521437; cv=pass; d=google.com; s=arc-20160816; b=g0PVNnfrnAg6HSVq0fVfTCQGWhhYWvpa1RACJCs3vyQnQK+2+AgFQITdYAYL5T/mCc 789TSz95GIe9JJcGKjHSsu5tcpxxsLVkEAZCsurJS+Ft2+Zu3ujdwD0HxajzxyaW4kH3 YZ0kkC97SRqV3jEuyJcsAwnBEjqvJ1LcpJ4dFL5J0VhoUO49kXrIjLQAkJHqp27K/RqQ 5q4dBnWRstaaj9TJIYhC3Pz5sadVuFDl4Ukd5TTXP6NjjIfpwFniOZVMlZDysyz0xsS+ jyHTdV8EgoazvQR5uMCHFuSJTE3yvHmL2nvBUbAIwzpvjrTBiYeWyWlWPVKAMvuRhOGG 1wbw== 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=lPT162fR3Q/ZAcMJji9Gy3iDnxNOHApa5BhewHPya0w=; fh=U0oULSI5toQXwr8Cib1iIAF99txW9ytx8nrc+ZkpqGc=; b=MdDSdHWPvpk0f0zd1Imexl+aUoPbENKbvoAvH+/KlF2v0pUWLNVp6cOCub8lxGSAa2 AiMhie02dsPXUsXwOHPzcdQx5B2DJtevfJdCIzDcNiNo+Kcaf5heTBSQWYljMv47K9Ip ZvRMaJ9tuEUkAiHrquBCYFFftLAWt0GBTPiuxCMBZDv5r6UzUM1VFQwBsP0QVPSYTd+8 NbNyV0VyEvuJM8ZZwZo6/sV1m7bZeKofXu1q7bO0P8yezsevZWgGyGDRSi17EU1NIvvO 585HyGVX1hE+exHO5SGokrZS/cEZCO4j4ZS3uZ5J0aXnLfxw69lRwsedjRERdbQIEadX cK7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HIOa2uVW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vu11-20020a05620a560b00b0078ec5afe879si3387875qkn.499.2024.04.19.03.10.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 03:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HIOa2uVW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151291-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CBD301C21441 for ; Fri, 19 Apr 2024 10:10:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C880680025; Fri, 19 Apr 2024 10:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HIOa2uVW" 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 C7E977D3E3; Fri, 19 Apr 2024 10:09:37 +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=1713521377; cv=none; b=VUdROG70mxMRjVICHdUYqukz852NqdFqpSZ3ZrkyZCNamWxHfxoo4cl64vpMrt9Pp4CvH3LUGS0NTCP7NPT0qK7IL0efpDiU7BOAPP145PDYQxIO5ZcmAjZnsF8C5pWTwulMwmQb1RIwZpZswdgvzh2rvjJVXi1U7yzuiY1RcMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713521377; c=relaxed/simple; bh=hIqlbjO65jZjxYKpeWau84wCqd4vKuYsewjegaEPtAw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rPqLweVAkXBxEb4W53kpJvKtX8qsFWd5OfKTok7KsEeixJb/CATBv7ckkcUvsntq68nGfdS0mtV3TZGBsRPy43uU2vDXHvb5hrq2uc/WRzdesv2T29qFBLtYwM94GBCt7TnhCruzZk1wlJnVQAVJnaHhpsm1UHKJC2CK/w22DaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HIOa2uVW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 56899C072AA; Fri, 19 Apr 2024 10:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713521377; bh=hIqlbjO65jZjxYKpeWau84wCqd4vKuYsewjegaEPtAw=; h=From:Subject:Date:To:Cc:Reply-To:From; b=HIOa2uVW3uIspoEQuRXVy2cZHWLeq1qvOOOQ2kfIa0fnUnSrkOe1tgVZDNGpFRfgy 5eO1xkGuG1eGzAVeXizFsVCDv3Ti3ASsNNlniq/GfsyRluxJQJNm5S0C4X6M7jSyYg zXuOxUwt7V7IDgsFQcj4p0KCHPheacQTGFVgBA6zOWPI8EXIdR4aS79G8uqVIEh81A iAwxtJRnd383YK68tfm1s/pI9dhyoZSXJZR54vDkEXlXQC9g1MOyHdXWSqoAfE+j+P 1svKDTfn/LPa6hDZYNnlSfEL+gjHGEaBH7hQ9QthB5+wIxCfY5lJxrRXTQmpnm4KBn 7tQ1jOyY5gWDA== 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 4B112C04FF6; Fri, 19 Apr 2024 10:09:37 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Subject: [PATCH net-next 00/13] MT7530 DSA Subdriver Improvements Act IV Date: Fri, 19 Apr 2024 13:09:23 +0300 Message-Id: <20240419-for-netnext-mt7530-improvements-4-v1-0-6d852ca79b1d@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIANNCImYC/x2NywqDQAwAf0VyNhD3QWl/pXgoGjWHzUp2EUH89 257nMPMXFDYhAu8uguMDymStcHQdzBtH10ZZW4Mjlwg7wiXbKhclc+KqT6iJ5S0Wz44sdaCAZ8 xeJqHSBNFaJ3deJHz/3hDU/HnwnjfX14TZvh9AAAA To: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King Cc: Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713521374; l=2654; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=hIqlbjO65jZjxYKpeWau84wCqd4vKuYsewjegaEPtAw=; b=iGbg2Xv6D/RpNIc/k3j1XoPdRClUOkq02kgugFhytAdQDrC0bmxdXD7gR+Ink69lISXC1XYSC O1swa4N6PULD3Y43CMD7t5opgf7OEhELDS4iH9UGGRxzf/SVMm+9UKF X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=z49tLn29CyiL4uwBTrqH9HO1Wu3sZIuRp4DaLZvtP9M= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-Xeront with auth_id=137 X-Original-From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= Reply-To: arinc.unal@arinc9.com Hello! This is the forth patch series with the goal of simplifying the MT7530 DSA subdriver and improving support for MT7530, MT7531, and the switch on the MT7988 SoC. I have done a simple ping test to confirm basic communication on all switch ports on MCM and standalone MT7530, and MT7531 switch with this patch series applied. MT7621 Unielec, MCM MT7530: rgmii-only-gmac0-mt7621-unielec-u7621-06-16m.dtb gmac0-and-gmac1-mt7621-unielec-u7621-06-16m.dtb tftpboot 0x80008000 mips-uzImage.bin; tftpboot 0x83000000 mips-rootfs.cpio.uboot; tftpboot 0x83f00000 $dtb; bootm 0x80008000 0x83000000 0x83f00000 MT7622 Bananapi, MT7531: gmac0-and-gmac1-mt7622-bananapi-bpi-r64.dtb tftpboot 0x40000000 arm64-Image; tftpboot 0x45000000 arm64-rootfs.cpio.uboot; tftpboot 0x4a000000 $dtb; booti 0x40000000 0x45000000 0x4a000000 MT7623 Bananapi, standalone MT7530: rgmii-only-gmac0-mt7623n-bananapi-bpi-r2.dtb gmac0-and-gmac1-mt7623n-bananapi-bpi-r2.dtb tftpboot 0x80008000 arm-zImage; tftpboot 0x83000000 arm-rootfs.cpio.uboot; tftpboot 0x83f00000 $dtb; bootz 0x80008000 0x83000000 0x83f00000 This patch series finalises the patch series linked below. https://lore.kernel.org/r/20230522121532.86610-1-arinc.unal@arinc9.com Signed-off-by: Arınç ÜNAL --- Arınç ÜNAL (13): net: dsa: mt7530: disable EEE abilities on failure on MT7531 and MT7988 net: dsa: mt7530: refactor MT7530_PMCR_P() net: dsa: mt7530: rename p5_intf_sel and use only for MT7530 switch net: dsa: mt7530: rename mt753x_bpdu_port_fw enum to mt753x_to_cpu_fw net: dsa: mt7530: refactor MT7530_MFC and MT7531_CFC, add MT7531_QRY_FFP net: dsa: mt7530: refactor MT7530_HWTRAP and MT7530_MHWTRAP net: dsa: mt7530: move MT753X_MTRAP operations for MT7530 net: dsa: mt7530: return mt7530_setup_mdio & mt7531_setup_common on error net: dsa: mt7530: define MAC speed capabilities per switch model net: dsa: mt7530: get rid of function sanity check net: dsa: mt7530: refactor MT7530_PMEEECR_P() net: dsa: mt7530: get rid of mac_port_validate member of mt753x_info net: dsa: mt7530: use priv->ds->num_ports instead of MT7530_NUM_PORTS drivers/net/dsa/mt7530.c | 285 ++++++++++++++++++++++------------------------ drivers/net/dsa/mt7530.h | 289 +++++++++++++++++++++++++---------------------- 2 files changed, 291 insertions(+), 283 deletions(-) --- base-commit: e1bc03d8372ac081810c2956cd244ed9899f9a02 change-id: 20240320-for-netnext-mt7530-improvements-4-95430d150c05 Best regards, -- Arınç ÜNAL