From patchwork Mon Aug 26 21:43:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristram.Ha@microchip.com X-Patchwork-Id: 13778520 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2041.outbound.protection.outlook.com [40.107.220.41]) (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 9419C7F7FC; Mon, 26 Aug 2024 21:43:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724708589; cv=fail; b=uFIPZ25G/heDRheMaKgkYD1KCOROu2EUDje3NQKfk3y0RG33Y/d9SE3KoYKi+1XzslGuaNa87fsyHTo0kmKKiCE+9A3Yze3YN7Ii+qZfOxwA/4EgkoAxaXGeRXj0GAk31GUG9bomiF/EVc5kZHiuWj3loUS7u0fcrQJVtP/GOsA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724708589; c=relaxed/simple; bh=jlGN3eqf2abyFDSDg2YrYBBLZ7sODfHqwdDUfCHaeKE=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=DmU+AGzHh+Kz/gGX5i7xuU5WgTNFjS5OEwrV5N2PRBjLVcdK5OvNyZnPp4yC/8H99cRSX/dwNby9AZs/5fGTDwbCVxcBRb26rmmP3Vt80sLeaE+u815WoyZ9G/tuRhqi3CaN/l4TcZoPenoEoG7JJRn27O2jdntjwGCvs/OgT5s= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=32n9QfQN; arc=fail smtp.client-ip=40.107.220.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="32n9QfQN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=abWzAWf5YQMV9mnAAMu9zbUzwExMdzU0qkFJ58Op8pwivxyhMgv9WXbdwI+B+Vaqi1U3ooeT5Xegw3A+QG5eKuFdXvYE68MLU3ob6i13+KCGsv9u0/CEOQZXVzJGE37CR/2d859DWrOH5G/ohhesHk0YLo04tVNsg8EsTu2vMQ1rzSUqCy6JHYe5o7TiZYw6tKfqBjiWj/bMc8FyucdqsM9WBL0tP/TsiO8b2iWhpIE1jGBrVi+CNuVY84I/whk03BsKItM0OvOn/fKEiVF7UC41gWswWVWOEVoO6gT8vkHeRHNoXxNAJdzq3+ZlB1u4h10zhTu9FmaVeV3044eb6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Fs8usUBk3xlrhpF0Qt3W4BydqKs610ikyIUzz5rM06s=; b=IeiOMKvF/UenTlL3Dk+NtYC4Nm9FyEz2zzjMSXbMeIvucrPle7UUnPTu7W/be1yZ2M5UxadiRFu9ioz8fwyhhFaVO4VBdplI5BEi8npLZ8S5jKXq0xE2cX6km80ncxX36+FLHQ0NWInm3PvE9L8ZbImIZ4r5lTJQF7/pL+pfpOxtNlaGsSfFdM42LmAYStPOhdWA1erxB/8LqiBfzLgJzxbjy81/heCRVcr70zGcDjkElwYWpgwUlqR1J3R8St1Q2bKyPc5PXwKBiKdB9JEt73wG75oVrmVCyIm8YjAFCpuMFme2rBCpMfXOJDYIhYfthdj30c5Q7UIXBn4VUTN9Og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchip.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fs8usUBk3xlrhpF0Qt3W4BydqKs610ikyIUzz5rM06s=; b=32n9QfQNNPXF++UWygPMcn9CPxHRNq2OKvZlw4PozVvEYi0ER+rh7dkNPvgDn49YVTu1nksbV1gZBu4d7m/eahmK0YZ5GKfL9DIQfNvMIn4eppy9e2wZhrCbkxiwNRiNV5p4Qq3vB6z638HxuNMf/sE0kMw7RS5QwFDexNYiTkRDcYXCgffabFpv6HFmfrsIbfJ5wu7Fuo1lcJ1WwLpgFtvkidkYB45piC9YhMRAWGk1wgPYw1t91wwrBH2JIvIOYDjzgWErmJFhqjXygCeSW1HGxaY4VTcjn1Zu2+UtT28L+n5uAg7gpiZh2pwX8Jr9ydXN8luuHZHRHwHxsboT/A== Received: from BYAPR11MB3558.namprd11.prod.outlook.com (2603:10b6:a03:b3::11) by PH7PR11MB7449.namprd11.prod.outlook.com (2603:10b6:510:27a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19; Mon, 26 Aug 2024 21:43:02 +0000 Received: from BYAPR11MB3558.namprd11.prod.outlook.com ([fe80::c03a:b12:f801:d3f6]) by BYAPR11MB3558.namprd11.prod.outlook.com ([fe80::c03a:b12:f801:d3f6%7]) with mapi id 15.20.7897.021; Mon, 26 Aug 2024 21:43:02 +0000 From: To: , , , , , CC: , , , , , , , , , , , Subject: [PATCH net-next v6 0/2] net: dsa: microchip: Add KSZ8895/KSZ8864 switch support Thread-Topic: [PATCH net-next v6 0/2] net: dsa: microchip: Add KSZ8895/KSZ8864 switch support Thread-Index: AQHa+ABy9CsPos4bfEa9QpAdSmGNyg== Date: Mon, 26 Aug 2024 21:43:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR11MB3558:EE_|PH7PR11MB7449:EE_ x-ms-office365-filtering-correlation-id: cad1fdb4-023c-4e09-5207-08dcc6180fd5 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3558.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?NEWLfExjKo+lHA1aK4+8c5yZit?= =?iso-8859-1?q?DLuKlZolVzwSrpVEc9mga56BOKdvhtoznAPtO4wNtoVFxRqWc0j8v+E99zlH?= =?iso-8859-1?q?AHfAV9G8EUfVvId3tv35El84wINqIw9O9u2EoAT7//cwPs5OhD5cAwQp314z?= =?iso-8859-1?q?dNhkJ/DmfKUkN6l6KIZ6CvHYxWSpjAJtbYKDD75ZXNrkLto1bx5j/h6x2eb0?= =?iso-8859-1?q?qDx2gqwCaQIrSEUmWpv4p6Oi0pMhrWymooVGMtGITVnHVe/p1IbDPmJzsYbT?= =?iso-8859-1?q?KFqZRyLyt62JIh8Qxm+J+cquxAe5Fdw7NxU7xKaMnVLzSeq/K/PgbxAh7pIA?= =?iso-8859-1?q?faWPwcvNdkY/NLcwNK1f68hvR3e2x3B/SdfDqxrb37+uSCE/F/U063kqTZug?= =?iso-8859-1?q?IeOeCGL1XPAknykzdLk7X8ciA9oNuDq+62xNYjH+BAFLtCbUB8VpI3GMAyKm?= =?iso-8859-1?q?yVjqK52akUcvQe+NshR7zgHt6obywfyVLFngUrD/gYJyAMf3+RbIgEWyRFfC?= =?iso-8859-1?q?3l6J4eY8JsS25BioXaAy31i6uVeMuYWIMBS71nSruInXgy4WkKnyOZz2s/IW?= =?iso-8859-1?q?vX2870RvT7Ax+vZs9VNG9ZhIPcWue52K/CYAS1SguPXjqx1HRmwjQAxm2wvi?= =?iso-8859-1?q?LPNPviJFEvWHmDWddAA+QcEpv0oKWAtZ2X+aS9mWzxlu+UuRy09EO5STpwa5?= =?iso-8859-1?q?G4qCdLW17m5rabZTVl6PNCzPzSlQwLqln2UoRoxqFvTGgFEJXFRAHCeaJFJr?= =?iso-8859-1?q?0oMA/HuWWOfCv8IpM1sKsD/kBKKouqK/L+yOCX+iWV7iOo716GJaKiK4repk?= =?iso-8859-1?q?vNabaobo/PJ/rY/8sZzlgF38E5Zgt3UDzmiOsmEzbc1jjVwt5VHzlFXDwxnX?= =?iso-8859-1?q?1cvBsTXdbXJY0AcM2D9V571g2GW2Or1XZeGYR4Ht7Z1SpIlGYp067epuOfRD?= =?iso-8859-1?q?8Fykd0sQ5FPlXJ55jvwPNPGIt7bztS2/BnEnVJbzFGqXVjq5iMYbDseLW2Gc?= =?iso-8859-1?q?eltqAp9ewKvfh/Jex44QALVyqEITprELGuBos+rAiy++z1asziPEVS6IVW81?= =?iso-8859-1?q?p5r6D5EKs0l18bg3P7tNPt4N37rMrLpRui4lykRmJjXyNpnit1MXpbqIaTUJ?= =?iso-8859-1?q?lyZfvqGLDcCDnXzN4Y08uFVVgL6qKj55j24mm4j2hr1Km1tfY0F6MomNXuRj?= =?iso-8859-1?q?9t1WB80jwnLQVJ5isYHcuGnLfZPautSL1BasurchfWC4piygl9/3WRo9WwHE?= =?iso-8859-1?q?lRMn5906bp9ozMx9lF8Zu0HAjYqKo5uuprDqBvMxNSFvMdFvPMNmVNNh+Y/h?= =?iso-8859-1?q?HTgmMqjvzARPWbSkGJ2SuNBh1pbGg0b8iXNbmROQh662XWsh32GWYxuq+UnD?= =?iso-8859-1?q?iEmJ9PgkI85RLjyHWFbhVTb5yzxbRswKD6jqSK03fibonTYjP4mTwolIy21V?= =?iso-8859-1?q?4J3FjUejCtpB3DK6fi8tLnUw=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?5632AH2vzdCtRM+9mf7qL/h?= =?iso-8859-1?q?jX2YMqwLB3WK8gm1KXQ5VPu/eLuwV6AN8VR6HTeevJ/6tKTNyx+fXIrp0j6R?= =?iso-8859-1?q?JwML5p6pal13BWgwbYiiwO3+nPlR/q0rP8HQULh3ID7K6pBVKM6YpkP6IkSR?= =?iso-8859-1?q?3JSfVJeHpY7OwOhw504ICfNsDUtk6cC+bJsQXSvPwUXuDFlOslJAGI3Bk3wf?= =?iso-8859-1?q?l/8bl+JBrUGjVoz0doCWhXeZqLCUgiZIdgKJNDuOdfqleTuf1pSK8hVZrDgA?= =?iso-8859-1?q?pjbNd11T3SwX8BtRGFH5wBlQiNuqOCrVgnR1DA+MuG22mrVg9Xv8j5ZEh1aO?= =?iso-8859-1?q?RzMH5eUdjPr6cQGUzCHoXA6PN5Y7WSzw318+z8WX9F/IzScE2lpQbCFIyuAp?= =?iso-8859-1?q?pzLMQnrW5/4M0u6WKVXxFDqJw/WZ50NVVUqZbIi65uv7gTLCmTj8RvR7HDmX?= =?iso-8859-1?q?BItgqkXggC22gvciQpp6zYY3Pw8aqyhEwkeNsHpMJ86uw1yicIUFTrLh7j0T?= =?iso-8859-1?q?o1xhWmP+cixZi7T0fSZx85sa1b9m7ZSv1w+Y0aSs37ZRlkrHDfCCMXNrDNH9?= =?iso-8859-1?q?sKq7zGUlGCtad4SA4L2VXj7m257vmn/l/jdDce9ZC9QGyvuSCbCzEon/Ae3V?= =?iso-8859-1?q?JZ5Zj1QSJa9GpJA6RTVYmT3P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F1n?= =?iso-8859-1?q?yNmvtSd/A5xkw4UMjxaQKtPKSvDIY76ZOfquUrjFw5M0Ee6FCGG4UYDDYLxd?= =?iso-8859-1?q?FvQlIP6MV1kCEixkAaLVf9hazOxRWD8wHrHB/vdEKmJVq4CujAtlI6vzJTL9?= =?iso-8859-1?q?zAdbo9u0otSzzwCUhn1cj?= Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: microchip.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3558.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cad1fdb4-023c-4e09-5207-08dcc6180fd5 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2024 21:43:02.6626 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: K/AGtY0ZQLz0C6okdVmxi5C7HRoWSfTp9JeHh0SnU7UQCr93ihMi0zaui0q8CWsbcuQX69TB/ybYmsIScJ5j57SW4RbvNuORphVsLOFsFPQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7449 X-Patchwork-Delegate: kuba@kernel.org From: Tristram Ha This series of patches is to add KSZ8895/KSZ8864 switch support to the KSZ DSA driver. v6 - Add reviews of Pieter and Oleksij v5 - Update with Pieter's suggestion - Rebase with updated commit v4 - Update with Paolo's suggestion - Sort KSZ8864 and KSZ8895 behind KSZ8863 v3 - Correct microchip,ksz.yaml to pass yamllint check v2 - Add maintainers for devicetree Tristram Ha (2): dt-bindings: net: dsa: microchip: Add KSZ8895/KSZ8864 switch support net: dsa: microchip: Add KSZ8895/KSZ8864 switch support .../bindings/net/dsa/microchip,ksz.yaml | 2 + drivers/net/dsa/microchip/ksz8795.c | 16 ++- drivers/net/dsa/microchip/ksz_common.c | 134 +++++++++++++++++- drivers/net/dsa/microchip/ksz_common.h | 25 +++- drivers/net/dsa/microchip/ksz_dcb.c | 2 +- drivers/net/dsa/microchip/ksz_spi.c | 15 +- include/linux/platform_data/microchip-ksz.h | 2 + 7 files changed, 180 insertions(+), 16 deletions(-)