From patchwork Fri Jun 30 05:46:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 106676 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1904923qge; Thu, 29 Jun 2017 22:47:41 -0700 (PDT) X-Received: by 10.84.224.199 with SMTP id k7mr21748347pln.207.1498801661115; Thu, 29 Jun 2017 22:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498801661; cv=none; d=google.com; s=arc-20160816; b=hrp+FHEleGKK4OjTLyPvguZPAQnfByrle+pq/sGjeberhDlZ28MHr0diMynscNcrF7 G0Ja2T5uaonZcNo4Qq0E44uA1y+p1mssWgeJhJhWTx+qXYQwsXFJiW4Tn1pgjlhnrpV6 FfUEvxzFgXZaOrlR/ljF2A/4aaIJ0nhDwismc40fMMts4xiErYzaPJuFYWlg7vqPrFQ4 loLLXdhElso4S52b8d59X1CmV6W0P2s2pjc3eCVKZTRbAWB/p9nfpv0CFeOlXA5y+Llu 58l3oR0lvqiHQ+0x20kV0Mb0lgiZ4hCLTlg5GKhXgWEXqWzowxI7oKDtA+MIo9OcaZBU wgqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=42RpSaEvunaq+2xHeGGIHCa6HiRtly5UAtfz4Bac/sI=; b=Z9wkplzW6EHv/680Hed4K84pJ4MlsFc6pnqyMoEE4EAHvhmd+05zpD6x+Zl9bpfgC0 c2vFOkOmf0XW264c1EUDUZFpZk5YGavkWZUA0FqzjZS8YRn/SUC2lZvJCPoRnhYOqoPg +/CHza2B1W25SxiXyANb9Rj8cMlXSeJQOWu72SQa9k0t2ZuyxWD+dmmlzjjdS5rOKyiU jlrm61b9+zzWvPZOEuDOwgOIaAcliipQ8XzIymRJiYrBzeDFjn7v8BnTGEQj7U1X3aYX SLXbYA+EYKoNJDTI6XzVS0+seg4HZPfDJsa1WzuBP50QuI/J/LqhTJcU+vlTMVGl+DWD TEhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=NiZ5ZhJI; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si4519277pgj.463.2017.06.29.22.47.40; Thu, 29 Jun 2017 22:47:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=NiZ5ZhJI; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752087AbdF3Frj (ORCPT + 6 others); Fri, 30 Jun 2017 01:47:39 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:33463 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973AbdF3Fri (ORCPT ); Fri, 30 Jun 2017 01:47:38 -0400 Received: by mail-pg0-f52.google.com with SMTP id f127so58495590pgc.0 for ; Thu, 29 Jun 2017 22:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=42RpSaEvunaq+2xHeGGIHCa6HiRtly5UAtfz4Bac/sI=; b=NiZ5ZhJIrSBIbLJSf2jBBLcAkF+QCVhQKAcrva8tHwcSomfNIpe5F4KZ71rYkX5y+i J334WhiKxmct3AmrqbMbgl/HK0YIVh/Q9Jq+NM6LHUGOcmnq3eHVcMMSaLzgPUH0BLdZ nbDTxyFhFIUg8WcrYAhoHQofrqSkAuns1fwXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=42RpSaEvunaq+2xHeGGIHCa6HiRtly5UAtfz4Bac/sI=; b=tMjClZoYaEvHs/AuD5nC+jOLdA5WoCXQ3M940mRPlImDzbBQ6gYduFsrMyL02hPDXi JZe2ZNklyfZtU8LgfjJiD7AqWWk8MufxJ+WZC5+5LH0GqFi0GlJ4TJMUvD1SbqMfXMuJ snI5vbljsVryrZpM2gAdvy390YKsrW5nLdQx3e3J9XdmQ/T6S21oqD+1n0nRNDKeQAk5 /9o0RPdpk4Crd2ZHE4/Pxkb1rxSuFR5ZaW5foLJAvEJnxeZcmG8m0NXSi0C6xzmM11wC jvJafVr2sCmj6f2XFLouYFSWY+A+vvtpme3YVjrjG9DvgzYv/c2YNH7TKx5HOFJgOEXu ip8Q== X-Gm-Message-State: AKS2vOw0SuNSOdtKwpqQpPvsQ48VeFZkL8ZPkEWbsQhmnKxYmwxuejA7 u9TpBnqZVrFdRp7TVsgmBg== X-Received: by 10.99.101.132 with SMTP id z126mr18981463pgb.194.1498801652310; Thu, 29 Jun 2017 22:47:32 -0700 (PDT) Received: from localhost.localdomain ([106.51.129.233]) by smtp.gmail.com with ESMTPSA id a187sm11405550pgc.37.2017.06.29.22.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 22:47:30 -0700 (PDT) From: Amit Pundir To: Greg KH Cc: Stable , Florian Fainelli , "David S . Miller" Subject: [PATCH for-4.4 15/16] net: bgmac: Start transmit queue in bgmac_open Date: Fri, 30 Jun 2017 11:16:39 +0530 Message-Id: <1498801600-20896-16-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498801600-20896-1-git-send-email-amit.pundir@linaro.org> References: <1498801600-20896-1-git-send-email-amit.pundir@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Florian Fainelli commit c3897f2a69e54dd113fc9abd2daf872e5b495798 upstream. The driver does not start the transmit queue in bgmac_open(). If the queue was stopped prior to closing then re-opening the interface, we would never be able to wake-up again. Fixes: dd4544f05469 ("bgmac: driver for GBit MAC core on BCMA bus") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Amit Pundir --- drivers/net/ethernet/broadcom/bgmac.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c index 50de83bfcc2e..a01f62ec12bb 100644 --- a/drivers/net/ethernet/broadcom/bgmac.c +++ b/drivers/net/ethernet/broadcom/bgmac.c @@ -1309,6 +1309,9 @@ static int bgmac_open(struct net_device *net_dev) phy_start(bgmac->phy_dev); netif_carrier_on(net_dev); + + netif_start_queue(net_dev); + return 0; }