Received: by 10.192.165.156 with SMTP id m28csp2086033imm; Thu, 12 Apr 2018 08:22:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/mL37rT1XIJipLWQSFajIq/R/Ajpiq8Sl3plZrft/o/vmAXeoJPeLy5HsRTkfoiUYIT0vI X-Received: by 10.98.133.139 with SMTP id m11mr8007990pfk.49.1523546574943; Thu, 12 Apr 2018 08:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523546574; cv=none; d=google.com; s=arc-20160816; b=0q70GU+k7ERZF4U36qxyx8HmeEMlBildQpFp1LeOCboAj+k/DemDjrwaMD66h/muRJ BsWKB0cnpfGOzkLHVqLGJUb3k85g2UQirltS5mLpbbvrEJjdzoJN15QbuL3fFSsXz6yr TUsuIHJ9J2QXZ/lEvZkOSBrCQrdnTkt76kvxa8TtcOPZ2DOfcKJLH4t3XR1oOzXPiQJb /wSjLkjWnLTMJaX5OfNtagwT65B7a6LG5RpuUURCRAcHh39IQyNe9bS9pJYpTErqHwyh UW5eXPi+12ahew/z+rYQ6Fsz98k038nrlY6xlXGu3YbTtVaFAwOeaE2fFGXV6vgGB9vs +Fug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :dkim-signature:arc-authentication-results; bh=BTQucTtI7q+lL8ro9/hRrACeSTVUW/tEqabTjEzZg5s=; b=ODwhb4BRGprhjsNkr+PlQC0AkNjyNbMKylmXQk6OuXzbKtTeiodolGX3QAiGAAUz3C 0JV2dsGzIyPYQqtLZRzSbdCTILITxqRjT6AW5AfEEbskzRXxzHVDcyeJBOnhaSew2aZX WYUQYXIdRQ6Dw0svDOOZjNE3rCMQTZce4R0muF6DrxuArk0jWG4P3mp5+c4+Qp4RFGsX 16Z89gbcAvaZs0AZkTyFdak1ZX3SFnUC3fSTCUDg7yUqIP2ttgqnbop09bBbZC65L7aq +vBmkGQLHAwU7vgQDIpLBtrNWGy3W+VqCoUBAWyk6oaR0OoLwVPdeJ1mguzdDV5U+Jsr HbnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=E/pPRGjd; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=IDt62dLj; 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 92-v6si3492894pli.623.2018.04.12.08.22.17; Thu, 12 Apr 2018 08:22: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=fail header.i=@raspberrypi.org header.s=pp header.b=E/pPRGjd; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=IDt62dLj; 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 S1754006AbeDLPRI (ORCPT + 99 others); Thu, 12 Apr 2018 11:17:08 -0400 Received: from mx08-00252a01.pphosted.com ([91.207.212.211]:44854 "EHLO mx08-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753218AbeDLPRE (ORCPT ); Thu, 12 Apr 2018 11:17:04 -0400 Received: from pps.filterd (m0102629.ppops.net [127.0.0.1]) by mx08-00252a01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3CFD9ux028432 for ; Thu, 12 Apr 2018 16:17:03 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp; bh=BTQucTtI7q+lL8ro9/hRrACeSTVUW/tEqabTjEzZg5s=; b=E/pPRGjd4lMQhKc3i1T7dHjClPOXSr8VGo/BBtUNev3H5/RAwz813LawBh1kAZ0GOIaH jE0KbP0GrKRjI+pyPLkkIRerJ3mivEF3o7ql4ntCbe/gYJu60iKXGtnECOloNGL7zSPW SGxfP4ngG0fHtD6rEWOBsse6NhjEIhvim/JZw9VnO/Hg8n9dBQv6gnNS79e8WQkotyyn 4XSV4PPQ7NHhyb89guyszn+UjEkf7hAJEzKn1kwT3sMhRLPfeKnP/ccRiNJ5MmFkR9+O YvqTyxkXMqE8dW0p93axTwvnRW0npCtCNzmts6ge/+lrZ3kj9SKLcDMwYikRk4NaUUL2 Bw== Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by mx08-00252a01.pphosted.com with ESMTP id 2h6trdtkvf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 12 Apr 2018 16:17:03 +0100 Received: by mail-wr0-f200.google.com with SMTP id b9so3235090wrj.15 for ; Thu, 12 Apr 2018 08:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BTQucTtI7q+lL8ro9/hRrACeSTVUW/tEqabTjEzZg5s=; b=IDt62dLjHxmIdQk/5k2OPbCJhnsL7/DUIfc0nZgS/b0aSGNs+T8zIRfOKUk6rTUma6 7ZFkl6wJQqB8Dx/8KPsosC9VqAK4tm8PKQ7BtOj9kzYOrUF0gseUAQM5ABu8DP2oNf1Y 7BR2P9aVtwEcM+dINoMftiMk4AajH3M7KT9BEdY6JwTnKNtU7VK40ggZjv8BJlT38Xvt zqHGOJ91JLPrXXoUVDEn0MDjVAJfpf70V59ffqu+hnS3zPhrPHA27H8hwYxlQKUqzuMS k/QzBKTICs/Kk7MWYS5o3F89HW4d0voV4o5Vv+LNaw7LuFt2hYO5F/+e1kdZJhc/ZlvT pMSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BTQucTtI7q+lL8ro9/hRrACeSTVUW/tEqabTjEzZg5s=; b=RR76nAtFg9rWXEl2K9mckJzJYIzL6fCjVKk/bKd4lmwEvkskaAplEuCNKNVAbyLpdl +cx9m5RRhBb5jCbWFo4/hbNhZQn8aQHQAcZ4VcJ7P8QAKydDcVCEwvogYjGQ5JbjjP12 Ehc0++papJqBChQzeUq8QiDW+5M+QDSa6eDPAlGroyrubI1LIiPsd3Evn7DrQ0fH9Vsc lFmmgmyTWpmpMb02CO3195fMvmrb+avPbIeVkaHHnf5+49LiOPGIKlbDToMe2k2jew9C fqo3RBaKbQsKZqqJdL4HV7/AJ9O8zUYxyT3wsesAqFagho4CpKbIDbzxMI/vn70nTbLN LnPg== X-Gm-Message-State: ALQs6tBUlCDTxQldnXHMIedvdgwD8aTwFLijH4ZjFYLrUbBJJot7eLZR GghmIekCp14+gtYdTZ5mCjYxQ5rcgAunxCNHNE/nInCIfjfEoY0CO+2hmENQFe4BtC2EN/qxAJ8 97qrW5t9UaUylSrfDD3sNdtQz X-Received: by 10.223.196.212 with SMTP id o20mr1122313wrf.144.1523546222476; Thu, 12 Apr 2018 08:17:02 -0700 (PDT) X-Received: by 10.223.196.212 with SMTP id o20mr1122300wrf.144.1523546222314; Thu, 12 Apr 2018 08:17:02 -0700 (PDT) Received: from ?IPv6:2a00:2381:fdf7:14:8da9:f6b6:f0c3:26ea? ([2a00:2381:fdf7:14:8da9:f6b6:f0c3:26ea]) by smtp.gmail.com with ESMTPSA id q14sm2240215wre.10.2018.04.12.08.17.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 08:17:01 -0700 (PDT) Subject: Re: [PATCH 2/4] lan78xx: Read initial EEE setting from Device Tree To: Andrew Lunn 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 References: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> <1523541336-145953-3-git-send-email-phil@raspberrypi.org> <20180412141630.GM28963@lunn.ch> From: Phil Elwell Message-ID: <27e04eb4-bf75-d5ad-c0dc-bc0153fd8769@raspberrypi.org> Date: Thu, 12 Apr 2018 16:17:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180412141630.GM28963@lunn.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-12_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew, On 12/04/2018 15:16, Andrew Lunn wrote: > 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. If the driver should be calling phy_init_eee to initialise EEE operation then I'm fine with that (although I notice that the TI cpsw calls phy_ethtool_set_eee but I don't see it calling phy_init_eee). However, it sounds like I need to keep my DT toggle of the EEE enablement and parameters downstream. Phil