Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1083022rdb; Wed, 24 Jan 2024 04:33:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAWQ/8jau4SZFfFwLyKOWwebTR4dUsW8IK6D4Htn9YPKq9AatiRBfuXwQQ5q6weZBaZYx/ X-Received: by 2002:a05:620a:3709:b0:783:7891:f84c with SMTP id de9-20020a05620a370900b007837891f84cmr11105858qkb.95.1706099613607; Wed, 24 Jan 2024 04:33:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706099613; cv=pass; d=google.com; s=arc-20160816; b=YiMHbaPMLkZUA6spellz+tujxb36k/B8Cqz2e8lVICWfWg9PwptpRthdraKOCCn2F7 eqIXnT+3O00HUh8u7xBroe8DFWpZTv9exg23Z7Ueae2W5L/qnZL88l51CrLSodyqoAJF CcmICaf7oXTjT64IrWuz+RbYZXhmyBvLT3md1uKyN78QDapQVpvHDN/Cbo6DHetzhq49 c/tHoRJBMQCYUlALp85/QWcqPvFCOwru/PqTKNk+CCO/GSGIUJ+6cQB4ETMEyTm6MSuM +IyvmwfSafVLvVDLIExiCZ39827sHw8bRPdP5A8b06NaIH7u8lYi1F+2i1ViIns7kga1 adXQ== ARC-Message-Signature: i=2; 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=083zo/K/mMmRQGTLNW+9OMwlIIsuCFdRXvDzv5Pyhk4=; fh=+wuPl0jVtcYGOKyQ4dCrYwpLO51Md4SLm1XlQV1l1VE=; b=pFcasnrwAeX/PYhP5WKLUhvU1AZtwmr+3z2n8GRzv4uxyXfYnAaJR3C1uWg7P4mzlL l+uQff9nGg7hdyXVdim4efAYzJJgDUVDOCKqe/BUcR8ipg5VNcjryER/AnH6k7SiF+zW rrXvJqgUWZOoFyUMji4J5dfJyJ4ldAdv7tZml4jLTVjTktX6PWSPUJ3d9ikeCzwW+v4Q +iYvpI8Evp7xUl7wUuEYALxIX9Yp8gE/5oo6UdF3pK0fQgkv16vJ60qeuwjYIIhdBo8z oU1lIzY7H1Q2kW8WN/wRiiADaBae7GAQne+rombrcI2adn6OLkIzAU2n6REiMzvAJeZi nsHQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36984-linux.lists.archive=gmail.com@vger.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 y5-20020a05620a0e0500b00783939be348si9373315qkm.102.2024.01.24.04.33.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:33:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36984-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; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36984-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5DA6D1C21AD1 for ; Wed, 24 Jan 2024 12:33:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 127107763A; Wed, 24 Jan 2024 12:33:26 +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 2D6C376910 for ; Wed, 24 Jan 2024 12:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706099605; cv=none; b=KkGjVXmU/gcfNoauWmNVXpn3qElzKlAC9u2xE3jrJVTTKrY1b7E7W3n77f/dF/JvtpCKVi0TMuh1GZWIi5KzLu7nses/4nSm7Ew+fGvCh05OvQ4SguWiiasxi1z/A4OwAFF0GQDKQYtF/ul+bHgUC+zFAMHj8CaJOacdgFJ8rYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706099605; c=relaxed/simple; bh=ROs5IgYB+xi6Q8VgHMvLAKH4DGo69gM3UD3lu5Nd0rI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=nKYE+D1N0JQ4OhMpS0MZhQ5jPkwDoKIfo7DxzPAQFu5WQgHJbkXp3gE1PMmUe43l4Hjo/uM4AaUx30+9ZnqKW6RKNa5VSMy/C86T43X1koiig+ZapbwB1dYHfonGnr2mZzuozgkueA7I95nSIALPAZ+hgKm4az3PLYnk+v9vuR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 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 1rScRR-0000Hy-6l; Wed, 24 Jan 2024 13:33:17 +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 1rScRP-0023bP-87; Wed, 24 Jan 2024 13:33:15 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rScRP-0035AL-0a; Wed, 24 Jan 2024 13:33:15 +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, =?UTF-8?q?S=C3=B8ren=20Andersen?= Subject: [PATCH net-next v4 0/3] net: dsa: microchip: implement PHY loopback Date: Wed, 24 Jan 2024 13:33:11 +0100 Message-Id: <20240124123314.734815-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 v4: - add Acked-by: Arun Ramadoss to patch 3 - add Reviewed-by: Vladimir Oltean to patch 3 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