Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp150116rdh; Mon, 30 Oct 2023 17:31:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKJLPeEnwk7CitV39Yke+y8MNPwqUmezxOqxWSz9vS+PyxgcagXgLL3KeI0Y9+g6swkrpg X-Received: by 2002:a05:6358:721:b0:168:eb1c:366b with SMTP id e33-20020a056358072100b00168eb1c366bmr15248381rwj.21.1698712301063; Mon, 30 Oct 2023 17:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698712301; cv=none; d=google.com; s=arc-20160816; b=L0D1atWW3Tc8rXZGYhE73yzE6wk6703lqUZH0lWdnUbGFxcA6WuDmJ245uGpXstjVi pk/Id6nNmh58r+nZXLV2t510s58Wke0kz4l+f6K194yaeXExArrroR/pc24fB5dJMkRy YsLEsmFdByv5ANRisF1VjyaaPMes843GbTuD88WkH+kKted7l4RHC+gLfti67jRjj1x9 1NlObe40eX7lbdnpynZsI9qiJ/x/MDc192ADuI4TmoWMgiLuPeF04UAQk473ofy+vaHW xbMUkpU9Z5enFbw4Z/dHS5QPdsx7KXHA+CLHejlBxie2e82TKyvcWdUAusalIAxhCU9a Ptvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X2TOenv2wSGzRFJrfy0MQGwX7TY9kSnJhQ8UmhdL0E8=; fh=cEjTKHvWzrDXaeEW35y4IWasG4Hkhs/vv+evhy232xk=; b=XYzC2jgQhzKdZX7aFudo3WPbk/wPgff52plZT5soxFHFrczIuRjky9G46RgSrQZ5mc qMtYflt1LdPqSm7QpkAwFlKvd4CL8GjqDgybvFSnj2CZV6cfUx54VSQN0D+rBoj4vg8G mKuqEZAsqeZR/UrJ2A05ffFPfOoBPPFAY0vXC3OqoZNZAvt5LUXnnOQkwv5gt/V6OGNp rPtw55FijxhGbrBlAnM/EpOY/rqCDOaprBhAInL0cbLPT4jweQdDEflnhzIe/i3cgll8 wkjtA9ed+YUT8ohd61DF2PHe6zozum0WdnbMWWER4dh+LOSLSatKQHGEBr1cj1BbIcBT 3+Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BdxZCsaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a72-20020a63904b000000b005b7c7efed1csi196070pge.295.2023.10.30.17.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 17:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BdxZCsaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6DC6C80401F8; Mon, 30 Oct 2023 17:31:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236714AbjJaAbc (ORCPT + 99 others); Mon, 30 Oct 2023 20:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjJaAba (ORCPT ); Mon, 30 Oct 2023 20:31:30 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69FD0AB; Mon, 30 Oct 2023 17:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=X2TOenv2wSGzRFJrfy0MQGwX7TY9kSnJhQ8UmhdL0E8=; b=BdxZCsaAJ2Qj1dX8fdAe6qPIgG TdBdjnI+AbCe8MTH/Ayoa/s8HDQ5ZHCXqjrpxGfZOWygbbqe2OjksJLtz82BIDs9NbP4LIwWsOguY U5K8ltPwjY13mGT1P4cAzqo3Vak0egGhKSFlDMpirI5mDb/yaE1nOzvOwJhnohlev7kQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qxcf1-000ZWD-H7; Tue, 31 Oct 2023 01:31:11 +0100 Date: Tue, 31 Oct 2023 01:31:11 +0100 From: Andrew Lunn To: Marco von Rosenberg 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 Message-ID: <9cb4f059-edea-4c81-9ee4-e6020cccb8a5@lunn.ch> References: <20231030225446.17422-1-marcovr@selfnet.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231030225446.17422-1-marcovr@selfnet.de> 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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 17:31:38 -0700 (PDT) On Mon, Oct 30, 2023 at 11:54:45PM +0100, Marco von Rosenberg wrote: > 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. Hi Marco This description seems odd to me. I'm guessing here: 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. Adding suspend/resume calls makes sense, i just don't follow the commit message reasoning. Andrew