Received: by 10.213.65.68 with SMTP id h4csp3968820imn; Tue, 10 Apr 2018 07:20:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx48gFe8zd7+kECU3X4RiHw+9VQOVihD0eM+F/qE2BsU6i3OKUFFzaF+ULNpQ7ppnTc8+4XaI X-Received: by 10.98.247.15 with SMTP id h15mr521553pfi.165.1523370053930; Tue, 10 Apr 2018 07:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523370053; cv=none; d=google.com; s=arc-20160816; b=B6HMW6gLEU10K6cg+Yyw7N9nN9rEBqfp18JxA2ScSVB+TvtnC/UVAQyvVEgV1ZODTh vq9inxGQZ/9WwowgRAhVKJ5wm1kOvhKgWNekt5VTRurqe+rDjIUugq9l1l7fAHjKHBzw Je0wtxsMc/e3M1zG+SzFfE09QkoSRFT8jhLzSGF90cUr5Q0N3Qvkgp/GDE1I/zTDxomK Z51djmmuzJKZdwXQVdW2fjDF1JuzrJ+1f3B7z4mBdagZF+EVd06F70bQc9hMLBW/hc+f JtsPhI3jH7UDb94XABhCfqyPaGHPFirP4WnUhmZdOmcpwGxi7pprSzuP5xUFbzj9d55I EEeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from :arc-authentication-results; bh=ZwpksrNhM2FiRlRtawnzDrIxMYxuGQf0shGLhPlbsUg=; b=f0BnZ0tudh/Uo6P4Z/Ii3+Gf4gbB2bT3pUdfV0qAeBicyFAijuaix65BLpei6PixFa uv/jJ9k1aumem9S4bRkMTiYUactL1CtBQtATEYMDly3J9YbFBu/aU1a/xLuwt9ZihTnM J7mdyNc6fOWLoOkGzGesyLmvMrhpsDlDx845rUeCB2zr+qQFuMPSWEcQysWilZFCsCYO 1bow0ZMpq/IFlZcX1h2KswggiaLUvuTlRvrHkLwwgetePAEgyhYfLmXBVgmwlGJaQ3VJ er4WFAopK74FzSH3lnDVj04dkR98ro3DePEwcAJbPEqOVX5rfg9MGr1Hk6YJXUPJsOg/ IYwg== 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 e13-v6si2745436pln.361.2018.04.10.07.20.17; Tue, 10 Apr 2018 07:20:53 -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; 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 S1753754AbeDJOQ0 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Apr 2018 10:16:26 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:18984 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbeDJOQZ (ORCPT ); Tue, 10 Apr 2018 10:16:25 -0400 X-IronPort-AV: E=Sophos;i="5.48,432,1517900400"; d="scan'208";a="13124434" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Apr 2018 07:16:24 -0700 Received: from CHN-SV-EXMX03.mchp-main.com ([fe80::58f5:b949:4b1:3df4]) by CHN-SV-EXCH04.mchp-main.com ([::1]) with mapi id 14.03.0352.000; Tue, 10 Apr 2018 07:16:24 -0700 From: To: , , , , , , , Subject: RE: [PATCH] lan78xx: Don't reset the interface on open Thread-Topic: [PATCH] lan78xx: Don't reset the interface on open Thread-Index: AQHT0MYPbZtiT4HsgkyLpriGu/5z6qP6CNcQ Date: Tue, 10 Apr 2018 14:16:23 +0000 Message-ID: References: <1523362705-30032-1-git-send-email-phil@raspberrypi.org> In-Reply-To: <1523362705-30032-1-git-send-email-phil@raspberrypi.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.215.7] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Phil, for identifying the issues. > - ret = lan78xx_reset(dev); > - if (ret < 0) > - goto done; > - > phy_start(net->phydev); > > netif_dbg(dev, ifup, dev->net, "phy initialised successfully"); > -- You may need to start the interrupts before "phy_start" instead of suppressing call to "lan78xx_reset". + if (dev->domain_data.phyirq > 0) + phy_start_interrupts(dev->net->phydev); - Nisar