From nobody Wed Apr 8 06:41:34 2026 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 6749DFA373D for ; Mon, 24 Oct 2022 07:23:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbiJXHXV (ORCPT ); Mon, 24 Oct 2022 03:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbiJXHXT (ORCPT ); Mon, 24 Oct 2022 03:23:19 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D276E5C9CE; Mon, 24 Oct 2022 00:23:17 -0700 (PDT) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 24 Oct 2022 16:23:17 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 09E2A20584CE; Mon, 24 Oct 2022 16:23:17 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 24 Oct 2022 16:23:17 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id B63E5B62A4; Mon, 24 Oct 2022 16:23:16 +0900 (JST) From: Kunihiko Hayashi To: Heiner Kallweit , "David S . Miller " , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH net-next] net: ethernet: ave: Remove duplicate phy_resume() calls Date: Mon, 24 Oct 2022 16:23:14 +0900 Message-Id: <20221024072314.24969-1-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" ave_open() in ave_resume() executes __phy_resume() via phy_start(), so no need to call phy_resume() explicitly. Remove it. Signed-off-by: Kunihiko Hayashi --- drivers/net/ethernet/socionext/sni_ave.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/socionext/sni_ave.c b/drivers/net/etherne= t/socionext/sni_ave.c index d2c6a5dfdc0e..c6a6c9ed5365 100644 --- a/drivers/net/ethernet/socionext/sni_ave.c +++ b/drivers/net/ethernet/socionext/sni_ave.c @@ -1766,12 +1766,6 @@ static int ave_resume(struct device *dev) wol.wolopts =3D priv->wolopts; __ave_ethtool_set_wol(ndev, &wol); =20 - if (ndev->phydev) { - ret =3D phy_resume(ndev->phydev); - if (ret) - return ret; - } - if (netif_running(ndev)) { ret =3D ave_open(ndev); netif_device_attach(ndev); --=20 2.25.1