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 30CC37A15A for ; Thu, 31 Oct 2024 06:34:24 +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=1730356466; cv=none; b=BBt0z20Z7KmcLUoefAtSMaLcVN8Uii6YXkv8UBvyhzR1nDyVm6I8k6Z1ByDTB+YM306D0f6Mjb4kxMHd9wMK92pJlwFn/rYoxyxRlPCRc/v2rl03eZTfaVzu88xtenOL+N5FTUY/u11MR5CF9Jk9MVFDHpLotWYUvvUljTB6fAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730356466; c=relaxed/simple; bh=4njA+Q5+6TPi7N+CKHvG07jR/tpZ3Gbh+CxPEC2W7mE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fL8rKpbBkC+D5SBMITCnH4KVGJrG9o9XgEr/PDtkHhww/aJvySJKwrtWWuIrVGqvekfmoa51a6s9ZHad16lbpcdqLzV7Mwk/b2pZSs0KbOW0jjeZXue3Y1sky2eLSJSv+pu36RnbNzaDPjZzjVlUZjnv43fxyJwB8ArkRlhVTDs= 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 1t6Ol2-0004MG-8Z; Thu, 31 Oct 2024 07:34:12 +0100 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 1t6Ol1-001Jgr-0V; Thu, 31 Oct 2024 07:34:11 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1t6Ol1-0069ai-06; Thu, 31 Oct 2024 07:34:11 +0100 Date: Thu, 31 Oct 2024 07:34:11 +0100 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 , Liam Girdwood , Mark Brown , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Kyle Swenson , Dent Project , kernel@pengutronix.de, Maxime Chevallier Subject: Re: [PATCH RFC net-next v2 08/18] net: pse-pd: Add support for reporting events Message-ID: References: <20241030-feature_poe_port_prio-v2-0-9559622ee47a@bootlin.com> <20241030-feature_poe_port_prio-v2-8-9559622ee47a@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=utf-8 Content-Disposition: inline In-Reply-To: <20241030-feature_poe_port_prio-v2-8-9559622ee47a@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-kernel@vger.kernel.org On Wed, Oct 30, 2024 at 05:53:10PM +0100, Kory Maincent wrote: > From: Kory Maincent (Dent Project) > > Add support for devm_pse_irq_helper() to register PSE interrupts. This aims > to report events such as over-current or over-temperature conditions > similarly to how the regulator API handles them but using a specific PSE > ethtool netlink socket. > > Signed-off-by: Kory Maincent > --- > > +/** > + * enum ethtool_c33_pse_events - event list of the C33 PSE controller. > + * @ETHTOOL_C33_PSE_EVENT_OVER_CURRENT: PSE output current is too high. > + * @ETHTOOL_C33_PSE_EVENT_OVER_TEMP: PSE in over temperature state. > + */ > + > +enum ethtool_c33_pse_events { > + ETHTOOL_C33_PSE_EVENT_OVER_CURRENT = 1 << 0, > + ETHTOOL_C33_PSE_EVENT_OVER_TEMP = 1 << 1, > +}; > + > +/* PSE NOTIFY */ > +enum { > + ETHTOOL_A_PSE_NTF_UNSPEC, > + ETHTOOL_A_PSE_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */ > + ETHTOOL_A_C33_PSE_NTF_EVENTS, /* u32 */ > + > + __ETHTOOL_A_PSE_NTF_CNT, > + ETHTOOL_A_PSE_NTF_MAX = (__ETHTOOL_A_PSE_NTF_CNT - 1) This types are not part of IEEE 802.3 - 2022 specification. It will be better to remove C33 prefix. -- 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 |