Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp833515rwb; Mon, 26 Sep 2022 06:29:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ltPzcFghATN7ohGU3day6p6np8drBul3Ef+TDfR0LEp8OAU2aDIn9mbSpRgiJLGguCD+E X-Received: by 2002:a05:6402:2804:b0:439:83c2:8be2 with SMTP id h4-20020a056402280400b0043983c28be2mr22696672ede.292.1664198975667; Mon, 26 Sep 2022 06:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198975; cv=none; d=google.com; s=arc-20160816; b=ijb+RKxWcZFCBELwmaZHBYnM7ReuyQM0MpQKmTCtBQeMn6dg1B6i3Z6/VsLGgxC4EO CJP0U6HfWr6IK9NnXdbleoSXpm8pHx922waY34U1dFmD7yvRAT5avsFYyDoO4RaOu+X8 JSGfpnvdHidrVj72wa/RHvHobMndwsn/fZpAQdVJOt90PSW4Fqoi0Ljyia6yoUGeg0bs WMmEamqFib+25YdrOthKkDyxqUH9+tgfv0zVhSZBUwne3bojJ/irg1ZkT/DB5ovpDsbD Lx8y4MQqfbqUm97pLVnQIm7eFzdlyWGcg7Tll1ctf63dpprfy/jNa6pVLfb7m2ygWRIs uTPg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gYJ3Sf1y3mp7bglk6da1UsRxkixXrw3oJwcGX8B8yxM=; b=NGtFY2p4U0E9V48Ty+YaKPa7+qZCNtKmn57ghhRC1F7pEDsFvoADBRRPpCL+a6T1Dk gX4t/aAHvjLDj11zdJlxh8eHmIA4cfudWWyJ9d8rHw3P42L4nHQ4UfLstVnlLVbQTIh9 8I6mLvg0ebtjHFAHEwABTE1shXtfoAW1j4QUxfZIStIU+JShjUfa7BaqgdmF0P5klwZc nCTkYMP8Ld/kg9Rmes91+eelOxTaOo0lF0oa/ZE5jW7NSjaev99+Gh11VQA8WuABCJme qNaYxbbknVjH+8HOMV7akT548MFQMdjcuIS1UMlZyzAyiE/lYsPMsAQH/9b96YXAvEp7 650g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s94NIrVc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a056402521100b00450d0a3d76dsi18648417edd.197.2022.09.26.06.29.10; Mon, 26 Sep 2022 06:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s94NIrVc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235404AbiIZMZu (ORCPT + 99 others); Mon, 26 Sep 2022 08:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239498AbiIZMZS (ORCPT ); Mon, 26 Sep 2022 08:25:18 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6CD0A50C5; Mon, 26 Sep 2022 04:06:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id BF14ACE110D; Mon, 26 Sep 2022 10:49:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD3AFC433D6; Mon, 26 Sep 2022 10:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189390; bh=0DjXhAL+8E554ezDNho8QZsjgosXCo+FVNzesFm1IC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s94NIrVcmPZR3e3RUzzkAVw59UB04d99QuiB93QQtw/noCEvaq3DpEDjHg2vNkMyp yuadW45Pg1IdZIqxwwkp8ZBpa14uj3poPkLFjCNYUgN6wPsVE+xLTuoZ7Kke9BERKC a9CF6I8PjveBIx6Hp+fvo0orJ5e6B6g06ZmGjTV0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Florian Fainelli , Sergey Shtylyov , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.19 141/207] net: ravb: Fix PHY state warning splat during system resume Date: Mon, 26 Sep 2022 12:12:10 +0200 Message-Id: <20220926100812.821149715@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Geert Uytterhoeven [ Upstream commit 4924c0cdce75575295f8fa682851fb8e5d619dd2 ] Since commit 744d23c71af39c7d ("net: phy: Warn about incorrect mdio_bus_phy_resume() state"), a warning splat is printed during system resume with Wake-on-LAN disabled: WARNING: CPU: 0 PID: 1197 at drivers/net/phy/phy_device.c:323 mdio_bus_phy_resume+0xbc/0xc8 As the Renesas Ethernet AVB driver already calls phy_{stop,start}() in its suspend/resume callbacks, it is sufficient to just mark the MAC responsible for managing the power state of the PHY. Fixes: fba863b816049b03 ("net: phy: make PHY PM ops a no-op if MAC driver manages PHY PM") Signed-off-by: Geert Uytterhoeven Reviewed-by: Florian Fainelli Reviewed-by: Sergey Shtylyov Link: https://lore.kernel.org/r/8ec796f47620980fdd0403e21bd8b7200b4fa1d4.1663598796.git.geert+renesas@glider.be Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/renesas/ravb_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index b357ac4c56c5..7e32b04eb0c7 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1449,6 +1449,8 @@ static int ravb_phy_init(struct net_device *ndev) phy_remove_link_mode(phydev, ETHTOOL_LINK_MODE_100baseT_Half_BIT); } + /* Indicate that the MAC is responsible for managing PHY PM */ + phydev->mac_managed_pm = true; phy_attached_info(phydev); return 0; -- 2.35.1