Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2576C6FD1D for ; Fri, 17 Mar 2023 13:22:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbjCQNWM (ORCPT ); Fri, 17 Mar 2023 09:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbjCQNWJ (ORCPT ); Fri, 17 Mar 2023 09:22:09 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D552F4ECDD for ; Fri, 17 Mar 2023 06:22:06 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pdA1i-0004H6-9G; Fri, 17 Mar 2023 14:21:46 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pdA1c-0007xo-KL; Fri, 17 Mar 2023 14:21:40 +0100 Date: Fri, 17 Mar 2023 14:21:40 +0100 From: Oleksij Rempel To: Vladimir Oltean Cc: netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Woojung Huh , UNGLinuxDriver@microchip.com, Arun Ramadoss , Russell King , Marek Vasut , Oleksij Rempel , Michael Grzeschik , Ben Hutchings , linux-kernel@vger.kernel.org Subject: Re: [RFC/RFT PATCH net-next 2/4] net: dsa: microchip: partial conversion to regfields API for KSZ8795 (WIP) Message-ID: <20230317132140.GB15269@pengutronix.de> References: <20230316161250.3286055-1-vladimir.oltean@nxp.com> <20230316161250.3286055-3-vladimir.oltean@nxp.com> <20230317094629.nryf6qkuxp4nisul@skbuf> <20230317114646.GA15269@pengutronix.de> <20230317125022.ujbnwf2k5uvhyx53@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230317125022.ujbnwf2k5uvhyx53@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: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 17, 2023 at 02:50:22PM +0200, Vladimir Oltean wrote: > On Fri, Mar 17, 2023 at 12:46:46PM +0100, Oleksij Rempel wrote: > > There reason is that ksz8795_regfields[] is assigned only to KSZ8795. > > KSZ8794, KSZ8765 and KSZ8830 (KSZ8863/KSZ8873) do not have needed regfields. > > > > Please note, ksz8795_regfields[] is not compatible with KSZ8830 (KSZ8863/KSZ8873) > > series. > > Right... well, it's kind of in the title and in the commit description: > > | !! WARNING !! I only attempted to add a ksz_reg_fields structure for > | KSZ8795. The other switch families will currently crash! > > If the only device you can test on is KSZ8873, that isn't going to help > me very much at the moment, because it doesn't have an xMII port, but > rather, either MII or RMII depending on part number. AFAIU, ksz_is_ksz88x3() > returns true for your device, and this means that neither phylink_mac_link_up() > nor phylink_mac_config() do nothing for your device. Also, above all, > ksz8863_regs[] does not have either P_XMII_CTRL_0 nor P_XMII_CTRL_1 > defined, which are some of the registers I had converted to reg_fields, > in order to see whether it's possible to access a global register via a > port regfield call. > > I'm going to let this patch set simmer for a few more days. If no one > volunteers to test on a KSZ8795, IMO the exercise is slightly pointless, > as that's where the problems were, and more and more blind reasoning > about what could be a problem isn't going to get us very far. I'd rather > not spend more time on this problem at this stage. I've copied some more > people who contributed patches to this switch family in the past few > years, in the hope that maybe someone can help. > > For context, the cover letter is here: > https://patchwork.kernel.org/project/netdevbpf/cover/20230316161250.3286055-1-vladimir.oltean@nxp.com/ If you'll give up, may be i'll be able to take it over. Thanks! 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 |