Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp115690rdh; Mon, 30 Oct 2023 16:02:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8fu4Z5k+96R7St8ZsDZ+LQ2InnpX/WsU0PV0PrVGlIW0Y7j2m4gk5lSqeXhdQeRLszL6L X-Received: by 2002:a17:90a:4922:b0:27d:5946:5e2c with SMTP id c31-20020a17090a492200b0027d59465e2cmr8286368pjh.12.1698706976067; Mon, 30 Oct 2023 16:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698706976; cv=none; d=google.com; s=arc-20160816; b=spVnwtXvopTqLJk7InvhRvUVmy0Q9Uscss9sSJmp1Bc0ONPWM+bN3Hfq06M6B5g35S FP14/kQcwgqLg89aGEgry0JbvLdBvDxlMH5mQmFb5X+P+plCqAwGOvNsmnfzR9ukfqYe IJwFliH7la6W+Qbgw2BP/mpPGCFsqvpK9CPLwJ9ToEob8kCUMuMkxHrhKbpkhdIRolo6 qIs+tq9+ueF41emWgdzFWnnH2gmyYSTpJDYWN4cSClcIQ59v489Ej1RGwVi0x+oxG3+M QQthMP3nJ2jcL95qlM8rrSUJ3y5+8lV/NwZZLcqY9Q/E3ahef+mM517bTykIsqNWTuFo VaRw== 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=PCsZTHDftr8v1kPvgW50F/V5olhAwY15OTuwMPbeyYg=; fh=Q0HnZ6g6qxgwBvym5lZJbkeMidFUFfZlEFHXzRxMycc=; b=teV1A4eXHpFsFBqek47YXht7pn0m/mtl5oaEaM/GwopeItOsouW7Z8rZq9O2GjV+/M QRGZOyckUKSwzebvEpSefjslhHZIgtEKB0YvkhNuO86S9pAKz9oMuQZ97TxUnBkxq1V1 qOd5keEUAptPQoLCgzbQjRjT9IuMQ6N0yXcG+dgmcSDmKWGvOmKybv5+M1pFm2s8K+zT WPCOZwWQGL8AeRttP0y7RIR25/6ndRZK06M9TzsBVrbBN4QoMo0z+m1LtDFxuJe/X7LC cAxLNpyBkZG72gRxWPGlzR0DvT6bJwKa6uxmmmN+KI0GbbiZhrStvB9OhYa27LN/atpy rvyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b="Qq/N8Vfi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o19-20020a656a53000000b005abe19be7e9si109505pgu.543.2023.10.30.16.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 16:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b="Qq/N8Vfi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 7D676805CAC1; Mon, 30 Oct 2023 16:02:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbjJ3XCq (ORCPT + 99 others); Mon, 30 Oct 2023 19:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjJ3XCp (ORCPT ); Mon, 30 Oct 2023 19:02:45 -0400 X-Greylist: delayed 324 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 30 Oct 2023 16:02:39 PDT Received: from mail-1.server.selfnet.de (mail-1.server.selfnet.de [141.70.126.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 994C4E1; Mon, 30 Oct 2023 16:02:39 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 57C33409E5; Mon, 30 Oct 2023 23:57:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfnet.de; s=selfnet; t=1698706627; 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=PCsZTHDftr8v1kPvgW50F/V5olhAwY15OTuwMPbeyYg=; b=Qq/N8Vfi3ilbXcQ0xQ061biLwDUoayRiTxIIKKhFDlbJNE1ggo/Bj8/tTmcYqxuNsIZ1l0 Ryuyet8AFFPCL589Ssga3y8y47IIC6jk7MQWbi8oAgoqEvQlpkitNhxAJQW2c1kSQvWAFi pLN2tkFnyjwdvXswIDqcdh2kgLTOP3Ga/trEFSWZ8cz3FBTthlN2SuZFGB/UAzXnlGC6Xz WnCredEuDVtZyx8b8DTIVCymPrRzq5MFZjKj4fl+KuCT9Ih9wENe6h76jA+wkcUzBwCGnU J+qN3B1iNRIXg1tfkBj/R0O8J/snchKtklHx6cYxTkTlrbWTdP1NKf08BWtkjQ== 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: phy: broadcom: Wire suspend/resume for BCM54612E Date: Mon, 30 Oct 2023 23:54:45 +0100 Message-ID: <20231030225446.17422-1-marcovr@selfnet.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 16:02:53 -0700 (PDT) On some devices, the bootloader suspends the PHY before booting the OS. Not having a resume callback wired up is a problem in such situations since it is then never resumed. This behavior was observed with a Huawei enterprise WLAN access point. The BCM54612E ethernet PHY supports IDDQ-SR. Therefore wire-up the suspend and resume callbacks to point to bcm54xx_suspend() and bcm54xx_resume(). The same wire-up has been done in commit 38b6a9073007 ("net: phy: broadcom: Wire suspend/resume for BCM50610 and BCM50610M") for two PHYs also supporting IDDQ-SR. Signed-off-by: Marco von Rosenberg --- 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 04b2e6eeb195..ac14f223649b 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -1060,6 +1060,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