Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp681999pxb; Tue, 3 Nov 2020 09:37:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1jDQjTlw40SQnLxUm3Un0P6BY7iNl4X3/Kl1E/lThGK7Jtm+2Uw37QOuJMfCSpgHrsZ6a X-Received: by 2002:a05:6402:943:: with SMTP id h3mr22690285edz.88.1604425054360; Tue, 03 Nov 2020 09:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604425054; cv=none; d=google.com; s=arc-20160816; b=nGuCiMMepScDEZI/qDdl34WkHj+2r6Z89fg1RsoJy7s9Y+kQtxNQuqkfbEdTFXbJbh uifww/DAo9miTI4NeF4Wkvn0Zi5O5x4srmnymWe80w6rVOypx/wGbMEPMzEOYutI94+/ +hwprR1A7NByesymbZSQBWKxNnjhiMhq7cM3Ou2HNjWwwpbArkLKjUVJ6EHUKijSuTd3 yBIa1bWXzHKbLzP+0OtBrB8PHfxcVOVKDKRcl5zLp3BggjMfKiv0+eaAP2cDlYXuhcbz SkGlXLk5AxaJOcqNUBF6DMCt8Ezx2MLVQcHRwk35R0TExYruDzWL4DDbW5c8cdFgtow2 MXKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=W7y49awQhyYVVMmsSYn2fTrpiqhwtNzdGyjtxk/kf/E=; b=cVtlwokpRM7Q7Jkme93YupHDnRAJPJPHRx0ITzOgSG69PbkLx+WASVxBLVpVvRD+DH JX9cTECi2LdIreF37bHowUjLSvqIg8L6NfAMEd8gK9A8FNwZ05ry4YPgwqnrEljRJU4c TjsAe+R/YzGii75GUjQ//4lLTpPxUwFMOFTyxJ3XiPSjQGgl6yWMkoORJrDgDYyq2lmQ CtivvF0Jo4FvE8H/VIRtlw7eE84rYxQOcpau7arMNZawQCzzutugy9V2nS4O1VAPe3U7 d1VFIwdrbdErIIgdTMKx/hA0kfIqNIykAAJuUs2kD9UB5cd27Tq0pRa+zJJsr4yRAY83 2kgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qwvSd6Vo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co16si13754808edb.465.2020.11.03.09.37.11; Tue, 03 Nov 2020 09:37:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qwvSd6Vo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728939AbgKCRfd (ORCPT + 99 others); Tue, 3 Nov 2020 12:35:33 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47608 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbgKCRfc (ORCPT ); Tue, 3 Nov 2020 12:35:32 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0A3HZRPk066684; Tue, 3 Nov 2020 11:35:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604424927; bh=W7y49awQhyYVVMmsSYn2fTrpiqhwtNzdGyjtxk/kf/E=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=qwvSd6VoWk9icL4AMTQXD1AkIWRG+ct7pHhXCj/JFRh74guIK15HyXAE+JKibQLg4 Wadfw+NfPWWPvYDIqWc7pquI93jA5+dVpJdENZQrSsCDhmkWvBRpQXtQYafD5a7OTT TlBJ/cS+O/QAe/eYMXHpNmusqM7LBGDmsR9F/d0E= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0A3HZQ2t079464 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Nov 2020 11:35:26 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 3 Nov 2020 11:35:26 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 3 Nov 2020 11:35:26 -0600 Received: from [10.250.36.55] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0A3HZQQ7045673; Tue, 3 Nov 2020 11:35:26 -0600 Subject: Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY To: Andrew Lunn CC: , , , , , , References: <20201030172950.12767-1-dmurphy@ti.com> <20201030172950.12767-5-dmurphy@ti.com> <20201030201515.GE1042051@lunn.ch> <202b6626-b7bf-3159-f474-56f6fa0c8247@ti.com> <20201103171838.GN1042051@lunn.ch> From: Dan Murphy Message-ID: Date: Tue, 3 Nov 2020 11:35:26 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201103171838.GN1042051@lunn.ch> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew On 11/3/20 11:18 AM, Andrew Lunn wrote: > On Tue, Nov 03, 2020 at 11:07:00AM -0600, Dan Murphy wrote: >> Andrew >> >> On 10/30/20 3:15 PM, Andrew Lunn wrote: >>>> +static int dp83td510_config_init(struct phy_device *phydev) >>>> +{ >>>> + struct dp83td510_private *dp83td510 = phydev->priv; >>>> + int mst_slave_cfg; >>>> + int ret = 0; >>>> + >>>> + if (phy_interface_is_rgmii(phydev)) { >>>> + if (dp83td510->rgmii_delay) { >>>> + ret = phy_set_bits_mmd(phydev, DP83TD510_DEVADDR, >>>> + DP83TD510_MAC_CFG_1, dp83td510->rgmii_delay); >>>> + if (ret) >>>> + return ret; >>>> + } >>>> + } >>> Hi Dan >>> >>> I'm getting a bit paranoid about RGMII delays... >> Not sure what this means. > See the discussion and breakage around the realtek PHY. It wrongly > implemented RGMII delays. When it was fixed, lots of board broke > because the bug in the PHY driver hid bugs in the DT. > I will have to go find that thread. Do you have a link? >>> Please don't use device_property_read_foo API, we don't want to give >>> the impression it is O.K. to stuff DT properties in ACPI >>> tables. Please use of_ API calls. >> Hmm. Is this a new stance in DT handling for the networking tree? >> >> If it is should I go back and rework some of my other drivers that use >> device_property APIs > There is a slowly growing understanding what ACPI support in this area > means. It seems to mean that the firmware should actually do all the > setup, and the kernel should not touch the hardware configuration. But > some developers are ignoring this, and just stuffing DT properties > into ACPI tables and letting the kernel configure the hardware, if it > happens to use the device_property_read API. So i want to make it > clear that these properties are for device tree, and if you want to > use ACPI, you should do things the ACPI way. > > For new code, i will be pushing for OF only calls. Older code is a bit > more tricky. There might be boards out there using ACPI, but doing it > wrongly, and stuffing OF properties into ACPI tables. We should try to > avoid breaking them. Got it.  I will move back to of_* calls Dan > Andrew