Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7223593rwd; Tue, 6 Jun 2023 07:56:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5KDNPsXZkTtMgxI5jHzX147ZlX5lbw/d/lRBRGL5qaI9rA4HzRG7Km9jBJwm3tYE/AA9cc X-Received: by 2002:ad4:5bea:0:b0:62b:586c:b2b0 with SMTP id k10-20020ad45bea000000b0062b586cb2b0mr2162584qvc.59.1686063374437; Tue, 06 Jun 2023 07:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686063374; cv=none; d=google.com; s=arc-20160816; b=BNofo6BvtFhVhUgzvN72/T5pDzq8lE9GsIZ7aEdFlTQdQf7yP4AOb2/EP74b4rRCh0 zaCUUVGt67/T0PASJq98u87p7dAdOV39z7mLj4WH82QSgQDvNEAVEDEmQ3trdxbvVwwe Y4uOMYkKNGgoDeEuPVLrSFbbueo7Vufv5EZIE7tTbHpK7m/xU+IHk2HpZ3YWsRdHeTmd 0i19hILSF+sH4BRf9DEY3cnWnBR1e1SCsr0AYrhqXDRCDIZio8JDU+jI/zg2dh7C8Evw YFqPMtPP5Anp9RigPOp+ruMjorLEQk7oKcxRDkO79cS8crylHwbuTAchszi4xxsI6IUB kvxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+6wSVTqC9hZ5yHI/YY+rD+TrYLWp05DjiD+d7o8/gMY=; b=JVFdrF84tvJXa69n08ouoFWu9uEOI1gwUGXOuLxopYKB30TuLEZAg9chkNqwj3vYl4 p/L9wbyeg/5frx+6bUl0iE5MVfIpHQMco7yd+t2aC3wuwH5JoC6rw35L6o+AMmloRRz3 sobUJ/5IKEHXd3tovIiuGbxzTou8ATMPh83rvmarhfpViuX1NjKFqJdfdBkfEKMsw1Nv uT50psnd/nZS8QX/RRBp2zLG8iQnFjJQJKtwdX5A1N4EQZcsByfvzU38TRGvswByVZXU Rua2cBfLHU5kvtuE1+ZzakgCUhtwmB+AIizZ635rLNK0wGR9k1p0RNy7VvBGO2PwuuQD gRRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=yc5efNVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gc11-20020a056214230b00b0062611799c7asi6314876qvb.474.2023.06.06.07.55.56; Tue, 06 Jun 2023 07:56:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=yc5efNVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236710AbjFFOdS (ORCPT + 99 others); Tue, 6 Jun 2023 10:33:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238038AbjFFOdK (ORCPT ); Tue, 6 Jun 2023 10:33:10 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA964E6C; Tue, 6 Jun 2023 07:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+6wSVTqC9hZ5yHI/YY+rD+TrYLWp05DjiD+d7o8/gMY=; b=yc5efNVbf19ymsAUUBaBnelebW JyPWfx8REfOqdg5mC0LbkgJmSxIHCLoHZnt1fwAd9Fb5fhMIGrRHRZGK7fy3cJf+WE/4st62wQM5+ MOqXIOAFOBxT38GvyJnHWLcDmysjFpSEIAyjGe6F8rMIWrlnXnjUn3lVmLnvaoJ9sISul+HRAvj5j /EXmlgr4td587HKgTQSC5TzgBkjUYp6hQx9Be3A/FhskmJuqzh0lH+r38Q8PX4/x+6ZhjZQuOmIix 3Lp2CsuH/l5Plxbdh2M5eVjziM82JUbkWg/dif1UHsooLS370KkCj/ULsxrD+gEltO5MmN0TtMOXe KumfUCXg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53228) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Xk2-0005rf-Rf; Tue, 06 Jun 2023 15:32:58 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q6Xjx-0007Dl-Vz; Tue, 06 Jun 2023 15:32:54 +0100 Date: Tue, 6 Jun 2023 15:32:53 +0100 From: "Russell King (Oracle)" To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , Ioana Ciornei , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Jose Abreu , Alexandre Torgue , Giuseppe Cavallaro , Simon Horman Subject: Re: [PATCH net-next v2 0/3] Followup fixes for the dwmac and altera lynx conversion Message-ID: References: <20230606142144.308675-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606142144.308675-1-maxime.chevallier@bootlin.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 06, 2023 at 04:21:41PM +0200, Maxime Chevallier wrote: > Following the TSE PCS removal and port of altera_tse and dwmac_socfpga, > this series fixes some issues that slipped through the cracks. > > Patch 1 fixes an unitialized struct in altera_tse > > Patch 2 uses the correct Kconfig option for altera_tse > > Patch 3 makes the Lynx PCS specific to dwmac_socfpga. This patch was > originally written by Russell, my modifications just moves the > #include around, to use it only in dwmac_socfpga. Hi Maxime, I'm sorry, but I think you need an extra patch added to this series. Looking at include/linux/mdio/mdio-regmap.h, that defines: struct mdio_regmap_config { struct device *parent; struct regmap *regmap; char name[MII_BUS_ID_SIZE]; u8 valid_addr; bool autoscan; }; In dwmac-socfpga.c, you have: struct mdio_regmap_config mrc; mrc.regmap = pcs_regmap; mrc.parent = &pdev->dev; mrc.valid_addr = 0x0; snprintf(mrc.name, MII_BUS_ID_SIZE, "%s-pcs-mii", ndev->name); So that's a tick for parent, tick for regmap, tick for name, tick for valid_addr, but... autoscan is left uninitialised. devm_mdio_regmap_register() reads this, and uses it to decide how to set mii->phy_mask, which will be randomly ~0 or ~BIT(0) depending on the value of mrc.autoscan. Other than that, the series looks good. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!