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 BC3CE22D7B4 for ; Tue, 8 Apr 2025 18:13:33 +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=1744136015; cv=none; b=OdWeeHS8XbzBnHlgHGXAB/hzylsoU9xkzFU5NSz8Ie3P51Qvsp4R2rVJwYSK+8ArDBs+/EF9hKcNfK+mvPVhlvj11G14QNU568sxchhP9fWjqJiK5caXDNrF6NFk82Kqqmc1/kJtRtwGQ2/IZ52u6TQ1KBsoNAeS6BQcgDPpqnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744136015; c=relaxed/simple; bh=DWQrOYLBBqRQBm/p0hvDh8MijSajLNnaWRy/not3lMg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z0X8VZyojWT19KBE6na0W+w1IEHyCQ6SuG1Q9VCGgRGHWpmu3pLa8n8hB3i2Z6BNxhvoYq42TA7Q23Sy+xUl1Z2mcdZ04LtYdC58Gcto30KZJTlO5rrBKP6vDeFu71mmaLp7gJgZGQdjRTdzGg8s2XPxaqjWk2wudL4FvJY5y7g= 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 1u2DRj-0007ne-QQ; Tue, 08 Apr 2025 20:13:15 +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 1u2DRj-003ylS-0s; Tue, 08 Apr 2025 20:13:15 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1u2DRj-006eX5-0Q; Tue, 08 Apr 2025 20:13:15 +0200 Date: Tue, 8 Apr 2025 20:13:15 +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 v7 06/13] net: pse-pd: Add helper to report hardware enable status of the PI Message-ID: References: <20250408-feature_poe_port_prio-v7-0-9f5fc9e329cd@bootlin.com> <20250408-feature_poe_port_prio-v7-6-9f5fc9e329cd@bootlin.com> Precedence: bulk X-Mailing-List: netdev@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: <20250408-feature_poe_port_prio-v7-6-9f5fc9e329cd@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: netdev@vger.kernel.org On Tue, Apr 08, 2025 at 04:32:15PM +0200, Kory Maincent wrote: > From: Kory Maincent (Dent Project) > > Refactor code by introducing a helper function to retrieve the hardware > enabled state of the PI, avoiding redundant implementations in the > future. > > Signed-off-by: Kory Maincent (Dent Project) 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 |