From patchwork Fri Dec 1 17:10:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?K=C3=B6ry_Maincent?= X-Patchwork-Id: 17420 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1278412vqy; Fri, 1 Dec 2023 09:11:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1wjDJixTUvE+/3nxYN4tIseR2ddmCfTAT5c3Gd0rxpJsc/CyOWdRaxeaSAZeQ18LEWtey X-Received: by 2002:a17:90b:3843:b0:285:ab8c:21db with SMTP id nl3-20020a17090b384300b00285ab8c21dbmr25438070pjb.32.1701450710431; Fri, 01 Dec 2023 09:11:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701450710; cv=none; d=google.com; s=arc-20160816; b=QN4unCfVCD9rfI2rmwgflGj/BuNRlAk7NMjS7r3xcwaJIElhzSdLPK9xZYxtADVC+J 8AHenJLqAnrchXGgzYCC/bIHeaqOiHA5E9A/9env13HG1YjkRzt73hzQ1jj05eRyvCrE 7LoqDDyan+1gAYi+kM8ZFIB5v0/2GIQgnTwfH49/a1/TtJ2vOosOcVeYAcC/ShOKsqb9 agVB9SPDRlHydFzyMoSZVug1xLqyhK+jKjqnbAun4v84YmFwA3KwKPVjM2CLwamRyeT5 w1mD7fRs12g3rdGGgbTKA/rVZyaUSgd+BFTMx1fc0hvzs7UzfTGibeBWgcJgVMId5CWd KEug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=cf3RboC7v/50jqCoPEsittoiIyTcKQhGJ+tHg/wFrhY=; fh=/uDJtwnpikhDHchW+BU5DaWKtgJ2QqyhTe++6ujbTY0=; b=c2f4qXJXodrIak8O83A8jD8KjJOuaOkQ9XRtD+PU0LmnmKLLzoubV/dpwbd8YjaSxH mRkY+Sh0+pGvnfcOlO3WfQFoazTIHRPHifU2D5x5+IwlPCPVI96nHT0JUtD/lNjhb6dv h+tV2PyPviDM0o6c22DONvScmWzVAcB/zoKnj7CEMZ0cKcZ0ip/0DN+1OP+tJqeTlSYd RGOG5L4O101DhXy5V9pGrYieci5cVoec0Smx/2Dca8v+Aya/Y6CFV5xoiNkWomrnni9I C3Wql333OMkd7Z7guy6MZrt4M7cEyIdnTFdB1LAVMACZwgHcdowu4rq/AEsHBAWrUDiA nziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n4Vi5Tt5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e2-20020a17090a804200b002864c190d09si2625120pjw.70.2023.12.01.09.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 09:11:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n4Vi5Tt5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 05F7A8112A9D; Fri, 1 Dec 2023 09:11:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378763AbjLARLd (ORCPT + 99 others); Fri, 1 Dec 2023 12:11:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbjLARLb (ORCPT ); Fri, 1 Dec 2023 12:11:31 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89764C1; Fri, 1 Dec 2023 09:11:37 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id C96FF24000A; Fri, 1 Dec 2023 17:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701450696; 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; bh=cf3RboC7v/50jqCoPEsittoiIyTcKQhGJ+tHg/wFrhY=; b=n4Vi5Tt5sKveHLBat483FVqcza4IsZpHTrtcSEZINAubs6cAcbVayEPxmGIEB9QfRADqr5 XcE2LrhHThb28R7H2xyCe2x94jrAfoPpPH70qnTGakXJEMebTLLkWXpyTlmKHGjX7FZrF5 xJK/NILhT7XoHMBC2uxzfw1ysxRKKznhYnNPWCzhNjDAoshb/yOD+ZgRmDVowaBX3k9p4d +0/FeHYPDjxn9Gll/OpGpOE5GJHFSQCaTTUvw5twG43ZmcGxDV2qkVMrEXLrUOiCDPIz5W RrQeIFfa2dkkalFhClmW5imt1E2ZT5OJkKN2YVXPvYUg2CNOB7CvI2nQGT/RxQ== From: Kory Maincent Subject: [PATCH net-next v2 0/8] net: Add support for Power over Ethernet (PoE) Date: Fri, 01 Dec 2023 18:10:22 +0100 Message-Id: <20231201-feature_poe-v2-0-56d8cac607fa@bootlin.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAH4TamUC/1WNywrCMBBFf6XM2kgeg1pX/Q8p0taJHdCkJDFUS v/dkJ3Lw+Geu0GkwBTh2mwQKHNk7wroQwPTPLgnCX4UBi21UVKjsDSkT6D74kko02Ir6WxQGii LJZDltdZu4CgJR2uCvpiZY/LhW2+yqr4WlTr9FbMSUoyEF4k4Wo1tN3qfXuyOk39Dv+/7D4mr0 SuyAAAA To: "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 Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , Kory Maincent X-Mailer: b4 0.12.4 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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 01 Dec 2023 09:11:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784100380022088534 X-GMAIL-MSGID: 1784100380022088534 This patch series aims at adding support for PoE (Power over Ethernet), based on the already existing support for PoDL (Power over Data Line) implementation. In addition, it adds support for one specific PoE controller, the Microchip PD692x0. The PD692x0 driver is based on the patch merged in an immutable branch from Jakub repo. It is Tagged at: git://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux.git firmware_loader-add-upload-error The patch is already merged in net-next. In detail: - Patch 1 to 6 prepare net to support PoE devices. - Patch 7 and 8 add PD692x0 PoE PSE controller driver and its binding. Changes in v2: - Extract "firmware_loader: Expand Firmware upload error codes patches" to send it alone and get it merge in an immutable branch. - Add "c33" prefix for PoE variables and enums. - Enhance few comments. - Add PSE Documentation. - Make several changes in pd692x0 driver, mainly for readibility. - Link to v1: https://lore.kernel.org/r/20231116-feature_poe-v1-0-be48044bf249@bootlin.com Signed-off-by: Kory Maincent --- Kory Maincent (8): net: pse-pd: Rectify and adapt the naming of admin_cotrol member of struct pse_control_config ethtool: Expand Ethernet Power Equipment with c33 (PoE) alongside PoDL net: pse-pd: Introduce PSE types enumeration net: ethtool: pse-pd: Expand pse commands with the PSE PoE interface netlink: specs: Modify pse attribute prefix netlink: specs: Expand the pse netlink command with PoE interface dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller net: pse-pd: Add PD692x0 PSE controller driver .../bindings/net/pse-pd/microchip,pd692x0.yaml | 77 ++ Documentation/netlink/specs/ethtool.yaml | 33 +- Documentation/networking/ethtool-netlink.rst | 20 + Documentation/networking/pse-pd/introduction.rst | 73 ++ MAINTAINERS | 7 + drivers/net/pse-pd/Kconfig | 11 + drivers/net/pse-pd/Makefile | 1 + drivers/net/pse-pd/pd692x0.c | 1025 ++++++++++++++++++++ drivers/net/pse-pd/pse_core.c | 9 + drivers/net/pse-pd/pse_regulator.c | 9 +- include/linux/pse-pd/pse.h | 35 +- include/uapi/linux/ethtool.h | 43 + include/uapi/linux/ethtool_netlink.h | 3 + net/ethtool/pse-pd.c | 64 +- tools/net/ynl/generated/ethtool-user.c | 54 +- tools/net/ynl/generated/ethtool-user.h | 81 +- 16 files changed, 1481 insertions(+), 64 deletions(-) --- base-commit: 98137c429a4854583210707a82114b4f5c171c5e change-id: 20231024-feature_poe-139490e73403 Best regards,