Received: by 10.213.65.68 with SMTP id h4csp3824237imn; Tue, 10 Apr 2018 05:22:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49O9YPdic1dw/vlXGLN2QTRuzKDWQF9x3dc8n10kTCS5gIZq+rx1KHf00kaPXjDAQUBQ0OO X-Received: by 10.99.56.83 with SMTP id h19mr145670pgn.230.1523362947520; Tue, 10 Apr 2018 05:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523362947; cv=none; d=google.com; s=arc-20160816; b=BaDyNX5mQa2Du7pmhaabe2Pn0bPla65pp/T0SV0LbaclC2/D4MwXGhCKcKdQFUaNvb AcYPYuUePgUfC2OyblFanj2l2a+uSQSNBK5XDmgh1/7LG+uZlAiI4brloD7m8dMa0ewj GMBQ16cGI3/aUQFbOuyk80TraiGeTi1a6vk2jrTUKxDtWP++G/DU7l+TzT4k5oyk95SD 0H8lWOAhWO+sVv2zQ331MMoQii8d5yaj48nZ+tYc26zXMtSSkklytvo5LTjkrIOcAmWR lcoMbvgqgMdFT77zqq8clQFFFKqq5Ya6/PoQDrwY+ZD0sSnkL+VwWdV67lZBiKTIm4kv xeRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature:arc-authentication-results; bh=OZROzfsFo+DGy+TKxfTy4Alp6oFa/44THnVZJa8vWNA=; b=dFzbP0kit03LBwuaJ1iJ15Fug/nacs5VGC+1hcdwbATuBvovh0DV0d7r4XYUVBZR7B abVysgIFTsEo2sOpytub5DFtpWoMWhdD7beRxF4SXLKuVBdwifQZtZeBGCSTIk8gnAy3 svmUoDz+rmYpyXpeAwSGPPOD8kn2FaV+/YIufOEF4dE1j2z3k7VRwyC8peGDzAxfTEQw RfyHmEDLcVJmbYjFI5idqx8bkXZ70RtH8swItPuCKEqP/MVDTC2MkMVP8NHhIxZFEx+L FiNwS7CVHCUOgjiaan+uowqzU9H7bdOkDFpxlDSBci6oHBGgn+jFMRVbnnRAGLiOL8V8 aQGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=FPi5QlPe; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=sl9v3pQS; 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 i13si1729382pgs.638.2018.04.10.05.21.50; Tue, 10 Apr 2018 05:22: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=fail header.i=@raspberrypi.org header.s=pp header.b=FPi5QlPe; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=sl9v3pQS; 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 S1752751AbeDJMSh (ORCPT + 99 others); Tue, 10 Apr 2018 08:18:37 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:38190 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541AbeDJMSg (ORCPT ); Tue, 10 Apr 2018 08:18:36 -0400 Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3ACHkA0024685 for ; Tue, 10 Apr 2018 13:18:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : cc : subject : date : message-id; s=pp; bh=OZROzfsFo+DGy+TKxfTy4Alp6oFa/44THnVZJa8vWNA=; b=FPi5QlPefR+SPKbwickGiWFSFpZiRp3ZSCrGTMVc/E6G2X8dC9fh/kxY1A5b9nS1gOex cRAc88tR3oh4+fB7Hn4mDEqKkcWy+80J2JIuWWpW6fswZO9/5E2d2Fpveszee3EALHpE fHLAyc0oBExqefD7r6sxp/dA5ubMIm1wLYeUahJ7LASuC54fGbmttbBdTzd5ldxc1WP/ c5L1237zeTw0foSc5IWLreun6+fYwWoI/Mgr/QEp1dhJF+UGo+kP1+s7PCVr5askg1WW 6GDwZIFG0yiu9CSiKBgoWeJJq/8cyZcNnBvZtDQBa9i8bfo2pkbbXdKeL3TuAJuuSFuV qQ== Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by mx07-00252a01.pphosted.com with ESMTP id 2h6s4k9gk6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Tue, 10 Apr 2018 13:18:34 +0100 Received: by mail-wm0-f70.google.com with SMTP id v189so5822610wmf.4 for ; Tue, 10 Apr 2018 05:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=OZROzfsFo+DGy+TKxfTy4Alp6oFa/44THnVZJa8vWNA=; b=sl9v3pQS4gtAkiUK1DD5mxaBWvqIk1MUUgHVQk+JqcvK9Tg8d1zf9A+qcuri1VA73R Q4qrjROGP9XQEnqY1XlWykLuq4plmWrCxsn4hwHwahiPil96c2of1MhLr80k/x8m22/P y+VdYUuEKAvGowGbPC4TmYhRMFJKYT09zSFF2whANnO4B5pvtMR73Ra8Mc5uN90paT84 3N55kmCqiH+Yawm/I93TM/ghif3a9CSoITHIXMAw2X4pO05zimMGaG91r73NyPScr1l2 1IHoYZxogooLPvQa6NqrCNsOmXCHIKHjeOs6LcoGTfl+TEKZaLJDtJl3s7Mc62MJKarF 7XRg== 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; bh=OZROzfsFo+DGy+TKxfTy4Alp6oFa/44THnVZJa8vWNA=; b=iqTCGkUMBHU7VcGwqqfqtHaVEVoCh0c1NIShlPkHANTzHbP8WZ2FbeYr1BgN+ZIhqv 0++tfCdXMbQ1ignCsdYzWS5Z+45dFkJM4oXGaAWNxW86JCkFTStx87NyYTSQr9UTwVQ2 lVPdrmC3OW1AD4takjw7ZeyherP2K9s1BA9b6GsdcVpFc/jr2tdg78sNBTyW1VhYpzo/ p5X0rOuNX/BeEOkHXTI8ixVk94LNEsI6V/iw3AhXo1bwC6acQ+2T+PK4GwtnXdtegGcT NPjfqSrPGgQOGQR+ur5oga+JFf+jxtTFqSZC3gmXU6K1MksANAS2mQhcMoUp4qgB64Io TqyA== X-Gm-Message-State: ALQs6tBjhQ3LUMiai55vYrlvCaqpy9THvYvavBpbvRmBnaUWo7TC9LQ/ rc8C/WPNc/ZCQzAoekelKmfymyy4qguAc8O/KBPfbmnc8kRNtqAczricb0x65ZoV51c7tagj8EX Y2mhBkbtpNJhRacERyPK0oWjQ X-Received: by 10.28.63.136 with SMTP id m130mr1624151wma.69.1523362714148; Tue, 10 Apr 2018 05:18:34 -0700 (PDT) X-Received: by 10.28.63.136 with SMTP id m130mr1624138wma.69.1523362713959; Tue, 10 Apr 2018 05:18:33 -0700 (PDT) Received: from buildbot.pitowers.org ([2a00:2381:fdf7:14:49fb:e4ec:7964:c768]) by smtp.gmail.com with ESMTPSA id p25sm1106402wmi.14.2018.04.10.05.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Apr 2018 05:18:33 -0700 (PDT) From: Phil Elwell To: Woojung Huh , Microchip Linux Driver Support , Alexander Graf , Thomas Bogendoerfer , netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Phil Elwell Subject: [PATCH] lan78xx: Don't reset the interface on open Date: Tue, 10 Apr 2018 13:18:25 +0100 Message-Id: <1523362705-30032-1-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-10_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 aff105f..108f04a 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2514,10 +2514,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.7.4