Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2722402rdb; Mon, 4 Dec 2023 06:01:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IERrt3ItMKrgnKiM2TSw7tQY4xiKAQF6KmYG0+g+MR8FeztglSw//O3vuMWdpVWiwIJbmIi X-Received: by 2002:a05:6a20:12c6:b0:18a:59fa:7da4 with SMTP id v6-20020a056a2012c600b0018a59fa7da4mr1391753pzg.29.1701698461899; Mon, 04 Dec 2023 06:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701698461; cv=none; d=google.com; s=arc-20160816; b=GWzp9f4te4/OTiX3jvMYLkjMG3t0eEouPScrHmTy7jz1xlGS0Wj3BFx5YRF0DIe5k+ 3NUboN9Fs/5OgK/ObuQcwa8rEcbtNMwywNdKpX8RJ1/ZgEKvyiiBDtYIu5Ub2aIdOV67 dBrB9bz0s4+n60JEN1+2cM4h6xxBBdVNnC/YeKFjqPaTOd6So+c8SFMq/2AcBrRR2r7j 5pgTRZZCYpL4XWW1TiegtB9TkR7Ry3/YK8nKrI0/jvrtlZ7I3+YwSYCVc4XYUyUnpop7 synVirBGhpznPS5Ea7GKoQ59YFXLpJldPyRn0M98a6ZVkhHkB6yT95dBwCNwcggCBAWi gwNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=A+uiDE3NxOoevwqMr8SCb+nCphsDYD9LtU5l6pSFpbA=; fh=I4Frq8hy2PsYu5XYcvyXIAJ5MhlTZbOy+Hfm+AcLFIk=; b=VDxbqBHvnrwAqGuyBn1KgHDSHcPrJOnm6GsV8R/b0KbJaEdvkqbfc13v44ywQT6+si WLC3wDAcDv5XzLwnAKsRW4V0Qb1CLUg0RW+B0abGz9DCTAedWGNS/k0K+qNNnr7w/YHi 52SSiXqBMtoECQLGZ1HpV1HWIrO/GYKgzXpP/HXDtirdsRknHIoBlrfRyzTkDCt9eUvH DYcxcXCkK6fuS1inSoCw0uRgCQSucJqsugBLLymUl0Vi5WFhCS5Q/kVXfKaIS0gQiM9E LAaPk7EojZET4ibHwGUHi3jaYrH1ECu08i7WbRhzVaprWT6CYJO6U9GVnsKMlXbupScE YdZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XfpCeoyk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 62-20020a630041000000b005c6a04dfc07si291077pga.519.2023.12.04.06.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:01:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XfpCeoyk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 80538807D570; Mon, 4 Dec 2023 06:00:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344823AbjLDOAM (ORCPT + 99 others); Mon, 4 Dec 2023 09:00:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233871AbjLDOAL (ORCPT ); Mon, 4 Dec 2023 09:00:11 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C040983; Mon, 4 Dec 2023 06:00:17 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7DC141BF212; Mon, 4 Dec 2023 14:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701698416; 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=A+uiDE3NxOoevwqMr8SCb+nCphsDYD9LtU5l6pSFpbA=; b=XfpCeoyk25guxuYkM2E3TDVB4SjGyNvw5Q8qV1Q8jKT6oyWII3NI0zpolKSlocF9bUMIGS uXtDB4kU5EnE0GCw6m6xlPZDt77NhZUs7UOS/fhpAR16aV3/tndTM+2t5vAn71Z/3rtFA0 OLz9YcSSv8Otr8/mR0RCbqCDLWEREfHhTB2UZIkJFD+yejdRnN0sInqYK2uiCvK5v/Kojr cnGAInYOzIUt/438MO9IEDa3/XguQnwb4j6jjWXc8HwAeKClomqbb6QR2FkBJEXBtnPy0g 1tuM6SYX+Q+KqbX4yRRawlvk73dS4pSYEjY3tTj19I8U64TdMU5GweIlszj/FQ== Date: Mon, 4 Dec 2023 15:00:14 +0100 From: =?UTF-8?B?S8O2cnk=?= 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 , 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 v2 3/8] net: pse-pd: Introduce PSE types enumeration Message-ID: <20231204150014.33ba28ed@kmaincent-XPS-13-7390> In-Reply-To: <69292ed5-63d3-4316-9bab-630bd00ce807@lunn.ch> References: <20231201-feature_poe-v2-0-56d8cac607fa@bootlin.com> <20231201-feature_poe-v2-3-56d8cac607fa@bootlin.com> <69292ed5-63d3-4316-9bab-630bd00ce807@lunn.ch> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 06:00:29 -0800 (PST) Thanks for your review: On Sun, 3 Dec 2023 19:38:04 +0100 Andrew Lunn wrote: > > +/** > > + * enum - Types of PSE controller. > > + * > > + * @PSE_UNKNOWN: Type of PSE controller is unknown > > + * @PSE_PODL: PSE controller which support PoDL > > + * @PSE_C33: PSE controller which support Clause 33 (PoE) > > + */ > > +enum { > > + PSE_UNKNOWN =3D BIT(0), > > + PSE_PODL =3D BIT(1), > > + PSE_C33 =3D BIT(2), > > +}; =20 >=20 > Maybe this should be in the netlink API? >=20 > I think you can imply it by looking at what properties are in the > netlink reply, but having it explicitly is probably better. > ethtool(1) can default to PSE_PODL if the property is missing for an > older kernel. Ok, I will add it to netlink API in v3 then. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com