Received: by 10.192.165.156 with SMTP id m28csp2017597imm; Thu, 12 Apr 2018 07:19:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx49dwc/aW7u66wm6R3x1EKAeiHnnP0SwPpthyQT6k9bmahhP1HJ4gLKxzc5XdNXLi0107Hhm X-Received: by 2002:a17:902:8f8b:: with SMTP id z11-v6mr1305507plo.8.1523542794879; Thu, 12 Apr 2018 07:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523542794; cv=none; d=google.com; s=arc-20160816; b=M1qtPfbgAcISy7AYsufmVJQ+Q6m27E7ZwM2HcauHRxnj/x/EMFFAhZEwvr3PyzYaTS Pp+ke7hGpiTzNMfeSFR20wrcVzHRj1HAiSCA1A1MkqdumlvcrRuV0ghtNI5NooHaAlug 4t3u25z1ew4Kmi+1VmyNE+CrMI8f6svyy8dwaoEUg6wv6j2zilglYBiRCDzmFyCavBp0 UXaq7aO7O7nhWeaVoD2B6oflSZSMWpzgYJ7hoXiWPivZYmkSD0ZuBrAvTi6SlJIoY/iP w+Sk45pr+pNTMcnKjZBiWTF9LQLWyL92V/xf4lzxY9VhNgiKl4QMBZGPzBGnmbB+6mSu 3xag== 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=BKnA5Km1Jo0M3PEkZBPHnUJkL/mRuikC6zGMPil8d+c=; b=bzkBeKcscDC7pc6yw8hkeeg27+0FMaIpVWOtdPKGgJsuDgC6GTEwG1m6jiYyxifXDE 1z7luFieNziJWyuPsB1kq4EmvT4nvAAZRh+zlnfLpO2qOfdSqxRyvlsRnzNpjV8TFHfn 7Tgg7DPjmvMEZcNKXaMY8ou+wpyMMXA0PXATF5XW7qSN0ftcQ9hrUJlu0UO1obtWKaIo e5m/bx8tZ6jxT6jl0lgRlIcIUciZrodnziUy5FLuV5/XMhrozFlqzp1lOMnwP9KL7lZg RXOQ181vQEcUVVvELGUUwR/Ve+Vr8udCRA6ctXAT/Oxb7SMcN4mc0Ig91krLrcG7Wb+f RvtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Co1TI5jR; 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 p8-v6si3510415plo.295.2018.04.12.07.19.18; Thu, 12 Apr 2018 07:19:54 -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=Co1TI5jR; 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 S1753084AbeDLOQl (ORCPT + 99 others); Thu, 12 Apr 2018 10:16:41 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56588 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753027AbeDLOQj (ORCPT ); Thu, 12 Apr 2018 10:16:39 -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=BKnA5Km1Jo0M3PEkZBPHnUJkL/mRuikC6zGMPil8d+c=; b=Co1TI5jRJiPhQiqupAbwHCpMp0M3mFPDk5D1MwodxDvEQ0zEUjudMEK33sXj3XBEz2a2CF1CSvUE30tHJsK60Id+YWMvaZIb5BA05x+j1IJsp/dvHvnHu0lThoBiOh9fyX/fYrF5AhdESw3Rjy4FFAluLNEfFNSE/eFXaRFz87M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f6d1a-0008O7-7m; Thu, 12 Apr 2018 16:16:30 +0200 Date: Thu, 12 Apr 2018 16:16:30 +0200 From: Andrew Lunn To: Phil Elwell Cc: Woojung Huh , Microchip Linux Driver Support , Rob Herring , Mark Rutland , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Linus Walleij , Andrew Morton , Randy Dunlap , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 2/4] lan78xx: Read initial EEE setting from Device Tree Message-ID: <20180412141630.GM28963@lunn.ch> References: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> <1523541336-145953-3-git-send-email-phil@raspberrypi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523541336-145953-3-git-send-email-phil@raspberrypi.org> 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 12, 2018 at 02:55:34PM +0100, Phil Elwell wrote: > Add two new Device Tree properties: > * microchip,eee-enabled - a boolean to enable EEE > * microchip,tx-lpi-timer - time in microseconds to wait after TX goes > idle before entering the low power state > (default 600) Hi Phil This looks wrong. What should happen is that the MAC driver calls phy_init_eee() to find out if the PHY supports EEE. There should be no need to look in device tree. Andrew