From patchwork Tue May 16 23:17:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13243987 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 D6A5B29114 for ; Tue, 16 May 2023 23:17:19 +0000 (UTC) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 741DD7AA5 for ; Tue, 16 May 2023 16:17:18 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-75795493bceso14039785a.3 for ; Tue, 16 May 2023 16:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684279037; x=1686871037; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=CC7CQgnlooL93TV3tpbRiaKHvKCInQn3u+n2BvI1730=; b=DHlu3LJJEqGAxbfi8kvV9XxzQUmwA6dZan8SWoJnpBk+cV5HrUGTZRJE6r9Ppq0LgW osnmMGFNVuHUA/8gvvvz82fk4fHdIymjaKegYblovgB7zzaSqZjRRaa3bKweiHOu36yC NgIWZfhqJnFvOKY+beUaFYJWRs1FnEEJAybDY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684279037; x=1686871037; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CC7CQgnlooL93TV3tpbRiaKHvKCInQn3u+n2BvI1730=; b=l2QL1IQCcyd6PuR4X7dfLbgedDjmeD3ILtp89p/dgNVuQ0MWiavB10IYY6hj+Wwq12 SognEOAOvrxT3elabYfDaxi6UeBVqxvYxb9/zS6DEfK7PiMI0Ah9pI46jwzJHwHrfY/P VS4UX7nIjuBI1kLEVPuvNkg6kqzoqA0kk9TwLEZPDopWJQmDjUsbf5XsPQonxyrZyutD OLnzftTqmhmdbCXRkVqsMfTBS9JorlN2/GCEq6VYMKqIL0AtlUiLnsU6Oi5dTVblYAkp PhqkWBxxG5njiRxRDH/5sqPwQMwoaHLAWznDoL0ztKDO4ffV0XrWnz+UOrWlOyuSYUuM Eklg== X-Gm-Message-State: AC+VfDwJLIAUniT/EqqyF5971Y+ACUgZ6+wucMXsTPQO4xgcJMzKyouf wwjVmK0y7uZqHs0bsLdcpvEFXdeSnQtLID0JCFKuEZtCvkz8ZeC6neCTo1LVahgB2tk2TCQA2Ib 8FMEG3S8emEH1MhMr0v/mfVVRR7AprQquzsiY4VTNawkBPQf/poqU+mI0gjfGotjHEwFCCj4NWm Tc+ktlHccnCw== X-Google-Smtp-Source: ACHHUZ5x62otsy7dId73jHILkiGUJt3YJDrjeBX9MTqIY6EmkMsJOoUFPaOpMEnpRWMdhpLMAKWkcA== X-Received: by 2002:a05:6214:2501:b0:5f4:357c:3bf5 with SMTP id gf1-20020a056214250100b005f4357c3bf5mr70621371qvb.13.1684279037115; Tue, 16 May 2023 16:17:17 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g17-20020a0cf851000000b0061b7784b3basm5495427qvo.84.2023.05.16.16.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 16:17:16 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Doug Berger , Florian Fainelli , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Heiner Kallweit , Russell King , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next 0/3] WAKE_FILTER for Broadcom PHY Date: Tue, 16 May 2023 16:17:10 -0700 Message-Id: <20230516231713.2882879-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MIME_NO_TEXT, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org This patch series adds support for WAKE_FILTER to the Broadcom PHY with the narrow use case of being able to program a custom Ethernet MAC DA to be waking up from. This is currently useful for Set-top-box applications where we might want to wake-up from select multicast MAC DA pertaining to mDNS for instance (Wake-on-Cast typically). The approach taken here is the same as what has been pioneered and proposed before for the GENET and SYSTEMPORT drivers. Thanks! Florian Fainelli (3): net: phy: Add pluming for ethtool_{get,set}_rxnfc net: phy: broadcom: Add support for WAKE_FILTER net: bcmgenet: Interrogate PHY for WAKE_FILTER programming .../net/ethernet/broadcom/genet/bcmgenet.c | 12 ++ drivers/net/phy/bcm-phy-lib.c | 147 +++++++++++++++++- drivers/net/phy/bcm-phy-lib.h | 6 + drivers/net/phy/broadcom.c | 15 ++ drivers/net/phy/phy.c | 19 +++ include/linux/phy.h | 8 + 6 files changed, 206 insertions(+), 1 deletion(-)