Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1204979rdb; Wed, 1 Nov 2023 14:43:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJ6xrM3PR1c3hzKtQpYbgNR1ajD+0kfumF6iMkcUvG5dHfWS8cZIJFU2UHsRWExvb6WNlT X-Received: by 2002:a05:6871:341e:b0:1ea:ce71:dd12 with SMTP id nh30-20020a056871341e00b001eace71dd12mr22590636oac.3.1698874990316; Wed, 01 Nov 2023 14:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698874990; cv=none; d=google.com; s=arc-20160816; b=Nz1hiZod+YFGY3X0n5grEn7wnmfYvczQ54idb44mNevknXs4g+42qIt563TBCrQ9UK MPZRdm8zsPHhOiczqoVmjlbXAxHrgV5p00QwWi0XqbEnZ7sbAadSfu1tUikEm0OSNS3Q SGGdJjO5X7LdkalLA8XRGWAodqMHK90NfwR/4+QDY/XjDYLIJy1mQbl7E8P6LYxe3Rpa n0ZW9xjZHcm3WyOiLVKYyuKtka9BC4A0jupECLnUyc3xzPKLoRVOpx6MhbRj1df2nHus RPKIJdAp0ggDKZ9pokuNRROgGQWPodj4tJQ+PsXG+422tPdN4b3AC2FCt1/ax2kszUsB 8Fxg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=va3XCjklqhVnk8nRt7rwHJhvzQs626rlhIiOy82dkiU=; fh=Q5TZSKleSqW9tTZQr4tUiHZJK1ZOisQvG3juT3O5Q5w=; b=kkQL0UBb2mzFpIpZXlO/G2iyWuduSl80JEvfpPR//YGKPnrWu18EIMpy8qh5zas4oI f+glCqaJzwVAT2tqiXTjB8TqtwWMUQdeaKSvOITng6xfm6fPBc8mW4JgP94bZ+mDGhcX F+AbOT7Nja1SCdZNnW8evRPQOqRg7KQsm2GNQSOlZkkYeYypcciEZXV62n5rhxA3pDkk 3D3Q+oJj674ZMH1GgqlYN27S9BR8QgcoHARRAgE6JbVr+vh0D9l1VOULC0ccePl03eup LOF6Bvbco1Dnam8hffD+5XoDegOD8XbBhsA8IJ/dKdJJ4mDsxdOUyuG8x4QZbXXYaW7Q vyJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b=sDticAD4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m185-20020a6326c2000000b005b930e0b600si700668pgm.820.2023.11.01.14.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 14:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b=sDticAD4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 63C108197EB7; Wed, 1 Nov 2023 14:43:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344808AbjKAVnI (ORCPT + 99 others); Wed, 1 Nov 2023 17:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232578AbjKAVnH (ORCPT ); Wed, 1 Nov 2023 17:43:07 -0400 Received: from mail-1.server.selfnet.de (mail-1.server.selfnet.de [141.70.126.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B938C2; Wed, 1 Nov 2023 14:43:00 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 414A640B22; Wed, 1 Nov 2023 22:42:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfnet.de; s=selfnet; t=1698874975; 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=va3XCjklqhVnk8nRt7rwHJhvzQs626rlhIiOy82dkiU=; b=sDticAD4B4yy/EtzxiuuGt8WH1tpeIDa7IMcixC4f82xDYP85913Nbpoy8hbt6CiBI+JSg fwMeQCB/No5AW7/bTUHgwF+2vOnA1KB8zqebeCMD81EzpxQEOZtUsHw5sm9i3lirC+ct1u dw+Hiati+o1Mgu+23rIhLXTvw0mGFmIOfH6NC8TCns3sHrMmCq2ZxXyGHsuWotJ9pDVXFZ 6xLxlfZQaLXhjnhJphd1M8rQa11F1yR4H0j10O1iYox1zD4qUxlsY6VXNV5Vp5lFXswwDo Drz0CzhjjFi88WbtqT9izTsDql7hICRHd8GIH13WAg1uX02F1wbkdguNIayRfg== Authentication-Results: mail-1.server.selfnet.de; auth=pass smtp.auth=marcovr smtp.mailfrom=marcovr@selfnet.de From: Marco von Rosenberg To: Andrew Lunn Cc: Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: broadcom: Wire suspend/resume for BCM54612E Date: Wed, 01 Nov 2023 22:42:52 +0100 Message-ID: <5414570.Sb9uPGUboI@5cd116mnfx> In-Reply-To: <9cb4f059-edea-4c81-9ee4-e6020cccb8a5@lunn.ch> References: <20231030225446.17422-1-marcovr@selfnet.de> <9cb4f059-edea-4c81-9ee4-e6020cccb8a5@lunn.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 14:43:09 -0700 (PDT) On Tuesday, October 31, 2023 1:31:11 AM CET Andrew Lunn wrote: > Are we talking about a device which as been suspended? The PHY has > been left running because there is no suspend callback? Something then > triggers a resume. The bootloader then suspends the active PHY? Linux > then boots, detects its a resume, so does not touch the hardware > because there is no resume callback? The suspended PHY is then > useless. Hi Andrew, thanks for your feedback. I guess a bit of context is missing here. The issue has nothing to do with an ordinary suspension of the OS. The main point is that on initial power-up, the bootloader suspends the PHY before booting Linux. With a resume callback defined, Linux would call it on boot and make the PHY usable. However, since there is no resume callback defined for this PHY, Linux doesn't touch the hardware and thus the PHY is not usable. So this specific issue is primarily solved by adding the resume callback. The suspend callback is just added for completeness. Does this clarify the issue? If so, I'll adjust the commit message and submit an updated patch. Marco