Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4519876pxb; Tue, 31 Aug 2021 07:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3HFdl2SXZHtYTYw7PIxsi2b9zVft/CWBrvRD8tq/kipdebNGyGVoWmRNcDKrDL+p3e0bt X-Received: by 2002:a92:ca0a:: with SMTP id j10mr20334539ils.192.1630418915046; Tue, 31 Aug 2021 07:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630418915; cv=none; d=google.com; s=arc-20160816; b=IvQWau5xzSwRKBA44UijVQsIgNW9TH55GmIKNxjFZKwOehT26KSG+KLTA/fGFTcU84 WWcU1cuMIItrTZp+alV0x+PoFoeeH4b/uBhgiK8EsvJ1fOcjTbdTFCtGoL47fyP2CePY wFk64jb5ZbwnOt+0o9FXNM1Ydh2IfOiyT047cFNOsipMz/NCauq+I6ohqhsV9QpuPZiX xEXPjCl8lPzTWvrGqcQr7Uv6IL7tNQuGTzyyIn9pwa2ksKZh8NTe/hhVkpO47eh3CAu3 JOdYo32wL5vlvjbGxYuJ5/C9sBF41y2ozX5DFvNbznJpzQERVZlVhC0nxvTnsVHoUs0X +o6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=a1nEe0ivvaarnt1Bv0vjqFAVdslIHyZCpsCJJodQOhY=; b=eh/JL/QMsYv/aMItoYlucvWw2xL4OyRcxEJMEvjhnRTZaLHb5sm0TxaSKQ6e0VtmPy KGCa96b/SZ1wk1rCWXEh4SFpQCrBcpFRvJGj5th03bn/LPS0G6uhKvfvFKzBgYoXiQsl FKeslgrDJZ+HUSGaaCnca64L3QMaa5Ni2js3vp4zp4vlEeflTg22jxR3sMs5vzElIPam Rq6EBRMRogPe/5/xZ/TXI54CRsTdINB51cMmWQEFZI/67/sU0yIoJdpVvrmFwG74tEAL 2AyGIBv21JTK8YnMYod2A2r9b2IfIZWl+MZun1cA03vPo4Nx+e5zQMV2YvA/hzkeUDsd g4TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=h5VrNT1X; 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 o14si19913225ilu.101.2021.08.31.07.08.21; Tue, 31 Aug 2021 07:08:35 -0700 (PDT) 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=@walle.cc header.s=mail2016061301 header.b=h5VrNT1X; 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 S233231AbhHaOHU (ORCPT + 99 others); Tue, 31 Aug 2021 10:07:20 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:48195 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbhHaOHS (ORCPT ); Tue, 31 Aug 2021 10:07:18 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 4BB6D22234; Tue, 31 Aug 2021 16:06:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1630418781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a1nEe0ivvaarnt1Bv0vjqFAVdslIHyZCpsCJJodQOhY=; b=h5VrNT1X86XklWXK5jSmQSxw+6vGr4Q29w3t0xfc7iz6Drh6/Au9xZz+JolXptC86rTHSY CbxRtyUl1PssY4RNMIzFC1NHpDJ+51mJenA/ZPH27HZDaXVjA9TPuBnfVwqDIuN9dIWClO qLvWArXSKaeZfPnJQSDAFDQ5CjwGxqE= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 31 Aug 2021 16:06:21 +0200 From: Michael Walle To: Vladimir Oltean Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo , Leo Li , Rob Herring Subject: Re: [PATCH 7/7] arm64: dts: ls1028a: use phy-mode instead of phy-connection-type In-Reply-To: <20210831135916.ccvyc5intxs7rlal@skbuf> References: <20210831134013.1625527-1-michael@walle.cc> <20210831134013.1625527-8-michael@walle.cc> <20210831135916.ccvyc5intxs7rlal@skbuf> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-08-31 15:59, schrieb Vladimir Oltean: > On Tue, Aug 31, 2021 at 03:40:13PM +0200, Michael Walle wrote: >> In linux both are identical, phy-mode is used more often, though. Also >> for the ls1028a both phy-connection-type and phy-mode was used, one >> for >> the enetc nodes and the other for the switch nodes. Unify them. But >> the >> main reason for this is that the device tree files can be shared with >> the u-boot ones; there the enetc driver only supports the "phy-mode" >> property. >> >> Suggested-by: Vladimir Oltean >> Signed-off-by: Michael Walle >> --- > > Actually that is not really a valid reason in itself for this change. > The enetc U-Boot driver is perhaps a bit silly in that it calls > ofnode_read_string(dev_ofnode(dev), "phy-mode") manually, especially > since right below, it uses dm_eth_phy_connect() which searches for > both. > > So we are artificially restricting what we support. It would be fine to > do the dm_eth_phy_connect first, then use phy->interface for > enetc_start_pcs(). You mean in u-boot. I had a patch for it, but because you suggested to convert it to the new property name, it isn't really needed anyway. u-boot is just using the device trees within its source tree, so I didn't care anymore ;) > Anyway, I do not mind the patch at all. > > Reviewed-by: Vladimir Oltean Thanks! -michael