Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp950835lqb; Wed, 29 May 2024 16:14:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqNmNZ1UzewYFSWYa6Gj3nDihTyiQVU+F/BUCFiN3ySR6T5ieOtWu2SEklb8/5YkhJIx7WJL40hL7noexf9dGr2Pw2z5Oa8dzbb+ZnVQ== X-Google-Smtp-Source: AGHT+IE6UfC6QAy8D96eE78Hy4O7id35MWVswyYlY//NRKcjrbU7Ei7udDgh56NIvi+d3URHo3ow X-Received: by 2002:a17:906:f143:b0:a59:be21:3587 with SMTP id a640c23a62f3a-a65f0918c9cmr17383666b.8.1717024470627; Wed, 29 May 2024 16:14:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717024470; cv=pass; d=google.com; s=arc-20160816; b=fIt7/+7mAIMd4dpw/J5KragsCMTybtITyfrxcJrPyBFAZG6l2+Lq+F7wfAOUGSZwZD U9dDyGp2JAECl6GjCE5vdCMp+X0R/EupuRxr1ZXf2IJZ58aFPusWjKNdEO98oYCusaoF tdam5ixBDeU/1O7Tp/MZfFuUuJTLR8QeGec9PMlvPrH8VbcFcP6YgYm6jsyvc5MwyXDi 9w/94mUmI73x89bk6g1uaol7X/gtGNgsi3hbdY9vT8GvteRqdThpmJoTHOTN+SEcrzcL JxKQuePHn/xI3A6A2aTbFuMZCv6c9eqabg7lmQJa7jUnYB/JowRnaHzSPT8r+qlh7UcW 6qQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hVTZvPLU/CqK7pqt4DIZRXqEAzW4xgug/5xCB3GNQoU=; fh=uw96Lt/MrqBsNWrbJHfETGN/UtgfIGozKVlmwZUgN+g=; b=nub6+zozG/mudTXFKv1LTd4LhV2lGmqLj6veTJ1WlHGDJuIT5gLzFGPPZvT7+kEb8x hplM32xb8ZAby1TC/4hkl/v+YVPwuyUbUiA646aeiq/UD/+IUTGujDL0gmD2sQg2fVgJ XOR4skDDVcDyJuwE10FVD+WqPPsrc157EqHbWGslFzxLaqviMLuVputRIWmk8vuZAYTm i55PP3oLmvLwwpwIhdi50GjzlNAIcc0ahDQkjZVcaM4XtU2Jr8qnHWdKYK9BsFiILBjP tfv4BL98yy2V7bdM/4wJyJT+savzQuHx8qC2WDjdJ9iA/xOirX8t+/HGx2uri2GQYkW/ bPEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=diGMsovk; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-194778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c918945si652656366b.243.2024.05.29.16.14.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 16:14:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=diGMsovk; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-194778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 5709B1F23192 for ; Wed, 29 May 2024 23:14:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B8071CB33A; Wed, 29 May 2024 23:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="diGMsovk" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 ED8CE15D5A0; Wed, 29 May 2024 23:14:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717024452; cv=none; b=MDAu7Nar/Rb0HTNB8S5t0TuNHEvrbNPiK85gpu4Gug5387F7+XjRp/psorc1bnGQAGwonccmpRJ7X/zUqC3WdRIZDgpEIP7B+XbQD7eGIb9S+q74zvg5A+WMLTkMOjJZt4/islALem2PHoM6ocBroW+v0QVgPUnkkSDQK2TcJxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717024452; c=relaxed/simple; bh=O66tJp8SsOURZgCfCBnNp3tlo69phkl6Wc+whNYcxn4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PlxZTDxT98Fjn+K0fLFBbUykgWpCGRH29Cq3j4ABqLQIq2U8PMCnz6kNJUZ3evkxxL3zbvtgFFeJV3idi5NMly3ZSpmfBAoPy5T6jRgDDz4HaCVJA97SwIYN+Fe2gT3qnJhTXp02m0LvjaoIhQ+zKMNouoCbyRKTwm4vAZdYW9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=diGMsovk; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=hVTZvPLU/CqK7pqt4DIZRXqEAzW4xgug/5xCB3GNQoU=; b=diGMsovko+dnfmZUS4RwN+/ORC 2TZp3ZxMumDsnauaAOvoGqVAdSgZm618w3ZsajKh2ScEU8LBDqRuCd9e80EEDEkYbyVJAqvNiXiXT ZBcrhhSQntSie3J75Umjjsqe/A1hQ1JgF+qPFEVU2ACSBhHp0HYc/NBkPiEekIF82CbY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sCSUZ-00GIcm-TM; Thu, 30 May 2024 01:13:59 +0200 Date: Thu, 30 May 2024 01:13:59 +0200 From: Andrew Lunn To: Kory Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Oleksij Rempel , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Dent Project , kernel@pengutronix.de Subject: Re: [PATCH 4/8] net: pse-pd: pd692x0: Expand ethtool status message Message-ID: References: <20240529-feature_poe_power_cap-v1-0-0c4b1d5953b8@bootlin.com> <20240529-feature_poe_power_cap-v1-4-0c4b1d5953b8@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=us-ascii Content-Disposition: inline In-Reply-To: <20240529-feature_poe_power_cap-v1-4-0c4b1d5953b8@bootlin.com> > +static const struct pd692x0_status_msg pd692x0_status_msg_list[] = { > + {.id = 0x06, .msg = "Port is off: Main supply voltage is high."}, > + {.id = 0x07, .msg = "Port is off: Main supply voltage is low."}, > + {.id = 0x08, .msg = "Port is off: Disable all ports pin is active."}, > + {.id = 0x0C, .msg = "Port is off: Non-existing port number."}, > + {.id = 0x11, .msg = "Port is yet undefined."}, > + {.id = 0x12, .msg = "Port is off: Internal hardware fault."}, > + {.id = 0x1A, .msg = "Port is off: User setting."}, > + {.id = 0x1B, .msg = "Port is off: Detection is in process."}, > + {.id = 0x1C, .msg = "Port is off: Non-802.3AF/AT powered device."}, > + {.id = 0x1E, .msg = "Port is off: Underload state."}, > + {.id = 0x1F, .msg = "Port is off: Overload state."}, > + {.id = 0x20, .msg = "Port is off: Power budget exceeded."}, > + {.id = 0x21, .msg = "Port is off: Internal hardware routing error."}, > + {.id = 0x22, .msg = "Port is off: Configuration change."}, > + {.id = 0x24, .msg = "Port is off: Voltage injection into the port."}, > + {.id = 0x25, .msg = "Port is off: Improper Capacitor Detection"}, > + {.id = 0x26, .msg = "Port is off: Discharged load."}, I don't know of any other driver returning strings like this. Have you seen any other PSE driver with anything similar? > + {.id = 0x34, .msg = "Port is off: Short condition."}, > + {.id = 0x35, .msg = "Port is off: Over temperature at the port."}, > + {.id = 0x36, .msg = "Port is off: Device is too hot."}, > + {.id = 0x37, .msg = "Unknown device port status."}, > + {.id = 0x3C, .msg = "Power Management-Static."}, > + {.id = 0x3D, .msg = "Power Management-Static\u2014OVL."}, Is there something going on with UTF here? the \u2014 ? Andrew