Received: by 10.213.65.68 with SMTP id h4csp2365146imn; Thu, 5 Apr 2018 13:42:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/X9kIrI2FRt926e58KKFMHZHMlvvFxiMT7bedNqX663l94mVadsp4qFJlEnrR4pMJ07Yhz X-Received: by 10.99.102.195 with SMTP id a186mr1553575pgc.207.1522960944712; Thu, 05 Apr 2018 13:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522960944; cv=none; d=google.com; s=arc-20160816; b=LB2KXxIIzn1nt0w+KWUuVNacw2iqcxGG2/4cPwFCfoJXzpBlZkF97fdnXw+J+G/2+m KOkXEjNrNJgW9rzzCgl4ju/lTcc50U9liVysqRthdUJBV7HDsOqjlzU8b4X4J0QfENla 0Yc/4+OrAB6QnnZyUeWllrMHAqLvgH+/g/KjH7z2A/UGXPymJ1kr9jXqzXNM+PvkgFgi Vj1/Ea+EomzITxKZ2VcYAvY9GbQHEtG9jH9/hMmGzj9grXV+IKHDhGybqi/7B1YoinVI UAGDc6oxa4+Iw3G0LetmlsYjrLP1vdoBIVdNpYAyeomea7V4alADub7nQC0m33oLi8Db SFDQ== 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=g4ERADKNFjtLDXz/di/1C8S/CO1ngqqilcSzyvD6g5E=; b=C4iknXkAz/Hb/cWnLsPEsRbv9WZSB6Gj7+xyGA6ygvxGJVjdT0lJvjaEQ5Z72/atVx pd9z+BgzV3Hp9rco6x3koGu/1G+W7WT2DQxPAVjmL57LmYpyZtZv41O47A7Y6ngcjY2C h9ruGf7FLlloAVK6jerLAHyLxGMWgFcjpWaF+mcHPejVS1IEWcHMHECyHPIixjr/Cq1i 5w7WlizBrR4UTQBChyLkPz0j6icNlFx6yu8tY+fpSW2XJRy8CDcuR48xqGPb1IO9D8jb MN/zvF1pe010uh9XvYTKiPYx26tk0azx3fgMMtMeAoUst4JZTncH40sGxfl0pCZQLS7A 9wyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TRLu49R7; 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 207si6696482pfz.108.2018.04.05.13.42.04; Thu, 05 Apr 2018 13:42:24 -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=TRLu49R7; 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 S1751443AbeDEUky (ORCPT + 99 others); Thu, 5 Apr 2018 16:40:54 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:52014 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbeDEUkw (ORCPT ); Thu, 5 Apr 2018 16:40:52 -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=g4ERADKNFjtLDXz/di/1C8S/CO1ngqqilcSzyvD6g5E=; b=TRLu49R7oDt7rmLQgvFXM+NOQqY7hXut8h8FBR2/sE69rf7R5W5N+nP8+K39aB5GYIeFeg2rwdZlb0ic4ESN1PPlnSQajT1xtXOvLJ3f+pkzUn2csXIX4bqWxnduAcDdp+upbnrjos69XVs83B6aec/Y56ZInJnBjP0J9ePcLww=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f4Bgf-0005oN-P8; Thu, 05 Apr 2018 22:40:49 +0200 Date: Thu, 5 Apr 2018 22:40:49 +0200 From: Andrew Lunn To: Esben Haabendal Cc: Florian Fainelli , Richard Cochran , "open list:PTP HARDWARE CLOCK SUPPORT" , open list , Rasmus Villemoes Subject: Re: [PATCH 2/2] net: phy: dp83640: Read strapped configuration settings Message-ID: <20180405204049.GD17495@lunn.ch> References: <20180405114424.8519-1-esben.haabendal@gmail.com> <20180405114424.8519-2-esben.haabendal@gmail.com> <95678797-bd17-ba3f-8a70-a00b4792a258@gmail.com> <87d0zdjszu.fsf@haabendal.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d0zdjszu.fsf@haabendal.dk> 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 On Thu, Apr 05, 2018 at 10:30:45PM +0200, Esben Haabendal wrote: > Florian Fainelli writes: > > > On 04/05/2018 04:44 AM, esben.haabendal@gmail.com wrote: > >> From: Esben Haabendal > >> > >> Read configration settings, to allow automatic forced speed/duplex setup > >> by hardware strapping. > > > > OK but why? What problem is this solving for you? > > It is ensuring that the PHY is configured according to the HW design. > If the HW design has set the strap configuration to fx. fixed 100 Mbit > full-duplex, this avoids Linux configuring it for auto-negotiation. Hi Esben Are you sure it contains the HW strapping? Is the driver hitting the PHY with a hard reset to make it go back to the strapping defaults? Or could it still contain whatever state the last boot of Linux, or maybe the bootloader, left the PHY in? Andrew