Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1072180rdb; Wed, 6 Dec 2023 07:55:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZbQAiiHldZ2444zLFDD46oZ3gfwCnpnNd3aETn1QxFXwXe3Gjnxc8NfdXi/VC9CjoG857 X-Received: by 2002:a05:6a20:244d:b0:18f:97c:4f44 with SMTP id t13-20020a056a20244d00b0018f097c4f44mr828695pzc.80.1701878156978; Wed, 06 Dec 2023 07:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701878156; cv=none; d=google.com; s=arc-20160816; b=0Re9AtFGfQMgjzRMDSKmya9mxyF4kpQ6DrfoXq3W+6XWHveGik0MLbX5YjEXZtqldx BpVjHKXTRLB/c7k0h8jX65QUXoGGJ7A0guK6x1cQPaNL5n2Qi7iL8qKoXwBVDB8YueCP dnNY+i8F+zjL36MOMHw9BaPmNkru8NRrDtMGBBnUXOVHAFXB3nTzfE1x9u3IIwvCIOb0 P5+ygWev9Umc1tJ02yszh0UTN9y4oa+fJxNQMjP8Mxqx5q6xD4C15g5IPD5P4LrH2e0S SsoNqbN7X4tLe1CyIjI6xWZJmWnKraWUw37JFyzhVT/0by+zXDlOOln+fW1AJW3fVib3 RUiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8XnHw0zkSOBlpz4XGhM376bM9YsElJZ5PEUxpw8yacc=; fh=KdnKeFg2bGAhM7OM75H0lrHRDb8gwYUB8MenOEqg0LA=; b=z2QGOqkdq6OtbaeEK25Wqp6934lY8relZfI62cNlfrJNsAEdo1cofSa5twdKCpuihi XE8B0guXn/v4wEjQ11IwL9WoR3tMSIWlQsRgNFfxquPilVbmPiU2z7qn/1xLBL6VYeRw Wd8MW5PKroVYh3bJZeMV5SnK0fJ+aPSkteXGj4ewV61iAD+ESRo+FylbNPtssm5sy0LC IxRz6TBhDpB9KYK8EAeEfVJc0qG0VP5lk1kVL3tHG/4gBJXcm/agaPWPLa5I+jyQkQnT H5GnVkmeKruUwV+c/0Zc3Uuul8ntYPSS/wTRp4ir0SG4SxZlUPBQeKpeQo2mfdxC1Oah jTvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id k10-20020a056a00134a00b006c370186331si143954pfu.218.2023.12.06.07.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:55:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6DEFA807833D; Wed, 6 Dec 2023 07:55:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442552AbjLFPyn (ORCPT + 99 others); Wed, 6 Dec 2023 10:54:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379416AbjLFPym (ORCPT ); Wed, 6 Dec 2023 10:54:42 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B008EDE for ; Wed, 6 Dec 2023 07:54:47 -0800 (PST) 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 1rAuEU-0005eJ-Fi; Wed, 06 Dec 2023 16:54:42 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.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 1rAuES-00DzeT-4b; Wed, 06 Dec 2023 16:54:40 +0100 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1rAuES-005aMs-1i; Wed, 06 Dec 2023 16:54:40 +0100 Date: Wed, 6 Dec 2023 16:54:40 +0100 From: Oleksij Rempel To: Vladimir Oltean Cc: Paolo Abeni , "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Woojung Huh , Arun Ramadoss , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v1 3/3] net: dsa: microchip: Fix PHY loopback configuration for KSZ8794 and KSZ8873 Message-ID: <20231206155440.GA1324895@pengutronix.de> References: <20231121152426.4188456-1-o.rempel@pengutronix.de> <20231121152426.4188456-3-o.rempel@pengutronix.de> <35045f6ef6a5b274063186c065a8215088b94cd5.camel@redhat.com> <20231206085520.GA1293736@pengutronix.de> <20231206151406.75eglqtsrrb4vegf@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231206151406.75eglqtsrrb4vegf@skbuf> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 07:55:12 -0800 (PST) On Wed, Dec 06, 2023 at 05:14:06PM +0200, Vladimir Oltean wrote: > On Wed, Dec 06, 2023 at 09:55:20AM +0100, Oleksij Rempel wrote: > > On Thu, Nov 23, 2023 at 11:52:57AM +0100, Paolo Abeni wrote: > > > Hi, > > > > > > On Tue, 2023-11-21 at 16:24 +0100, Oleksij Rempel wrote: > > > > Correct the PHY loopback bit handling in the ksz8_w_phy_bmcr and > > > > ksz8_r_phy_bmcr functions for KSZ8794 and KSZ8873 variants in the ksz8795 > > > > driver. Previously, the code erroneously used Bit 7 of port register 0xD > > > > for both chip variants, which is actually for LED configuration. This > > > > update ensures the correct registers and bits are used for the PHY > > > > loopback feature: > > > > > > > > - For KSZ8794: Use 0xF / Bit 7. > > > > - For KSZ8873: Use 0xD / Bit 0. > > > > > > > > Signed-off-by: Oleksij Rempel > > > > > > This looks like a bugfix, so possibly worth a Fixes tag? Given the > > > dependency on the previous refactor, I think we can take it via net- > > > next. > > > > > > @Andrew, Florian, Vladimir: do you have any specific preference here? > > > > I do not think any one cares about supporting this switch variant in > > stable :) > > > > Regards, > > Oleksij > > Sorry, this simply fell through the cracks. > > How is PHY loopback even supposed to be triggered? User space flips > NETIF_F_LOOPBACK on the netdev, driver ndo_set_features() catches it and > calls phy_loopback() and this calls into phylib's phydev->drv->set_loopback() > or the generic genphy_loopback()? correct. > I don't see DSA implementing ndo_set_features(), nor offering NETIF_F_LOOPBACK. > The PHY is integrated, so DSA is the only relevant netdev driver. Is > there any other way to test this functionality? yes - net_selftest() > If not, I think it's a case of "tree falling in the woods and nobody > hearing it". Not "stable" material. But it definitely has nothing to do > with not caring about the switch variant. Sorry, my intention is not to criticize anyone. I am not getting feedbacks or bug reports for ksz88xx variants, so it seems like not many people use it in upstream. When I have time slots to work on this driver, I try to use them to do fixes and also clean up the code. Since there is some sort of fog of uncertainty about when I get the next time slot, or even if I get it at all, I am trying to push both fixes and cleanups together. But, you are right, it is not a good reason for not caring about stable :) What is the decision about this patch set? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |