Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1933808ima; Thu, 25 Oct 2018 07:14:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5dxiI1/7s99QC7Jaii11JnmFuRCLL1wGv1XocvmyPyQ1VlqPY6Kg7cAe56Vzmrb/cDRdoyR X-Received: by 2002:a65:664e:: with SMTP id z14-v6mr1569838pgv.347.1540476867427; Thu, 25 Oct 2018 07:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540476867; cv=none; d=google.com; s=arc-20160816; b=S8/oXt35s+ClRybZi2+Y3/8cW+aUWYZ3biDEM+Fu0+Gfmu7BTCLEfvK/mNW4s+qLer FLh6jjlBWJsiFoBckps317VR4zopLbObnDxEZO9VZ9S9pZ6DEEq/YI0fULiqW0QeiTh+ XDZfkumLFSdGbN7C7RIqLrKHQ9ujnWPJQtMKrzDBgae0SmhPLLXATNQOQzMOferQ1R2h M3je29iDSmZQZVnNauUkdJW4yH7IGnKNtwxs2jZUqyIDBHZpYh4awAZBWTqwRjYFgn3O AIA7u9mecsuYJxk9QG28Zu6YNj5JyXkHXfY/6sUFDLpU1aswusJ4DSfFtn1TizOlw9RH 4MuA== 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; bh=5amBGU2uebu9YC3Eoj+wMhea29EtjmOR28QigK0WuHw=; b=k8c9iMGJKjv4H0uCLAyStcZnuPWjCzdcIx5Oo0UmnIZXrxE9gFqxamtd3SnvDBM51+ 0qRe3B6vgd0K6xTC7D61rvFe7bT+yd0q3Rr/y37xZSJSGmKjEci55346vw5dlhv9vAZo Wdof2mLnTUHv+Ti4WMqh471364NUmxAjjd6bLYflcrLSbKzkb/2cpnAOzUtFC69+EfrO 5fqP5gRs57e1BT812TC2RPmBPRc4oHpV5fov8+oAS2+14Na5RPmFSxL880zzKhEJa/VB jfjwiEvulTW0IPc0GIEemAz/3ZHu/KfKROrsrtEecmL7n1LtnKy/4OUOoUlPKrNnuOv1 ifUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xBBdGp0t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba7-v6si7971694plb.8.2018.10.25.07.14.06; Thu, 25 Oct 2018 07:14:27 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=xBBdGp0t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728330AbeJYWoj (ORCPT + 99 others); Thu, 25 Oct 2018 18:44:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728299AbeJYWoi (ORCPT ); Thu, 25 Oct 2018 18:44:38 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D05E220869; Thu, 25 Oct 2018 14:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476702; bh=/eFXsTEA2fxE0zFLjCH0fQoAEkEPbIMyq2sWv2ZakH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xBBdGp0t4BAOeHtx0nW07e4VWyLeAH/ncg8xwsh2aGI3ZWL/WgigKVinqJVRzK2xz TpjT85RtSuxLcvvsyzl2VgdBffjaJHlry7VsU7fc3lLdq/a+oiuNIxlKxmCmhFAOtX 44qyyn67sN9eW2T3azmfjjL6NqlvqbXhXoMjyKvU= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Phil Elwell , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.14 34/46] lan78xx: Don't reset the interface on open Date: Thu, 25 Oct 2018 10:10:41 -0400 Message-Id: <20181025141053.213330-34-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phil Elwell [ Upstream commit 47b998653fea4ef69e3e89574956386f262bccca ] Commit 92571a1aae40 ("lan78xx: Connect phy early") moves the PHY initialisation into lan78xx_probe, but lan78xx_open subsequently calls lan78xx_reset. As well as forcing a second round of link negotiation, this reset frequently prevents the phy interrupt from being generated (even though the link is up), rendering the interface unusable. Fix this issue by removing the lan78xx_reset call from lan78xx_open. Fixes: 92571a1aae40 ("lan78xx: Connect phy early") Signed-off-by: Phil Elwell Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/lan78xx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 9e3f632e22f1..a090112880fd 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2517,10 +2517,6 @@ static int lan78xx_open(struct net_device *net) if (ret < 0) goto out; - ret = lan78xx_reset(dev); - if (ret < 0) - goto done; - phy_start(net->phydev); netif_dbg(dev, ifup, dev->net, "phy initialised successfully"); -- 2.17.1