Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2314753rdd; Fri, 12 Jan 2024 06:07:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpWKLXyBcDEwzaWFkK+JhIhHg1w6z0ybQaCeda/Dpsp63VLmZHDmaFqDtv4D8MQ5OmipRg X-Received: by 2002:a17:902:d588:b0:1d5:30fd:26b6 with SMTP id k8-20020a170902d58800b001d530fd26b6mr1122009plh.66.1705068469133; Fri, 12 Jan 2024 06:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705068469; cv=none; d=google.com; s=arc-20160816; b=y5DDL4fRK5C937vYTG0RjmoYvOHkyY6+OLjYG9IKCDwnuixV9MaXsnHGrn4971xng9 oIPNehCyv8EMqbnmUWe4QlFzh/bK30YEz53J/KBrREhBSn+sSLZNPSipngFmU4KGekWq ScwTuP6Dy445r+QxJtH1no/55Jyc9LkHLoqyeB3hTGSF6rWUgW+vzmHI3yijdkfe+1c7 G6cecF4GOSEReDlRmkcOIy+2ByFJcsqS3o7HcsUzuNg4V2r1VjlpqMWmeLHylZdJTLQM oVqMrL6h1V1cEcRF2/6DOQ1wJBklfHyVFp24QwdcmrAUWQcxprIHIWoZpSp59LPIsJkE sXTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=cTFyMJgcOzky+m73Tvl2rEju0wfmzohUPsm77++6PXs=; fh=M1qfrahb/qW7n6G/0kHpmUybK+Ky3Jq5+sps382+aZ4=; b=frvamHYCpptt/XzUA6l4SiNnt1KAedLl4M/uWLAcdIP/0VYVVsc808Y4Om4csBw6l/ KOcyFJV18fKH6RU6s76x7ECQnHsz+6IVqaJCagLLHWFFzK8SWo2cvBSKg86LHB6fp2ub RqjnbBpXYHAgHIeX0rDLV0Dx2jCSIfFwAI6bGOU7QOnPu8dYohx9sEZ+NIWI0OBNsSLs t7H5lDpgiXQEvXoKgSjO6vaN1wlsTCuDWmW94BD9+8sJNLWrQ8myOSFQetdIn+5205pW Odtq/nCyMXB/N7C/4cZjmkF9WXwL/tQbTGgQQ/lGhtt9d52JnUQpM/7+1PXKJG6KLNJy ftkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24724-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lo11-20020a170903434b00b001d54c505877si3197455plb.339.2024.01.12.06.07.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 06:07:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24724-linux.lists.archive=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; spf=pass (google.com: domain of linux-kernel+bounces-24724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24724-linux.lists.archive=gmail.com@vger.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 4CF57B21517 for ; Fri, 12 Jan 2024 14:07:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449896D1CE; Fri, 12 Jan 2024 14:07:36 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 591426BB3E for ; Fri, 12 Jan 2024 14:07:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rOIBr-0000z6-A2; Fri, 12 Jan 2024 15:07:19 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rOIBp-002AeU-U1; Fri, 12 Jan 2024 15:07:17 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rOIBp-00BOTg-2k; Fri, 12 Jan 2024 15:07:17 +0100 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [RFC net-next v3 0/3] net: dsa: microchip: implement PHY loopback Date: Fri, 12 Jan 2024 15:07:13 +0100 Message-Id: <20240112140716.2715664-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org changes v3: - add Acked-by: Arun Ramadoss to first 2 patches - move ksz879x specific loopback handling to separate functions changes v2: - add Reviewed-by: Vladimir Oltean to first 2 patches - make sure reverse x-mas tree is present in all patches - add new lines between if statements - reword commit message of the 3. patch Oleksij Rempel (3): net: dsa: microchip: ksz8: move BMCR specific code to separate function net: dsa: microchip: Remove redundant optimization in ksz8_w_phy_bmcr net: dsa: microchip: implement PHY loopback configuration for KSZ8794 and KSZ8873 drivers/net/dsa/microchip/ksz8795.c | 400 ++++++++++++++++-------- drivers/net/dsa/microchip/ksz8795_reg.h | 1 + 2 files changed, 270 insertions(+), 131 deletions(-) -- 2.39.2