Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2834252ybl; Sun, 26 Jan 2020 11:53:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwX2gRHPtaqw0znJ4WNT0BmBUljhFyrQ1z+ej6VDR1VMzkvATAxiTVde52pSjZPosnCKbMu X-Received: by 2002:a05:6808:3b4:: with SMTP id n20mr1103815oie.78.1580068380866; Sun, 26 Jan 2020 11:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580068380; cv=none; d=google.com; s=arc-20160816; b=S6diSjv/LX002mG3Qmtj4BBI5fEal7z7/qnaGnM0zwpzSvjidU0ggegvsCqBHD30rB Tepjy7diPKAsrfCaMv8tmDKfIECPvaSNgnoounpa4nuyjb08y7jquOC1NGQZqZjOS4I7 qZqzgLYbZO+VzjB7sjVjzLz0cb66LrAvmukLHOEoatFMquoMDZhlkdwNpIzbdA5YIyZi 6wJ4XirslseMlRmnLMTyCjlzbQEoVJXXMRtamTqagnap8jKu6aTljJScpRVvF6yy+em2 GRiW3r6+un74xFjOxHszjG4tnyrkfUMBFTQU2TitEe65iK84qXl8nM6r5gUorbnB6B6Q q+YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=IzokdTn8xHJq417mKTUutSBXkWIrdbd8a0vBGM9PALk=; b=WAaIcoyalDlm06VcEO2ruuhL/nNEnGkVI82pZ24soErWIU0JczTJUa4EOE9mAP4dGU BdCdmIXeyZEhGYk73dWM5/U2L7sP62RT2SFhobtHErzRGY3tIBSTrbA+xCqc3KJBd58w WLMz/GfbsxxbCiuXWWEHSp/W6gXgfRifZozMbUXS56X26YSC9TN5tvs/Nwcq2MMJ5VYs vyqS30IuIPrpR5/VHFciUNApuA+LmJq7zRBkxjAvYgP84vR9I6Z8lRGJpuKeCHXL5V4K zYm9b2DlNvgpqisNQ8aEahlhJWEpK9ZkCYngftksZkE1gJUIzMgRnpyI0C35e4J+A9N6 1T0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tUPl+Vtr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25si2763288otk.28.2020.01.26.11.52.49; Sun, 26 Jan 2020 11:53:00 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=tUPl+Vtr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729099AbgAZTuM (ORCPT + 99 others); Sun, 26 Jan 2020 14:50:12 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45276 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbgAZTuM (ORCPT ); Sun, 26 Jan 2020 14:50:12 -0500 Received: by mail-wr1-f66.google.com with SMTP id j42so8360027wrj.12; Sun, 26 Jan 2020 11:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IzokdTn8xHJq417mKTUutSBXkWIrdbd8a0vBGM9PALk=; b=tUPl+VtrH1Pl/A4cENMw5jkqUIZaLlSp5ydlxs2eEZZYc0n/n4fR4W4bE4nBs2A8pP Eq/VlMeWDee0oCrFbAG7gD1v886V1jwQtLuks601G9XeR3ZTk7lNhJ/99ZhkMG+NsXCK ysP8CUIZEnJGxYeIU2SZhWv88j2lt91x07GGd8vA24i5BGLLg+H7T0g/QPPrDCwvObEb OquqVrA10a9s100NTWjoa/2flZM3aaMSajkhidYsw6WFl98LGMNiH9PJCCyvME/e3z7L 3OJc5x5ES8uEK01+odOH9ZpOe+YibQtCzJDWkbsFSEuujhaASncos/am4Ad8vsEf0YeT U43g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IzokdTn8xHJq417mKTUutSBXkWIrdbd8a0vBGM9PALk=; b=P1biF30aLcEtih7TsYISdY4oILC5dZ99p+HxhImf92cSruMW4r6h1M6ncyJjbR5lJZ jYY8RW0a8YmdOWE5DuSu4gLuuzcHtcr6m3wl3DeE1FLy1Rde8nLVgCxVaY68b2RDUab8 5kOsXWczhEd8BI10t5jq4Tfk32yJQxSOssgQFvUrIWg1aNzWJfaJ9+Jc7/UB1qJp3tmk BYVGj4Jzbl4KcZea8yxa9IbaiFFtJxqr7DQg9QWaaqMH9lsJIZbUvBnvsF1kzGprZsrK BISrGi6Bfu59o6C2DtmvDqRNZMqaFOPhOedgoioclGfQzs3ti6LQWDrzvPPVPvkLYje0 2lqw== X-Gm-Message-State: APjAAAVFFKb+asat9bl3SzEElKXlVaDUhDnM1ZMLbAZIsdMAqOqox1GZ ZkT+5Ncj9dxqhYpk4JE8suI= X-Received: by 2002:a5d:4b45:: with SMTP id w5mr16918742wrs.224.1580068209319; Sun, 26 Jan 2020 11:50:09 -0800 (PST) Received: from localhost.localdomain ([188.25.254.226]) by smtp.gmail.com with ESMTPSA id v22sm15313301wml.11.2020.01.26.11.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jan 2020 11:50:08 -0800 (PST) From: Vladimir Oltean To: shawnguo@kernel.org, devicetree@vger.kernel.org Cc: leoyang.li@nxp.com, claudiu.manoil@nxp.com, robh+dt@kernel.org, pavel@denx.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org, Vladimir Oltean Subject: [PATCH] ARM: dts: ls1021a: Restore MDIO compatible to gianfar Date: Sun, 26 Jan 2020 21:49:50 +0200 Message-Id: <20200126194950.31699-1-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The difference between "fsl,etsec2-mdio" and "gianfar" has to do with the .get_tbipa function, which calculates the address of the TBIPA register automatically, if not explicitly specified. [ see drivers/net/ethernet/freescale/fsl_pq_mdio.c ]. On LS1021A, the TBIPA register is at offset 0x30 within the port register block, which is what the "gianfar" method of calculating addresses actually does. Luckily, the bad "compatible" is inconsequential for ls1021a.dtsi, because the TBIPA register is explicitly specified via the second "reg" (<0x0 0x2d10030 0x0 0x4>), so the "get_tbipa" function is dead code. Nonetheless it's good to restore it to its correct value. Background discussion: https://www.spinics.net/lists/stable/msg361156.html Fixes: c7861adbe37f ("ARM: dts: ls1021: Fix SGMII PCS link remaining down after PHY disconnect") Reported-by: Pavel Machek Signed-off-by: Vladimir Oltean --- arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 2f6977ada447..63d9f4a066e3 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -728,7 +728,7 @@ }; mdio0: mdio@2d24000 { - compatible = "fsl,etsec2-mdio"; + compatible = "gianfar"; device_type = "mdio"; #address-cells = <1>; #size-cells = <0>; @@ -737,7 +737,7 @@ }; mdio1: mdio@2d64000 { - compatible = "fsl,etsec2-mdio"; + compatible = "gianfar"; device_type = "mdio"; #address-cells = <1>; #size-cells = <0>; -- 2.17.1