Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1947020imu; Wed, 28 Nov 2018 18:44:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/VzMqoblXO/e/PIAtKoM6Cs7yE8xKlWgX1wdgYmI8HxkToifCSPXa4FAtwUSfFLNYEUGpoY X-Received: by 2002:a17:902:7481:: with SMTP id h1mr39776919pll.341.1543459448582; Wed, 28 Nov 2018 18:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543459448; cv=none; d=google.com; s=arc-20160816; b=wGFbkHrhrKWhae1YPGGsYBUJA8BZtG+OTmECiT+KuvvbLGwBDij5N+Zz8vUmVkSS7D XeBNMO3uBeKWsGE8VVzGDts3Gw20Gq3/MJcezTzU/LkkEfn7uHiTMBYf4vzQ/5o5T7fR os+kxLccYj2Z0TGp9KCI1Rr1UK2V0FP/njX5PAzP67Fj3N+c/AyskyNCzYqwcik5cV0Q DH6Xu/bs/jJBkOcm2GVe6OcdyXo0WCreMUQH4crijbFDzjz2dAI4SwiwoD1aywJpz3Ef Ue35E0ta+ZBeqcIKCkIJu1wArdK4eSEHrNdx81aG+7hA+HdBdms/Mk0IuGLIrQD30ZRI suag== 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; bh=IaREirnIWjEsEDdg8DNRbadVs1/HXGD9LzYebql2mcI=; b=Dh4peo58bcEzJfZUIplB+o883okgvsMCchvLni0AFDqee5ZXHnR1vbOkO43HFJ+hIL +92TMJ3RIQKyTogflB2I/WoFw88hHBsYax3ke3OfzdrEbbV+sxmBUXU5sO807UDuiffW vWA6ewU5wQl8+CcBw8h5AWOaiV33xgMkunE9T4Z/oDJikUXw77zjwMLCgF10ySVhQYyn qpRDFTd65npCoAQzKqyQGEK6lgnfEe+XjYySX63oqmwEbi3nhtGkCLjsLLZhaHIkpwxO l5qF5m2FAedDgVUtSNgwJcABe/JYOdOmhOGto2g5S1sWDwYMqgivi0EWDth+MScmAnE3 vZ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vNEdYoKF; 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 z11si652844pfg.107.2018.11.28.18.43.53; Wed, 28 Nov 2018 18:44:08 -0800 (PST) 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=vNEdYoKF; 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 S1727366AbeK2Ncx (ORCPT + 99 others); Thu, 29 Nov 2018 08:32:53 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:53697 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbeK2Ncx (ORCPT ); Thu, 29 Nov 2018 08:32:53 -0500 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=IaREirnIWjEsEDdg8DNRbadVs1/HXGD9LzYebql2mcI=; b=vNEdYoKFBEFDYGkDjM1TM3N8uyQc7sUYqKw+N/bt4JoFZjsp5qgraI8PystQWQdy5jjGxvavbBU7iFUPP9XiDmIDRyc/5fgKH4FVI9UrZSE1gw5/mbQbOrEiSzsWkc2qRcuyHMrKWlxENpSbnqmMPDxPny+dpV0J0CwU3E1o/VQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gSC4Z-0003dH-0g; Thu, 29 Nov 2018 03:28:59 +0100 Date: Thu, 29 Nov 2018 03:28:58 +0100 From: Andrew Lunn To: Palmer Dabbelt Cc: f.fainelli@gmail.com, sergei.shtylyov@cogentembedded.com, atish.patra@wdc.com, schwab@suse.de, nicolas.ferre@microchip.com, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, hkallweit1@gmail.com Subject: Re: macb: probe of 10090000.ethernet failed with error -110 Message-ID: <20181129022858.GG5037@lunn.ch> References: <2e17bba6-d932-37b2-5dca-0963fc50f5e6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > This is all fine as long as Linux doesn't go and reset the phy again. Until > bafbdd527d56 ("phylib: Add device reset GPIO support") was the case. After > that commit I believe phylib is resetting the phy while attempting to enter > unmanaged mode, which is now allowed in this particular chip. > > Since it appears the phy is not usually described by the device tree but is > instead discovered by probing a MII-based ID register, it seems the best > place to put this is within the phy driver itself. I find it's usually best > to describe things with code, so I hacked up something like Talking to Florian, i was under the impression that you could not even discover the device when its reset state what wrong. You could not read the ID registers. Your suggested change assumed you can discover the device. Is this true? Thanks Andrew