Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1273500lqb; Thu, 30 May 2024 05:58:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYZBMkKDc/TGxpPVu4T7shhl6Nmkc26gex7ZdfubmShJI9V61U7Z1uzvgks6tPCG+j22Pdoj9UBLPExjPUCs+YxbGPjf1FgpyD++1+VQ== X-Google-Smtp-Source: AGHT+IGaUDK1GWfMg1Y75TqTdUxhMFJRrdh10UEdsFy/8tGnybiPD8+5ycf+5I30YN8dJqfClnil X-Received: by 2002:ac2:5de6:0:b0:51e:147d:bd2d with SMTP id 2adb3069b0e04-52b7d43b7c7mr1243562e87.39.1717073923345; Thu, 30 May 2024 05:58:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717073923; cv=pass; d=google.com; s=arc-20160816; b=SVUnVpmSLKkFHTURqrtMbOQC7Y5p6R4XdqLzWsKIunEUXAL2sUW3rHWuuGRaDuzn2c u+MLcRMAk5zGOQeCOH38LbceaRnzCKeIWnH/dIvJwbE1GbrDte/RhfhiWPb0UKvSIL1Q LAl/d+6c89ZKyG6Dfb/ZIN+pS+wa+XENaksPRB9YjfwZsnSOjAsIConWAZXCC6d1LBxs XyStKH3FCm/Qz0JgtrmfikZTIBshSP6DJ+0O8G5eMvlLS8CerJM4NpBEZNG93xkNBfqH KRwRcUNTzpsAw9Rma8XV3b/3GkyiEbBSwLoOUzhWF7tzp1rtyPjqjpz5LX1PFdyluu55 CxlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=fNdDLnGODJuYqniJ7vxj1Vy7TfXGXcLGyL2rV05KoB8=; fh=rKfS+JlF6qnrT9QFJK8WCr093ZjOdR+rDBvx5lmHQTA=; b=032Y95d0dLDL6hWtE+J4SrDTZfMSI+/LAfl0HRzgzjX/VV7mViISMWng1HwIL7O8Zj kfgd5mNG+mpj0EU/4sSoP9PoF+FrWLhK249HcIY78X5DHtRWzNdVibbCnVIBVN41Or0y gZEk5pxJsPzxZaqeLIXfOb9g3fUZERRJrauSr1+HGcY8u9b1leAy8+qYZ/2fBkh4vO/j w6K4oOgCpD5Lw6s7slzOCsT7Qza/LG+9kUCrIPgEGrQ2pQ75ZyFKR1exJ8rxvOdZDkss 4IU/0qlywVO8ARaOGjAt+XWxhucmqkUPAmmgywnBJN7+Fyp4oEkbLFNgWSrTJQoND4Do EYIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=M6DNy06I; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-195396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a66edd4990csi15883966b.656.2024.05.30.05.58.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 05:58:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=M6DNy06I; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-195396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 04D561F2182E for ; Thu, 30 May 2024 12:58:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 196CB17CA0D; Thu, 30 May 2024 12:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="M6DNy06I" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 6F9E217C9E5; Thu, 30 May 2024 12:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717073915; cv=none; b=VR5h7ZPxMsGKapHFEX1h1D3YD0+LH/tM4gpeMBvPqB7qtmahrH40YV1wNzscd/w7CnfVKAw48btW420GFWTOG41PaaX20pM/TxinjwuuQ4EeJgh/dOep5YxCp7fa35h0XPjADfAm4n/KyJ3ZQK2xQEgNLVb983UaERPvJ4tSrNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717073915; c=relaxed/simple; bh=C2iRBYTREzdjDlGihekO6DW47GYkbW034P8nLnt49xU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EsDg1zR23ZiI50uhGzicE225ixVo9ui5mWyaHad5rXRvgObJu64bW+GsKRPVBXqxjqwBI+FmgrdHZeIfxjZTNhOHnsVH8GmonieAX+RqEvrX/NT0FohUeCZ+5Y2fDkIEMsfWWe48Y/XW+XD+z6F3A8565Rw1Vhv9vtxWuGrDURw= 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=M6DNy06I; arc=none smtp.client-ip=217.70.183.195 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id CEF5060006; Thu, 30 May 2024 12:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717073904; 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=fNdDLnGODJuYqniJ7vxj1Vy7TfXGXcLGyL2rV05KoB8=; b=M6DNy06IKXgNAxMYAL78NexpTNF8PxuRBkBNcwUiXrj0pg1Vrd7AENMVLaljvnjsDVFtxz S/xp4H5PdPtzss7LrfMpO2SiTkEBtZi6FtTJNmMR/otKBrocVntMn8pCEJf01Tn+aubpnW vWl4HQ38Qv5TBJ7xfrD3+4dperuV+Vf7D+FyXrSaxG6C/jAJNx/dA2xrddwgDI6U5e2hh9 u4M+fRZR3W3RcRku5Iz88iI/TiVSw+m2Hh/bvN4m69v8jyszfj7tIe2K+jBPf0uBF4XXE/ sH8oefz3ga0jpnGtfJO2P276SVsTvrY6G4AB6AP2g5611GRbGg5TtN6WZr6mUA== Date: Thu, 30 May 2024 14:58:23 +0200 From: Kory Maincent To: Donald Hunter Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Oleksij Rempel , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Dent Project , kernel@pengutronix.de Subject: Re: [PATCH 2/8] net: ethtool: pse-pd: Expand C33 PSE status with class, power and status message Message-ID: <20240530145823.5f6fc44e@kmaincent-XPS-13-7390> In-Reply-To: References: <20240529-feature_poe_power_cap-v1-0-0c4b1d5953b8@bootlin.com> <20240529-feature_poe_power_cap-v1-2-0c4b1d5953b8@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Thu, 30 May 2024 11:32:23 +0100 Donald Hunter wrote: > Kory Maincent writes: >=20 > > From: "Kory Maincent (Dent Project)" > > > > This update expands the status information provided by ethtool for PSE = c33. > > It includes details such as the detected class, current power delivered, > > and a detailed status message. > > =20 > > /** > > diff --git a/include/uapi/linux/ethtool_netlink.h > > b/include/uapi/linux/ethtool_netlink.h index b49b804b9495..c3f288b737e6 > > 100644 --- a/include/uapi/linux/ethtool_netlink.h > > +++ b/include/uapi/linux/ethtool_netlink.h > > @@ -915,6 +915,9 @@ enum { > > ETHTOOL_A_C33_PSE_ADMIN_STATE, /* u32 */ > > ETHTOOL_A_C33_PSE_ADMIN_CONTROL, /* u32 */ > > ETHTOOL_A_C33_PSE_PW_D_STATUS, /* u32 */ > > + ETHTOOL_A_C33_PSE_PW_STATUS_MSG, /* binary */ =20 >=20 > It looks like the type is 'string' ? Yes, you are totally right, thanks! --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com