Received: by 10.213.65.68 with SMTP id h4csp1305819imn; Wed, 14 Mar 2018 16:26:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELuOeoqiKQSlRBR/QPdcinWCZlxKlGAYH6aPbzeEiyW94kRuuxr01eAtJ8BD2HurfvzYTRhg X-Received: by 2002:a17:902:9:: with SMTP id 9-v6mr5915946pla.42.1521070018672; Wed, 14 Mar 2018 16:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521070018; cv=none; d=google.com; s=arc-20160816; b=nXgdZieyssoPlLTpunQBrRf1DhwtkX9lav+8yDRPjpzWHWN/T/CM/z7NxmKdWx7QwR 8y6lGErTTZuvnimakLtXeTlF2YG6gFDGFmCXah4oT8CbJ68O/5fGh/EIBLIDsL/9TLsp Uar+DMCQ2Ccv4jV0TCk0mN4UsHHUc5x+r7cqzNSpEO9E/wcvIDpYtybRQGKdwNMZirwp INgluNkGbPCFAgp24fpwXhDgJG/BuLVP5Fp0pjVHrSdTdIsDtoIsvc9nPm1MwPtEmg9z JOYwxiyp19OTXtiNkj/tXMCYstNlBgY901wEW7gJr99jN/8VwMI6QxMx8Wm16WHi121s ILNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=1y08cKar10f/xg99UYzuUD50XSe/5H6qljzkaDWSSgY=; b=RF03MEhrweUoku2HUJqR9VMuT8Cwroj8GeXA3kv9lfMoqKKL6qUz7iwTQJCmZGmQhb XslAGzbHJZMOWqQckIiWQGI3Cc3mpiHDyzE0H5BujbiLx5vx9y5I+/SJSEz8K6KUl4k6 rHnKTa34JelyMDVmhENclQbAKqSwVa9yA5G4Eu1gOj6MtwzNCFfNjChrppuLKYYoMtWS BcVJXc8pYXGNvJb1lEAK7t7OwzetMTKR5mVWh4R+qs7iD/A6C9ojtuXO9g6g6wzcdlgQ k2PLfEL5N6zIKUCSzx2QwbxV27n6IrglDSNX+6st1oTy8y6JvjLpnI6YyzNxBtgVwP51 sICA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZqdM0nJH; 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 z124si2515386pgb.677.2018.03.14.16.26.44; Wed, 14 Mar 2018 16:26:58 -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=@lunn.ch header.s=20171124 header.b=ZqdM0nJH; 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 S1751714AbeCNXZZ (ORCPT + 99 others); Wed, 14 Mar 2018 19:25:25 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58123 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357AbeCNXZY (ORCPT ); Wed, 14 Mar 2018 19:25:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=1y08cKar10f/xg99UYzuUD50XSe/5H6qljzkaDWSSgY=; b=ZqdM0nJHhmBT0xa+QL+q84xtpcPN0iJ2JQznxjueGZrfEarwDf2RL1o5xWAYvWAibqrUdG2gouKFSZpyo/+JK0q7inrNwHXvPE0tTw2Gl3n4iprm0o/TvXweyu8snxVhvVNk4eQa2j+L+Wqa7j3DQ+8uOGre8epB+sLmLkEA9ZQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1ewFlo-0004if-JD; Thu, 15 Mar 2018 00:25:20 +0100 Date: Thu, 15 Mar 2018 00:25:20 +0100 From: Andrew Lunn To: Alexander Graf Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Bogendoerfer , Phil Elwell Subject: Re: [PATCH] lan78xx: Connect phy early Message-ID: <20180314232520.GB16379@lunn.ch> References: <20180314145456.69029-1-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180314145456.69029-1-agraf@suse.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -2082,8 +2082,6 @@ static int lan78xx_phy_init(struct lan78xx_net *dev) > > dev->fc_autoneg = phydev->autoneg; > > - phy_start(phydev); > - > netif_dbg(dev, ifup, dev->net, "phy initialised successfully"); > > return 0; > @@ -2512,9 +2510,7 @@ static int lan78xx_open(struct net_device *net) > if (ret < 0) > goto done; > > - ret = lan78xx_phy_init(dev); > - if (ret < 0) > - goto done; > + phy_start(net->phydev); Should the debug message be moved as well? Andrew