Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2382933ybl; Mon, 19 Aug 2019 00:53:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwB2PiFKlH6dM/mxdFOQkwlNgbtEKqRdQStMyuDg9QlTWJZu1Xhu84W0FtJFnQPJ7K0aUjR X-Received: by 2002:a63:5c7:: with SMTP id 190mr18288033pgf.67.1566201209248; Mon, 19 Aug 2019 00:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566201209; cv=none; d=google.com; s=arc-20160816; b=MIg0EjiXEIy29JzE2zUNzOJwdIoivMbqH5pAKxz3Q2tzHE1yGKff4NXabrxf/m96S6 E+C4GIe749/DBcWScZYloOLrs4cSzPv9vTUG0rFoePw2iOrqwgjNZo9PRczcYdvCD5WM uktv0iu6cFe2nKBRucVhPXtSSDd+mp/pdBJSgtLnh+KUa3ob+KuSp0y0eeVrbXJfiQb4 TQ5N4mf2kkGkr4jYhuqGyS5GZ05IIJdDwlEAvQrkpL2W0SnR5PjoqxFwbnUdkrajkWQ2 xTjmCVqZ6yT5bJeOVMuT1yz39rdDrye6FO6hgGIp+ImOpgV05xaENVv79gQ1be9VHku5 i4UA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8rPYoyLcflV7Zb12YELHJkTPKlI62TKNuzmFQCKAT2Q=; b=caF9Om8qhiVP8e2cnwF9H74W0GdLW2m3G8WSHNmFJqdK+eKf56dcxJk9wWke9pJMZs GW4pjWHxtF/Vqb/uaE9Nm/SyQL2TO/rZGP/jIAAcbMsvNnKqvamKDZKqmancJKcspfV9 pTQ2H5/YdXyHyYw5B6aSqfxG3o2Ynfus39Oc3y/2gTp3DSMHBKR/SIG7GP044fG25qw5 8u67iilVrUgAyK3ARp8sqvZJ3SGSDsKGo8/kVGglb8lBRRbx/kZTRzgDlw8aBAcLO1Bb XkWnwmDs6Sdd4zFdPicc8K40PNsOWXIylvBssuwbev9q2blFWF0k7zwukdH7N3cpfbk8 4LQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0B1qKbNH; 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 t13si9883826pfh.245.2019.08.19.00.53.12; Mon, 19 Aug 2019 00:53:29 -0700 (PDT) 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=0B1qKbNH; 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 S1727019AbfHSHvx (ORCPT + 99 others); Mon, 19 Aug 2019 03:51:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:36412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfHSHvx (ORCPT ); Mon, 19 Aug 2019 03:51:53 -0400 Received: from X250 (37.80-203-192.nextgentel.com [80.203.192.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECFAB2184E; Mon, 19 Aug 2019 07:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566201112; bh=2/vZ0TTiRM4QnAl22MZxwHQZvlNisoqFM1RJui0gC4Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0B1qKbNH+o4DMmEwui7F3RpwvGKKc9/Lw1t8PYcSpKx+hDIRkEgWovjezQ+ySixZ/ QlBIW8TQ7LQvIY7a1K2wavjZJ6C7W3CYncb8leNxGC7DVdI+Fm1U9JGu2QaA1rjpBO 388CHZGw5plMGz82kCVv/3w3MilzMWp+3Y/3YkGU= Date: Mon, 19 Aug 2019 09:51:40 +0200 From: Shawn Guo To: =?iso-8859-1?Q?Andr=E9?= Draszik Cc: linux-kernel@vger.kernel.org, Russell King , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Kate Stewart , Greg Kroah-Hartman , Thomas Gleixner , Leonard Crestez , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: imx: stop adjusting ar8031 phy tx delay Message-ID: <20190819075139.GF5999@X250> References: <20190809031256.3594-1-git@andred.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190809031256.3594-1-git@andred.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 09, 2019 at 04:12:56AM +0100, Andr? Draszik wrote: > Recent changes to the Atheros at803x driver cause > the approach taken here to stop working because > commit 6d4cd041f0af > ("net: phy: at803x: disable delay only for RGMII mode") > and commit cd28d1d6e52e > ("net: phy: at803x: Disable phy delay for RGMII mode") > fix the AR8031 driver to configure the phy's (RX/TX) > delays as per the 'phy-mode' in the device tree. > > In particular, the phy tx (and rx) delays are updated > again as per the 'phy-mode' *after* the code in here > runs. > > Things worked before above commits, because the AR8031 > comes out of reset with RX delay enabled, and the > at803x driver didn't touch the delay configuration at > all when "rgmii" mode was selected. > > It appears the code in here tries to make device > trees work that incorrectly specify "rgmii", but > that can't work any more and it is imperative since > above commits to have the phy-mode configured > correctly in the device tree. > > I suspect there are a few imx7d based boards using > the ar8031 phy and phy-mode = "rgmii", but given I > don't know which ones exactly, I am not in a > position to update the respective device trees. > > Hence this patch is simply removing the superfluous > code from the imx7d initialisation. An alternative > could be to add a warning instead, but that would > penalize all boards that have been updated already. > > Signed-off-by: Andr? Draszik > CC: Russell King > CC: Shawn Guo > CC: Sascha Hauer > CC: Pengutronix Kernel Team > CC: Fabio Estevam > CC: NXP Linux Team > CC: Kate Stewart > CC: Greg Kroah-Hartman > CC: Thomas Gleixner > CC: Leonard Crestez > CC: linux-arm-kernel@lists.infradead.org Applied, thanks.