Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1225727ybv; Thu, 13 Feb 2020 18:35:12 -0800 (PST) X-Google-Smtp-Source: APXvYqymAE+aT7WFBxi7u1Uez+Zm2Cucl4J0uoLmGlP9tGVeLmryZizXA/fLNsU/J1Ka/p/New3B X-Received: by 2002:a9d:6b12:: with SMTP id g18mr462227otp.211.1581647711945; Thu, 13 Feb 2020 18:35:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581647711; cv=none; d=google.com; s=arc-20160816; b=CGAK9O0OhFyVUz5RFJgFkeT78CGaX+pC8Q3AJgLspsWHPlNGn3tnKpn6HC+UDM6RyE +1HKTvj+NjXABb1xpvX74VU5NiWpfNiVMfgnE4z5qXmu88CjKq3z5ip5EQ2PuiF2lH6+ H4bnQHraE8bZVKogWc0Ir3YMX8+wj1mKW4UVx5fFVdDWWRIL9erm3YvWh6QM+sXPbFtA jmi+wDU9Pb0kPvj6n22iLIuidVqL4q9DlxRr/B1jzY1algzwFIvumDzZ0oy9y7jEQUJn iLSB4lIdd31OXwJYdD/YeffNppeLoZD2atMStj5WmhtbXpFztaLo5/0boSiieGucy8TZ Z6Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BLgiuPhFN2DLk8Yfayg2KgLctBEgezXxFKjBRUTz/j0=; b=HGG+t6uGF1cL70j2bKoaKL0lBuR7tEWihteey4C+P/WqRq3d1WZZbCxvWiUj10fB9/ JUyHlFfR1cLgoSRLJL68LFQLVKgcx8PXCic2tpqMBlEoX46N/RvrN/zDWNwMpNeef1az P8JYLvGYHeX7pfIMQJMMDEQ8YCWgXDHcuq3lzAstRX/lzwS/YqoWOQSx13dPdpbx3t5P 0+OjEMdxaC6HwJgXJ5jzmccr0rL2p3E49QExQPLdjd8VUUGaIj8oVSFNWg+/0kracwE/ InFJBe07nYlxSnc8rhPb+SYmMgVSlceCH/FW1LaY+ciQw+xP6P4BahPmjyBlMGGp6Og+ 7gPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tvDhV6jn; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si2171886ote.90.2020.02.13.18.34.58; Thu, 13 Feb 2020 18:35:11 -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=@kernel.org header.s=default header.b=tvDhV6jn; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728261AbgBNCex (ORCPT + 99 others); Thu, 13 Feb 2020 21:34:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:60940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727988AbgBNCex (ORCPT ); Thu, 13 Feb 2020 21:34:53 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F1C22168B; Fri, 14 Feb 2020 02:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581647692; bh=NlFy+G7BwmwZJMBQsFrSrIwD/y9XhSxODCQxDfIySuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tvDhV6jnoCeie0Kwf0B+4/6TxT/wSlWvZLZsiX8vs8ajAKJ0yfALbjrvcK2l0+bkS AvwKa6FDFPJOQ8yH6dfj/kBs/lYzCaF5ONijXXAs6mBCE0fhaOQaFDnljR+nhutpuW tQsMQxacnQ9HAQBNuIv/cDEos3n2wO0wy5wBdwRA= Date: Fri, 14 Feb 2020 10:34:46 +0800 From: Shawn Guo To: Vladimir Oltean Cc: devicetree@vger.kernel.org, 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 Subject: Re: [PATCH] ARM: dts: ls1021a: Restore MDIO compatible to gianfar Message-ID: <20200214023446.GF22842@dragon> References: <20200126194950.31699-1-olteanv@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200126194950.31699-1-olteanv@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 26, 2020 at 09:49:50PM +0200, Vladimir Oltean wrote: > 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 Applied, thanks.