Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp827100rwb; Mon, 26 Sep 2022 06:24:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TDG8UYEmEbb81oF47bnYND9ZCXKDdfZgMWcD5DihKKCz6fe8Z/b3ztoaK5+KwKIHJbyOT X-Received: by 2002:a17:907:60cf:b0:782:d3ab:55b8 with SMTP id hv15-20020a17090760cf00b00782d3ab55b8mr11812111ejc.6.1664198679043; Mon, 26 Sep 2022 06:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198679; cv=none; d=google.com; s=arc-20160816; b=zg2A+3XDH2dfG8+7lGEgu45xIha0ycqD1Y3o8H7YdqpRPXqz2Xq3ic4Ox+hgv7NVTv GTjFczVRRW3OPE6na++jqKkv8578Z0rjqi6EzkKp5LHklG4UclnZvFIXfa8tB8sAId8V QBa5eE35GxMu00gKW17k/Ha0s2xTmHiCRI8X58e2h43ZnAWkCTvX3/cNs10BAapeP+B9 5HNixKAxP7zTEJtLvCwzs/VEOs63cn+uwQBdYIhPEvvqOY9N9hiyWcHkPEw/lRmkFMFk E4cLbE5xA8dVHmIdJeqwGhrWdKsckDvd3wP8j4O9ifyAQW/DnC6KwZIlxeYf4ZHYA0ij DoDw== 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=YkMVmu841yexahsiDxGNIU80AuSA5UAD+w5+Knf7fIg=; b=ghfLzRJhJZeNrD+8/c3LzmNs5Y5cRfCb5OUo/Tdr17EiQvIAxp4afmJXZf6x4+6ub+ kZHctpRcc45pV+9zrS03Zm1VkbVYrPxeSmGrgDU2Wr2+DwPdAjAtLw0gNirK+ohRZXQ3 o/uPY4x/iiFIYnF1T8RUtlNQceaBP3Z/fYPnT4vFaGihCSjptojPcw8p3eexkYFop0cb qI4Jxl2RI8pLRt2xj6zBNYhrmV5HjygRxQS9NQgZxfcPcJGrM+vq+hNzNSxNkfDmZldt frqYtI2UT4/J1I0CAnCI6ibEhYOSK1o1tnJlCcFeKdWmcmI9eLjwBxAYuoaQS2yeyGuN aRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RcMj5G3v; 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 y12-20020a50e60c000000b0044efdf9db9fsi13710309edm.68.2022.09.26.06.24.12; Mon, 26 Sep 2022 06:24:39 -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=RcMj5G3v; 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 S237739AbiIZLYb (ORCPT + 99 others); Mon, 26 Sep 2022 07:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234166AbiIZLXD (ORCPT ); Mon, 26 Sep 2022 07:23:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6658CB4B8; Mon, 26 Sep 2022 03:39:44 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8413B60B6A; Mon, 26 Sep 2022 10:38:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7240EC433D6; Mon, 26 Sep 2022 10:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664188734; bh=OjoEGms6zCN1oskEwvhMEdh7Fy7whkyoItKoSltAJzY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RcMj5G3vPQurHGTwn6GiVb6ZHINnO0IDMZ0eHQcKHq+gIRM6PFC7bLR8+7yq6glPV iuACvYVJHYAKhfq5pb+llBl0YTwA7QuzbhOAvoQg038kZH56+UVIYf89P5hi/uCu1t 2mmLDBvGyTy9jR70kIg9W+3WgcpaMeZpwncuyzIs= 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.15 104/148] net: sh_eth: Fix PHY state warning splat during system resume Date: Mon, 26 Sep 2022 12:12:18 +0200 Message-Id: <20220926100800.007268992@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100756.074519146@linuxfoundation.org> References: <20220926100756.074519146@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 6a1dbfefdae4f7809b3e277cc76785dac0ac1cd0 ] 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: 626 at drivers/net/phy/phy_device.c:323 mdio_bus_phy_resume+0xbc/0xe4 As the Renesas SuperH Ethernet 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/c6e1331b9bef61225fa4c09db3ba3e2e7214ba2d.1663598886.git.geert+renesas@glider.be Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/renesas/sh_eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 1374faa229a2..4e190f5e32c3 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -2033,6 +2033,8 @@ static int sh_eth_phy_init(struct net_device *ndev) } } + /* Indicate that the MAC is responsible for managing PHY PM */ + phydev->mac_managed_pm = true; phy_attached_info(phydev); return 0; -- 2.35.1