From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4A18C4167B for ; Wed, 6 Dec 2023 00:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232334AbjLFADK (ORCPT ); Tue, 5 Dec 2023 19:03:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbjLFADI (ORCPT ); Tue, 5 Dec 2023 19:03:08 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1B461A2; Tue, 5 Dec 2023 16:03:14 -0800 (PST) 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=ZowHgJwHbLNG5um7ode501HNWFXI0JGKi/xZLjVzRjk=; b=sYYj1LXeyhNfrnBTuKq34KJWRh yzr/Xd/92Q0hojZYD+xj8Ut4AfIWBL59l5G9u0mqVTiRy+u1wtIUXb5jgmhgmo1+3umZUrK+gCMIs kB0hoWmBXoWiwWYKwN7fFbZJdNCIsK2AkWh2JHXCz7ScY9IE+wOle4XwOdARHbU7pG+0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rAfNX-0029lB-NZ; Wed, 06 Dec 2023 01:03:03 +0100 Date: Wed, 6 Dec 2023 01:03:03 +0100 From: Andrew Lunn To: Justin Chen Cc: netdev@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, florian.fainelli@broadcom.com, Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , open list Subject: Re: [PATCH] net: phy: Only resume phy if it is suspended Message-ID: <7e3208aa-3adf-47ec-9e95-3c88a121e8a3@lunn.ch> References: <20231205234229.274601-1-justin.chen@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205234229.274601-1-justin.chen@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 05, 2023 at 03:42:29PM -0800, Justin Chen wrote: > Resuming the phy can take quite a bit of time. Lets only resume the > phy if it is suspended. Humm... https://lore.kernel.org/netdev/6d45f4da-c45e-4d35-869f-85dd4ec37b31@lunn.ch/T/ If Broadcom PHYs are slow to resume, maybe you should solve this in the broadcom resume handler, read the status from the hardware and only do the resume if the hardware is suspended. Andrew