Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp670840pxb; Tue, 3 Nov 2020 09:20:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpUFWGvPwPSJjLHmshJ828eq6p1KhgsnUEn1i7YS8T1CekAjTlIx8pKUKE4nFnNBUN6KzX X-Received: by 2002:aa7:c2d7:: with SMTP id m23mr22927507edp.230.1604424049283; Tue, 03 Nov 2020 09:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604424049; cv=none; d=google.com; s=arc-20160816; b=Q960FkXOny95d4gddwtDWhzRBNduYkwbGKAYRJMC55PE1KOwN0LWFJLFwdF8ouSvyz pEPpowG7vBswlIgNKLXVp14YAy5vGJaet8fHhJxPZ5NfAyx6H+Gm/ucwOsibwAxbqkZw 1rWGZ4OHZKi418eJggCEs0moDk5J9fl5MemlXXVWhvRfnW8bPaUsbZxPcl70HDsuA52q fdF+CEXpzfXf9itxrLrn5ZorFErpAeHtMAnUCRVF+TmV21sKoLsQFcDQ6Cj6LQuN5vVN GXHaxTsV/GznhUHG1dlf+o6+xo/LWp1s7Kj6kYjC45kb/gu1cpr98Taw+ne4PEowMjDV QORg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pAlylmhlKW6CEJ08pmAjiKup7+bVs1oGlmKAWXHoBCs=; b=nu6r5J4+R2i7XMFS/O1qoH9bkel9MTJOXOLw8pCadCiUBv8jJWBRnndoU8Qr7jBbpe EI1/WiK/IvEZvK1L0bsoqq//ePaoY6/XujygtQay1Sgkmw6dM6xN7Y3y8B3wo1SvVwzo JufWOKPdoeETyQGh7kmL4Ns/dY2kv7ytH2FecCoBdsJLdxwjsqJ3QjlctpZRFYxG9PUy wPOuCYllGcXbRNVaq6WATb20x6tNWewWS0JxIf0rvrww96kJ3JWqGz8zNnZEC8VTonuD 1N6Hu4CrNUJKGxqtQm62IdMGnzEK1N5uSp6y7o1r40ArDb4iTJ2KTcjkHfqrIImUDGI/ 9UTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si9341791eja.72.2020.11.03.09.20.24; Tue, 03 Nov 2020 09:20:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbgKCRSp (ORCPT + 99 others); Tue, 3 Nov 2020 12:18:45 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:33000 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728681AbgKCRSp (ORCPT ); Tue, 3 Nov 2020 12:18:45 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kZzx8-0053yJ-8m; Tue, 03 Nov 2020 18:18:38 +0100 Date: Tue, 3 Nov 2020 18:18:38 +0100 From: Andrew Lunn To: Dan Murphy Cc: davem@davemloft.net, f.fainelli@gmail.com, hkallweit1@gmail.com, robh@kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY Message-ID: <20201103171838.GN1042051@lunn.ch> References: <20201030172950.12767-1-dmurphy@ti.com> <20201030172950.12767-5-dmurphy@ti.com> <20201030201515.GE1042051@lunn.ch> <202b6626-b7bf-3159-f474-56f6fa0c8247@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202b6626-b7bf-3159-f474-56f6fa0c8247@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > 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. Andrew