From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 CAEB9221723 for ; Thu, 22 May 2025 06:43:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747896225; cv=none; b=nKjuhpCl/ghQpf4hiSPQ6QPM4NncCRRpwwMcvFkQ9+0j4C9j6TvfF30ZuswRF4X74a19r+mrODqCEpOgxCUueym6n65Og6pX5W2TDbqkjbsfjg6EOpS2sR63L9sHiO7pO9yjTAtLMOLrklhMjaELsKITTcBhO+OegTk5toONv4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747896225; c=relaxed/simple; bh=dxDP5IQt5rtpMdaHBgCk/Tk6qBhSaHaiq5AmRp9SC68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lvFBnr7W/38cq9ZjsWfMGQ7hOhDb7HEaJGRTzpBtYLuZ+VnjV76fXtbVHZfzygWjWYxBo5lmYG/FQ96hWQPCwlwqjG2AdtTs5CzbfYmzC2gJDrHxiJohQ/fA1wPtf/swHGGBayoPyhwXVWzAnN/hwcsDY/XywquGFdgQs6ihH0A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de 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 1uHzeA-0006k1-53; Thu, 22 May 2025 08:43:18 +0200 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uHze7-000gpo-02; Thu, 22 May 2025 08:43:15 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uHze6-002gka-2f; Thu, 22 May 2025 08:43:14 +0200 Date: Thu, 22 May 2025 08:43:14 +0200 From: Oleksij Rempel To: Kory Maincent Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Donald Hunter , Rob Herring , Andrew Lunn , Simon Horman , Heiner Kallweit , Russell King , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Thomas Petazzoni , netdev@vger.kernel.org, linux-doc@vger.kernel.org, Kyle Swenson , Dent Project , kernel@pengutronix.de, Maxime Chevallier , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v11 01/13] net: pse-pd: Introduce attached_phydev to pse control Message-ID: References: <20250520-feature_poe_port_prio-v11-0-bbaf447e1b28@bootlin.com> <20250520-feature_poe_port_prio-v11-1-bbaf447e1b28@bootlin.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20250520-feature_poe_port_prio-v11-1-bbaf447e1b28@bootlin.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain 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-doc@vger.kernel.org On Tue, May 20, 2025 at 06:11:03PM +0200, Kory Maincent wrote: > From: Kory Maincent (Dent Project) > > In preparation for reporting PSE events via ethtool notifications, > introduce an attached_phydev field in the pse_control structure. > This field stores the phy_device associated with the PSE PI, > ensuring that notifications are sent to the correct network > interface. > > The attached_phydev pointer is directly tied to the PHY lifecycle. It > is set when the PHY is registered and cleared when the PHY is removed. > There is no need to use a refcount, as doing so could interfere with > the PHY removal process. > > Signed-off-by: Kory Maincent Reviewed-by: Oleksij Rempel Thank you! -- 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 |