Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp50397rdb; Thu, 16 Nov 2023 11:33:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPbOWeDlT3GnG7RNjmOKywOsepEXn2gzDV0C5kIeSjHo88mx18r+t08uhRJKCBuh0ayaYA X-Received: by 2002:a05:6e02:1be3:b0:357:c844:4d51 with SMTP id y3-20020a056e021be300b00357c8444d51mr20030275ilv.12.1700163216586; Thu, 16 Nov 2023 11:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700163216; cv=none; d=google.com; s=arc-20160816; b=UyFZcEz/8uq5JbLibpNvhj384m6RuILzKGiV29XKPxfb4VVpBipqRmc/Z0v3ZPBs6g 345ulbJ9goIunQjS9MCbDluHhYNVMAlR1vZ1K/x0Z83TMPwXVE1THstoq+YmtGFv3NiU A1/hHUtgbsKBti7aKgtGmiD+uA7fM79VcdBqVO3pRUeEyBcpyOrdSx6D79qR9YjGVjI1 4EUAOgFTLiE/ZFizvbAK24Z4FbrXZeeHyZup0JefL8X7vO0O1gvS0Uqr+HfAELC6cBpq 9XOT7C7T6rreXM2RTDspm0oZEoxkm58oQTgGA0GSabvYYsVGDnqho4uIgALU2Y9r7n6n Ktxw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=C/qgsd93til2nE9EEIPcHiiKgfZ+FbrQSgJ2jg4YdJE=; fh=Q0HnZ6g6qxgwBvym5lZJbkeMidFUFfZlEFHXzRxMycc=; b=Mkq/EQfFIPFEfN7V1Sv3uq1OCGUv5Lf2L0KYMMGXlN4mU/KpjwZx6GIsndMn1WwvH5 3Ff7/oB2uDLdXv1obXR189+gix2T46IR7jw03ZV3Gh7ID28EPuZy0ga5X40/JMmHIN+6 Ony51neFYN5M1UwJqw5wDuD4vKntMZWieQqJil7Sf7eGwrBo4sy4RYFKMvnhLph2i0u4 HvFO0i4qJAbCUeE16IqYU1ZWBZ0Oks02e9cqUzyprzjQnEOyPgEOcw5qIgGClCidzJas UlWAk+J6EMa1qYDIKmsK9yE51nHfEZL6QGkjueYudifywxpGlCUxTA/hwuWdpYM5GGml /K3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b=AFlZnRYf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z7-20020a6553c7000000b005c1b27f8ef2si140435pgr.49.2023.11.16.11.33.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 11:33:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b=AFlZnRYf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 278B6802EA9E; Thu, 16 Nov 2023 11:33:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345491AbjKPTdX (ORCPT + 99 others); Thu, 16 Nov 2023 14:33:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345396AbjKPTdW (ORCPT ); Thu, 16 Nov 2023 14:33:22 -0500 Received: from mail-1.server.selfnet.de (mail-1.server.selfnet.de [141.70.126.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08BAF90; Thu, 16 Nov 2023 11:33:15 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 64DE1403A1; Thu, 16 Nov 2023 20:33:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfnet.de; s=selfnet; t=1700163191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=C/qgsd93til2nE9EEIPcHiiKgfZ+FbrQSgJ2jg4YdJE=; b=AFlZnRYfgjfz/zkTsbsV9QcutZLJLzm1wWse1iyQFLsx8FFlsmmV1FGOG5V6TwNArgYlmi +vFwwGZTwgnwkyOHeYUmJzNfy+oMGauTl6FT7MwLUeZRsmA32WM0buGks4bcNIl0q+yH59 dQtb2m9bWw2ygnSxHgPOwyypMTlkoYegYmvI6T073DkGeChpStYXoFO3MriNWtumNp5OBO pVZUk41IL7NV0MgmPULvgyUfMIlQ4R6s1m7SW/g3fYTFsNogRYJ0Nfk5GaUzy/ZM3fuFAO J08A+m/12WY06Xfy7rGhYS749MvEwJipqCogu5idpGYPI39FSaV6JZ0fWTGOrw== From: Marco von Rosenberg To: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Marco von Rosenberg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2] net: phy: broadcom: Wire suspend/resume for BCM54612E Date: Thu, 16 Nov 2023 20:32:31 +0100 Message-ID: <20231116193231.7513-1-marcovr@selfnet.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 11:33:34 -0800 (PST) The BCM54612E ethernet PHY supports IDDQ-SR. Therefore wire-up the suspend and resume callbacks to point to bcm54xx_suspend() and bcm54xx_resume(). Signed-off-by: Marco von Rosenberg --- Changes in v2: - Changed commit message - Rebased on commit 3753c18ad5cf drivers/net/phy/broadcom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 3a627105675a..312a8bb35d78 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -1135,6 +1135,8 @@ static struct phy_driver broadcom_drivers[] = { .handle_interrupt = bcm_phy_handle_interrupt, .link_change_notify = bcm54xx_link_change_notify, .led_brightness_set = bcm_phy_led_brightness_set, + .suspend = bcm54xx_suspend, + .resume = bcm54xx_resume, }, { .phy_id = PHY_ID_BCM54616S, .phy_id_mask = 0xfffffff0, -- 2.42.0