From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 5D3931E1E04; Sat, 24 May 2025 11:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748084494; cv=none; b=PHfWD8XsSn7hogKJtDbW/YCM987WlB93zu+j/WpoPr5+qOlAw1gq9OwwTppDHsN6zucBnCKJCoKl7iAFyXO8sRgn2+oVqFZ3KkPrACVoM1fVpm4KNfg8L1pEemKYIxam/1HYJ+cKDrjifswEGheQljbeCfSYL+1KWgKHfAZzsfM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748084494; c=relaxed/simple; bh=+E7Zlv1j/WSnUtLC3A+xvHRqK18kNCawdcvOM9lFT/Y=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K3MvCgmpFNwuNmPqWdTf8reEKkYOT/j1k1+vKIW2AWbx/ZCykRxJDxSqAwQNl0np8Xga9ipNmJhPVKGPIkJspl3E46k+Hub+n4TvuNlpFV5RDpqxEjrfkRypa3gZsVgVokvDifzG2IkRppFmOotgWC/ruLKihXKQa3Jxcxee1ls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=PcKLDZvq; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="PcKLDZvq" Received: by mail.gandi.net (Postfix) with ESMTPSA id 661194389B; Sat, 24 May 2025 11:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1748084484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+E7Zlv1j/WSnUtLC3A+xvHRqK18kNCawdcvOM9lFT/Y=; b=PcKLDZvqXSeNChRaI7+sp0EspGkysQUb8JeHEubYT+1+736sTLZE6BpuF/+/qNFBhQQr6Y OdmN42AJbYdGGSYEtDXP8OluSmvaQktyZ3NDxHYyApOW/rcjR5uGHGTP+yYFrJKTss/LwP 2czPW042TPYK796ESfEPUECNzP67NZwBf5qyrgLU1V2WsoqQL68BnUNmk0y1zoxM+dV/EA dVtPiyZVENN8hGr5TJattasNARRghE68JAHYstpIy/LmWWUASx1DHyn3BGR14tnstvpwuM S+ycbjBAErRIrqxbSdklA4BMt4aAE8C+JiajSU3Dny1/57cn7Vt1ZdD5yyJ9kA== Date: Sat, 24 May 2025 13:01:20 +0200 From: Kory Maincent To: Andrew Lunn , Oleksij Rempel , "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 Cc: 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 v12 01/13] net: pse-pd: Introduce attached_phydev to pse control Message-ID: <20250524130120.1fa0f039@kmaincent-XPS-13-7390> In-Reply-To: <20250524-feature_poe_port_prio-v12-1-d65fd61df7a7@bootlin.com> References: <20250524-feature_poe_port_prio-v12-0-d65fd61df7a7@bootlin.com> <20250524-feature_poe_port_prio-v12-1-d65fd61df7a7@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdduudehheculddtuddrgeefvddrtddtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkjghfohfogggtgfesthhqredtredtjeenucfhrhhomhepmfhorhihucforghinhgtvghnthcuoehkohhrhidrmhgrihhntggvnhhtsegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpefguddtfeevtddugeevgfevtdfgvdfhtdeuleetffefffffhffgteekvdefudeiieenucffohhmrghinhepsghoohhtlhhinhdrtghomhenucfkphepvdgrtddumegtsgduleemkeehkeejmeejuddttdemvgeigegsmegtkegrsgemvggvkeemjegvieeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegtsgduleemkeehkeejmeejuddttdemvgeigegsmegtkegrsgemvggvkeemjegvieekpdhhvghlohepkhhmrghinhgtvghnthdqigfrufdqudefqdejfeeltddpmhgrihhlfhhrohhmpehkohhrhidrmhgrihhntggvnhhtsegsohhothhlihhnrdgtohhmpdhnsggprhgtphhtthhopedvjedprhgtphhtthhopegrnhgurhgvfieslhhunhhnrdgthhdprhgtphhtthhopehordhrvghmphgvlhesphgvnhhguhhtrhhonhhigidruggvpdhrt ghpthhtohepuggrvhgvmhesuggrvhgvmhhlohhfthdrnhgvthdprhgtphhtthhopegvughumhgriigvthesghhoohhglhgvrdgtohhmpdhrtghpthhtohepkhhusggrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehprggsvghnihesrhgvughhrghtrdgtohhmpdhrtghpthhtoheptghorhgsvghtsehlfihnrdhnvghtpdhrtghpthhtohepughonhgrlhgurdhhuhhnthgvrhesghhmrghilhdrtghomh X-GND-Sasl: kory.maincent@bootlin.com Le Sat, 24 May 2025 12:56:03 +0200, Kory Maincent a =C3=A9crit : > From: Kory Maincent (Dent Project) >=20 > 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. >=20 > 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. >=20 > Signed-off-by: Kory Maincent Forgot to add: Reviewed-by: Oleksij Rempel --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com