Received: by 10.223.185.116 with SMTP id b49csp1071060wrg; Fri, 23 Feb 2018 11:23:20 -0800 (PST) X-Google-Smtp-Source: AH8x227ffOljWmgIhvPjc20n0XZZlxDHmajhKHhzCSOGIJo3dg4yUwAM9hvpfqvYS/U//t9AyOJl X-Received: by 2002:a17:902:d806:: with SMTP id a6-v6mr2633678plz.274.1519413800091; Fri, 23 Feb 2018 11:23:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519413800; cv=none; d=google.com; s=arc-20160816; b=Cgb/JDdQTzFt9Uq/XAvgZ71v5G/lHzYFpPl8eSjVX1j9mq8BJ3ocucltTAJnlq3Dd7 VK6CW50uKJqxb8LVWdgcbiPVaQLJoDutAYBrPj0fJuZhFmtbDVS3nG0CLhc1QmSlfVTn xYlDits+JzPlktrDQDYAmaVF5NtFSqBTuhis6ml6JOFv/Q7HlQbM5Nf/Sg14plQinuAA 5K3Qub9y7vMN+HSCSaKCrrZx2NehskbQn/q2lw07P0haHBDV8+fB4G4vegBAwet4JAFu 3SuYe3TYI7RlyP/kcFpq/Bi5mFI2exXVDs7qpAGaey8EtLmezfXD5BORY9XikSeZ5Td9 c4YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jxXe3phS+Mcy2m1z5K5p2ItSWGSPVxaTS61IBbci7Ok=; b=Bm38Lwg4Y7xDtQYIRy4eUutoJ+LRVA7g7oOes/4a0vSfDyKkzwR5IG0jtj/NZc7FXa dRg6m7jhpUtEgQN2stOODK9VcAF5zlUfWItuY86+Usmdkc0JpSW8SSB2MCNBkWG1Qd1Q w4QLeCVIof1edb0Bc/h0WMw5n81s1jF185s8h1qhvjsCPWr3YsARvXjD7/gQEveqP+FF RTwQoTmyNsWVmJa0nc53svqwVLEweptrUB0Bgv5ZvqJWBLggElyglGuy0gNHAMo3BM4I zKFw+5DaTyaHd+KXWDCn2t8U9iP2x0z2TFoV2mG/je12QtNi+ZMjL/b3dAb8YvPOs1rM 1imw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k128si1862137pgc.609.2018.02.23.11.23.05; Fri, 23 Feb 2018 11:23:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964810AbeBWSxp (ORCPT + 99 others); Fri, 23 Feb 2018 13:53:45 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47450 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964785AbeBWSxl (ORCPT ); Fri, 23 Feb 2018 13:53:41 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8E7E610BE; Fri, 23 Feb 2018 18:53:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , Russell King , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 097/159] phylink: ensure we take the link down when phylink_stop() is called Date: Fri, 23 Feb 2018 19:26:45 +0100 Message-Id: <20180223170755.230232109@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170743.086611315@linuxfoundation.org> References: <20180223170743.086611315@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Russell King [ Upstream commit 2012b7d6b2868c532f22d9172c8b24611637eb48 ] Ensure that we tell the MAC to take the link down when phylink_stop() is called, and that this completes prior to phylink_stop() returns. Reported-by: Florian Fainelli Tested-by: Florian Fainelli Signed-off-by: Russell King Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/phylink.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -772,6 +772,7 @@ void phylink_stop(struct phylink *pl) sfp_upstream_stop(pl->sfp_bus); set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state); + queue_work(system_power_efficient_wq, &pl->resolve); flush_work(&pl->resolve); } EXPORT_SYMBOL_GPL(phylink_stop);