Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp593509lqo; Fri, 10 May 2024 08:52:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJcXP5NcVPW3YDTkP1YbgeKOq6zbv+EixKNRN0v8ZaONZUkLS/54YUe51aU57F/knSDUCOSF1jMPK71yJvS8cwog5/8ZAX21Ak2DpkMA== X-Google-Smtp-Source: AGHT+IG7I4BrN3ZtSl/NeHO6iscE+cvqaETTFi1wiuXc0rfSRW7lxz84ysbLLTldVqyXc6SYXyTe X-Received: by 2002:a05:6e02:1aad:b0:36c:5239:d1bf with SMTP id e9e14a558f8ab-36cc146501emr36982045ab.13.1715356372329; Fri, 10 May 2024 08:52:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715356372; cv=pass; d=google.com; s=arc-20160816; b=gtrKhkteDfqQKo0su4GeiSZ/HZAPQK9c4u1YPtTQ8XyMEd2Pwzjr3XdbpcmdP4S17X C6ZKdxpsS+PgfHxmlicr+JWEv6QCa9GFgPRxsnxCguJWFPNV73LH3g8HeMhLNhmmxXrs R4CUoarxkDdHbY149qlZr+2oBlhy+4aeFbX8prRnPgnrpjoYQmbqHxWjJ6OANGOklcZL 25Alyuph89I0ETx9nwqG9ZR9MKUVdEnhw+90kOncpevLpopMGn3oTDKUZKCJT7Zt4HGV xhTZnoj7CJvBEkIVg1FldxuQpkRnNpqkxL/Keh0/3lYL2tL3IGRsXOWEMCqEf9/qv5uo cVpg== 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=kgU5xDXwFs4QEjcHU4kuuCpha5X8eRsJv6GJUqZKdTQ=; fh=46QqzeFmAAly9g0bP18QKeaFUSA3kxRSdtplO8hZy48=; b=j2kefIVhLTvOq35I1XlpA/GmrVp2aEs1GFNrErgkWvshqt6CWmNDd7PgZ1S9kJKs9k dlI6FWXbVCemVMWEG1r4qO3e+DssGp5rshOwggzV/HOvjZ7wynp3Bl/+oqNaLBpVUEgf oGtz/PvVygrnKQwy8taJ6RRpfuKz0q983YgWNYcboEy4PA12aLOVs2cNabCSgh0p0hA3 o0/crhUolU9G8mbEq50+0kt4RQCci8+forBqcDBsscqkTVylpdgQy742XQq8URrFUl6D i91pFPopUETSFSNOyqK2mtJSwKr4hHF74vh5ZwcsbwnKir+1mzLuA9W4h19PSYcJlV+6 op5g==; 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=cPmonIHv; 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-175981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175981-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f56afsi1252861a12.374.2024.05.10.08.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 08:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=cPmonIHv; 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-175981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175981-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3293D282CE8 for ; Fri, 10 May 2024 15:52:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91B2617276E; Fri, 10 May 2024 15:52:37 +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="cPmonIHv" 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 B95C017109C; Fri, 10 May 2024 15:52: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=1715356356; cv=none; b=L58/itCy454pAg8Fjc2cWzQkhAgiWxyZ8YNV4/1aVjF6QZd2ZKPHvclGhtkKgSqWxnkN50Y2Tfs5dqCpm7baKsQ5dYHQ0qyZQvJiBnQWswJrhTkBPdayoQcRekDZ0++Nl58CoJk3rnINnZFzSWv+s4Icr4IhIw87oVyU+548iHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715356356; c=relaxed/simple; bh=KbDSJ8sPoqUrtBTRtD44bCSBAhAd8j8GTBlXUJayVTo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SVElIey4VASUxiRGNxSAJPUR6Fj3MSfLFpCmZT1MrJfh0hVT5caitDmvJi2fWOoqN+fo760DkwIn+zo35Aw1PTfTX9NEI7IbZXRHVReo5nSSCCA0KyiXhatwibiNN1Dv5E2eyL4aTMKmFeYpUy/2HjB9hfovdfYwApBRxjVMEbA= 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=cPmonIHv; 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=kgU5xDXwFs4QEjcHU4kuuCpha5X8eRsJv6GJUqZKdTQ=; b=cPmonIHvlTOPUe5pIJgg2HJ/qz eAOZt0HRWk9ANyinjkSfgJ96aPpC8iEoLUnqkZLpC1H3whU5XEbtPFsBxCJpkJ1HbW21YeWHlUGFr eUgFQE2DmtPSFNv2giA0Cx9DVQ4U1RCKFQfOqGr7CNMMs5mxILIOW1NbwizV1Lx0nr7/JRNthmKHV TMTAKiNii1V+8WvX+LyK3lfodxtZC1OgeSh7QfMWGwqWzVzbi/k4sY402xw1XF5g+gNvej+0gcTpE SvcRfQMjHRgEZMb1/TfH7yMYXzM2ZdMVj0ARRaE+artlqr1bUkUq5g7BCmBuaK5wja37qrWhmKEUQ 6c87ObCA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42940) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s5SXW-0007aJ-2n; Fri, 10 May 2024 16:52:07 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1s5SXT-0003Qx-Bi; Fri, 10 May 2024 16:52:03 +0100 Date: Fri, 10 May 2024 16:52:03 +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?= , Serge Semin , 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 v6 2/7] net: stmmac: Add dedicated XPCS cleanup method Message-ID: References: <20240510-rzn1-gmac1-v6-0-b63942be334c@bootlin.com> <20240510-rzn1-gmac1-v6-2-b63942be334c@bootlin.com> 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: <20240510-rzn1-gmac1-v6-2-b63942be334c@bootlin.com> Sender: Russell King (Oracle) On Fri, May 10, 2024 at 09:38:09AM +0200, Romain Gantois wrote: > From: Serge Semin > > Currently the XPCS handler destruction is performed in the > stmmac_mdio_unregister() method. It doesn't look good because the handler > isn't originally created in the corresponding protagonist > stmmac_mdio_unregister(), but in the stmmac_xpcs_setup() function. In > order to have more coherent MDIO and XPCS setup/cleanup procedures, > let's move the DW XPCS destruction to the dedicated stmmac_pcs_clean() > method. > > This method will also be used to cleanup PCS hardware using the > pcs_exit() callback that will be introduced to stmmac in a subsequent > patch. > > Signed-off-by: Serge Semin > Co-developed-by: Romain Gantois Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!