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 X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41B56C47259 for ; Mon, 4 May 2020 13:46:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 224D521582 for ; Mon, 4 May 2020 13:46:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="H9WOsTn0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728602AbgEDNqr (ORCPT ); Mon, 4 May 2020 09:46:47 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:36514 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728528AbgEDNqn (ORCPT ); Mon, 4 May 2020 09:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1588600003; x=1620136003; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=c3iuhkwHDW+6rW4ZzAEBKYMLJ0sc8jLJEmEwsrWvUFs=; b=H9WOsTn0K4dKZ+io3mEqg47NNAxXVd8EnM1bsOc5uPugfFtfeYugzQq2 UYOciVriPnYKF4b6JeSPOIygGxk6CtwjOat2jA32E3lXcutPWp8B/PGYC GhwSG1VDEvZiduoXpkl5R6eqJ3LNl++V0I1FD+mnQORclfCQQU6I8+rwN gkufiEO+TgdNr8nvuhDxYiBLgxznvDdn/adozkh0F1AIejqUFc0F6GdSL Yg5+1f6r/Dn6qe531jSjX4XSY70ymDswBV+8YC0LqYkebqKQm4jxrXIn/ ImPFjlnOG5EJ1nniIoA+QkJmCojvbnaws0ZT/Bj4vMg67YPxw6aXAaE7A Q==; IronPort-SDR: qByEXUbz+XJu7zWYLrooIYhzLlJmc87a2ewZUokCHS5HEddGKdDpE2W7gODtBNCTltx0Q0yiVf ZScTbvdSukfaShDaFP+cBcost0Jduqg5aOxlJc18rGx1U0uwZBldTWg758tSp/b2Kta86DhQGG 42GoMey4Fqqt4T1Jf+qwiOv3+JdO0HBngzngBQjVyvaZ+1VPthx8R3oMnSQT6v2af+vVGw+NZB F4anYAfmu+MIiX7FSByadjD4UOa/R3C01wCcHQ1OPIQX5pSUrTG/luCnfvAtF9GrTOh0ykXDLl 03c= X-IronPort-AV: E=Sophos;i="5.73,352,1583218800"; d="scan'208";a="72332643" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 May 2020 06:46:43 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 4 May 2020 06:46:43 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Mon, 4 May 2020 06:46:39 -0700 From: To: , , "Claudiu Beznea" , CC: , "David S. Miller" , Alexandre Belloni , , , , , , "Nicolas Ferre" Subject: [PATCH v3 4/7] net: macb: fix macb_suspend() by removing call to netif_carrier_off() Date: Mon, 4 May 2020 15:44:19 +0200 Message-ID: <2b377e5705ced4b0171e07642a891f2416b94945.1588597759.git.nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Ferre As we now use the phylink call to phylink_stop() in the non-WoL path, there is no need for this call to netif_carrier_off() anymore. It can disturb the underlying phylink FSM. Fixes: 7897b071ac3b ("net: macb: convert to phylink") Cc: Claudiu Beznea Cc: Harini Katakam Cc: Antoine Tenart Reviewed-by: Florian Fainelli Signed-off-by: Nicolas Ferre --- Changes in v2: - new in v2 serries drivers/net/ethernet/cadence/macb_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index b17a33c60cd4..72b8983a763a 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4562,7 +4562,6 @@ static int __maybe_unused macb_suspend(struct device *dev) bp->pm_data.scrt2 = gem_readl_n(bp, ETHT, SCRT2_ETHT); } - netif_carrier_off(netdev); if (bp->ptp_info) bp->ptp_info->ptp_remove(netdev); pm_runtime_force_suspend(dev); -- 2.26.2