Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp440116lqh; Thu, 28 Mar 2024 06:45:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBl/fqMufTEdI7D+tqi7dwGfRoQWrSMWwqgmszOC7zib8gC2qrE4FaPfO29m2SqI/oLRaL9QY83UuuWVmp3mjfl26vpKxrcAOGnVTG3w== X-Google-Smtp-Source: AGHT+IGBR/WNDKDi89VrNCmVgo2lhUWR2ukp7iBVRn0fQ4lnEfV2rF1/gtccnKy4lL5OqwqUSBA9 X-Received: by 2002:a05:6a00:1302:b0:6ea:c43c:a650 with SMTP id j2-20020a056a00130200b006eac43ca650mr3021698pfu.32.1711633501113; Thu, 28 Mar 2024 06:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711633501; cv=pass; d=google.com; s=arc-20160816; b=P1nfctpRA53rE7N7hv9Cs+1BwUKnrQFZ/tBdbnshPEXKVu8Q8TyduVyJhFxakYf++8 TNytVm777XaKf3LjKM3HYi4OXMbhATa+4T0lCmZetV/AwA682JDgmVwhTGMlaL5Nkh0A nvnbPbCtVXtsAtQFkU8DWeBYacmXrLmIVPomRD8d+bu6HNdtylNs86LghAjL9wXrMQUn gdWOp9VmNn2/L9iUEVtWm6+7SsINp7XxLXlhTzhdjVMN4M6/W2B7ib+e6JS8vSpc1zkv qAP1TIIsycPYFFR1uDydRz5JOt/+AKigK8Johx2yYf82PoIHQAJNIL0i/b/a3BZnv9Eq cjmA== 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=PfNHoYf2InNiPGVC9qzo7631eEUXZGyrHux3q5scrBc=; fh=0W7O8XCe2cL6t2pYyF6K2Uzc0fKhUjhG2fqwPbyET64=; b=S83ub7dLfwjk0rSOWJtXW+MzLOt6TibLVjIncZEeATFrkq04KlHiyauuWyY1nEECfm Li7TjVG4rZeMaC0ihoaqyXLYrz8YBlfqub1plR0hza9YUQNnLDWatOBZdaCDkeun7X/R tYPzu4baUCbipgJ5qrRmkYkmh5lQCtP2N/NhLwl2Mxe3OiMvkcd+6t9UZO7w2zAy2t2N 6Ptn93TZkdBvgoV5jA5QMfMn1obiFQM8pEhqvo1AycycnOnLmdSwQHcDIcmLcF5SLlsQ W9uiDPKXOH3TK/K0oqFHwLb3g8dLkzjK5O3zqTg164RZTAxYBD28NIC2nMRjnCR9Dnwp WqTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=m79MW81C; 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-122983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i22-20020aa79096000000b006e6c056f450si1489819pfa.213.2024.03.28.06.45.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 06:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=m79MW81C; 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-122983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122983-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CAD012943C1 for ; Thu, 28 Mar 2024 13:45:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA08A80020; Thu, 28 Mar 2024 13:44:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="m79MW81C" 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 7737E7BAE7; Thu, 28 Mar 2024 13:44:19 +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=1711633463; cv=none; b=RM7d5wl3IbklrUTe8PuAWDXcgkxWuk7gxllhKMlvSWhInWZhHUzIVeK+ooQ8RTS2Nt8ROG2HMlizXM2VjEdSL8QTlIi/suHdyeQ/QuTsREO37iMSezgABuULtc7r9HifCCsG7Nkd+hb840VIObeZxruqGOvTkq7BAmzBbO5JKjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711633463; c=relaxed/simple; bh=1Zt/GNPnr+5CkPkwpfsrDaDy69KR996nG4gXgRgk1IE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bnk+gCF453imatwkGnkZEAA750+3/NQFdB63W6/usu1exejji33FhmBl+QiXCYkBsgyksgsAl6DB5Ehg0eASb20vrQIJhr5XXzBImKeFv9t0gAh/uBekiXADQs2I55gV3A6rT23zZlopLCYb8DBy+BEVV7IvER5SHD2O2+hGTVI= 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=m79MW81C; 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id 0B70B40006; Thu, 28 Mar 2024 13:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711633452; 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=PfNHoYf2InNiPGVC9qzo7631eEUXZGyrHux3q5scrBc=; b=m79MW81COP1lStBzobUR/lbuPqe9Bta+GahxCqAPDJXqf6xKNvnwn6EHCJ+KIAHGsH74uq n9ThN05SXJKK1w0GaN4WMkycD04/4b0dc9i/UKqgGHrle44cw9y5QwpLhMfkU4gEqCSXP0 ovVwtrPlnNVkR/JbR5V6vUcUfLqr+cias6g2pvNy6Cmt0z/A+Gah+z1Ntvw1X/uJ2adcxW UAf68E5WwOzt0y242sjZreyBhpeL60aEnSnKIcmYzgMqdPuoCEXPjoSEBUZbazgthzCiuN s5QdjnM2IuZymwUcS7W3HwkywqmjdisEzikegeNV+CvX8UkVecYgXtChPPFLBw== Date: Thu, 28 Mar 2024 14:43:37 +0100 From: Kory Maincent To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel , Mark Brown , Frank Rowand , Heiner Kallweit , Russell King , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project Subject: Re: [PATCH net-next v6 10/17] net: pse-pd: Add support for PSE PIs Message-ID: <20240328144337.4456e596@kmaincent-XPS-13-7390> In-Reply-To: References: <20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com> <20240326-feature_poe-v6-10-c1011b6ea1cb@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; 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, 28 Mar 2024 13:24:00 +0100 Andrew Lunn wrote: > > +.. code-block:: > > + > > + +-------------+ > > + | PSE PI | > > + 8 -----+ +-------------+ > > + 7 -----+ Rail 1 | > > + 6 -----+------+----------------------+ > > + 5 -----+ | | > > + 4 -----+ / Rail 2 | PSE 1 > > + 3 -----+----? +-------------+ > > + 2 -----+----+---------? | > > + 1 -----+---? +-------------+ > > + | > > + +-------------+ =20 >=20 > Is ? a standard markup character? I don't remember seeing it used like > this before. It seems the Documentation copy-pasted from Oleksij mail bring me few weird characters. I will fix it. > > +static int of_load_single_pse_pi_pairset(struct device_node *node, > > + struct pse_pi *pi, > > + int pairset_num) > > +{ > > + struct device_node *pairset_np; > > + const char *name; > > + int ret; > > + > > + ret =3D of_property_read_string_index(node, "pairset-names", > > + pairset_num, &name); > > + if (ret) > > + return ret; > > + > > + if (!strcmp(name, "alternative-a")) { > > + pi->pairset[pairset_num].pinout =3D ALTERNATIVE_A; > > + } else if (!strcmp(name, "alternative-b")) { > > + pi->pairset[pairset_num].pinout =3D ALTERNATIVE_B; > > + } else { > > + pr_err("pse: wrong pairset-names value %s\n", name); > > + return -EINVAL; =20 >=20 > Maybe include the node path in the error message? For a 24 port > switch, it will help find a typo in one of the ports. I would do this > for all error messages in this code. Ok, I will. Thanks for your review! Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com