Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2576408lqz; Wed, 3 Apr 2024 02:10:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURiBbNPu3jUxZ2QTtYPIhr2EK4snzVsUsHLwe5POZcxygGU9q9HIvE6t8cXn5mCZE8qzfGaXCWLqITg6TSe5ot3rw18YXnDrsEBT5UwQ== X-Google-Smtp-Source: AGHT+IEh1LPPP9m4tGqQ4eccQHHaXlSkH2xNKArhRetBeRfVpbeLiE6BVGYeC9/vfGHEyQUM/uPV X-Received: by 2002:a92:cd8e:0:b0:368:96a2:f759 with SMTP id r14-20020a92cd8e000000b0036896a2f759mr17803685ilb.13.1712135402502; Wed, 03 Apr 2024 02:10:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712135402; cv=pass; d=google.com; s=arc-20160816; b=cl3zuPNGhUs7cVXgd3/goTnAJOgoKvfur8t8snkDY1oG7Gj+AIk82ENkjwjivQQnLz 4YVnkJKZjISDklIE4nHL/eJ51dX1wPI/UIU1GTX43QR8v7eitD1nBK3/4s98IKdvdl4n XI/8NSgNWpV5btRz6wOWCDGpFcogGSCJ0vsBDRx4E7bq+tuQtgN7E0zp9gIslpSUwGpK WsDEa/T3lXYMlmtvuiSzmlvADrZNAqmyDz6asfOrUUWOIqMETDYhzR9Cq46hw4z9u0uS FLmWdwBr+DIzKoKnAIYPrkIw7epYxP6ziWzyCbM9OmI3rpwBSjKLLGaj0t6CCoESV2E4 Ug+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=5byGfi+YltTK32ZINcsDDBL0Ip9/fC/96w7JVL8ZAeY=; fh=hZYbmLuun4xDJcmBaSZAzou0ZggsdpoUEsS5MXRM0VA=; b=DtgVKMiSOL27iKoH/Zg0KrOGaPRfpbwhs85iMtSRsXeWHD1SjuMtRmJirmnHYbH9nx 6fgO9SiAbE5ogGRf83iTy/U7Rqu3N1UhEfJw/V5AqO0ZVGhqGsYNnLsnxvlRIKl9xE9m qykfPMY/qhRWXT0cPN+6B6AW05wam6C08WJ3/iST0pZ7ScgsrvHt4GZV1qq//oqHJgn9 p92L8b96CkCLyaQ3A98iFy2cFmrv1CIMi4/3Bq90Mxj8DRSFMrcq11i6g/gyUUSAtG0Y hntv5VUiXMtGS9C6u16vaFk/c6sKqMjklmc2kcFn3RxUrWbuwdW6bO5pd2yBJh6GTfew J8Tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=C9VY1w14; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-129344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q76-20020a632a4f000000b005dc95934e54si13081267pgq.52.2024.04.03.02.10.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 02:10:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129344-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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=C9VY1w14; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-129344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 2B699B23475 for ; Wed, 3 Apr 2024 08:34:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9163B6BFD5; Wed, 3 Apr 2024 08:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="C9VY1w14" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 7EC701E515; Wed, 3 Apr 2024 08:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712133277; cv=none; b=uyBpkdxErzGGn0h/iBWTxv3YvoPLRoKwqoARI+kytSVNtjn4D0+WCqvbii0XSzIMUXejMP1fIIzGhzxZMYinnpbr2QC2i6Rh89XzSsCB6tpixEiOSNa5uGTNyaBcoIIAB/x99yFENtZ5DsT0OcyAwMMqbNjAHA9ReJ6/AE0f5jQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712133277; c=relaxed/simple; bh=goTwDlhdbXVyAEvpyvcdhWut4bT0c0eATWtJg/XKHWQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iw/3+IVk+ddixeNjNB5tlKu2j1nm6hYn9eoDr6RL319eCKRBmQoNfK6dosSFD8ti55fqeYoI3O3AKCFUrI8euMT1QD1M8hof58iM8z1lJPGOUGddz4b5J++gML46y2Du1IIjROnkUow8Efzcmi5S7LgPhAcpmwNnPr0Gz0zS2qI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=C9VY1w14; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=5byGfi+YltTK32ZINcsDDBL0Ip9/fC/96w7JVL8ZAeY=; b=C9VY1w14a8zzVC+dEq1nF2CU1A rIwwPRYl/p95f094Bi7cXEOMsEItYe6cHITEKaIfyE3HpJjVQr7fNMyCE5dcdg90j15gmp4iyQJTD ifXJRoHXKdXNr/265/clVoMZSmy4Yk2Yk1F4BaUaRB54Guahe9E4C3QqvlHmX2I2URTNX3A8qcvgy DsPxq2cdla8S2+sm1jXnQtCiOJeQOtm5deMjU5ZoOFUPqeOETAZhEu31dOFNpF4MqBX2obdS6J/wa WT2vG+NoiJDg5J0Wpc6AesDG5+2Cbq+8WPqpBar5CAHqxEXmUvJ+EIjX6ehYoOliFfBCrusVDPWmA M2ef8e3Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51368) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rrw4Z-0007z7-0k; Wed, 03 Apr 2024 09:34:19 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rrw4W-0007mg-3j; Wed, 03 Apr 2024 09:34:16 +0100 Date: Wed, 3 Apr 2024 09:34:16 +0100 From: "Russell King (Oracle)" To: Romain Gantois Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Alexandre Torgue , Jose Abreu , Maxime Coquelin , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next 2/2] net: stmmac: dwmac-socfpga: use pcs_init/pcs_exit Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Tue, Apr 02, 2024 at 04:51:48PM +0100, Russell King (Oracle) wrote: > Use the newly introduced pcs_init() and pcs_exit() operations to > create and destroy the PCS instance at a more appropriate moment during > the driver lifecycle, thereby avoiding publishing a network device to > userspace that has not yet finished its PCS initialisation. > > There are other similar issues with this driver which remain > unaddressed, but these are out of scope for this patch. Just for the record... Digging into the history of this driver, the init-after-publish issue was introduced by commit 3c201b5a84ed ("net: stmmac: socfpga: Remove re-registration of reset controller") which gives information on why calling the PHY configuration before stmmac_dvr_probe() didn't work. This was further modified by 56868deece92 ("stmmac: dwmac-socfpga: add PM ops and resume function"). I haven't decided what can be done about that yet - and I'm tempted to leave it as-is for the time being until more of stmmac gets cleaned up. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!