Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11958pxu; Wed, 6 Jan 2021 19:21:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyooB3tMizzVx1zbxrIioBLJq4/SysYDETi4Wmx0mmta8ClmTKH4W05H4M4xJvGqZAUsHLM X-Received: by 2002:a17:906:b287:: with SMTP id q7mr4594146ejz.311.1609989700521; Wed, 06 Jan 2021 19:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609989700; cv=none; d=google.com; s=arc-20160816; b=JJxfUqN2su07Q++qHq6echGDb5Cq8GK1Zf678VUVjkD79lAVQ6SyWQ9iHLeFjPZ78H BXlg/quYPvxV4D10DKHupDKlVAkrtESvSHIgvdOngwqDE/fSOmZZsPPNk3AYxegK1s3P oHlr0yH31WRP9J2xJILJfvq5BVGA+DL+zE+9m6Av1Mv3AG7o2qsxiINilobFej7NCLXV SloxuyYQWJo1YvOCHu1w9fjMTy3KwSc5Ee8KK3GoLWUURhs4XrPzhNMmhV1SLj6RuWV5 WzytA8fJ2kDTFO2N5mpMKnENBZlz5jAzj+wwnXVH55qDQpnaDAIiZ8tL9P6wP7Te6P+W pxuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2JHFh9MRMM57vTCsVa736eHC1i8yLzNPrzm7NFZnGPY=; b=kpbqUNHW6do7hWYG/FF2DMmhK3l76FDKBd6Zi8F9MjGXXOG5j0b3ofylvsfGprer+g H78rvscb8Jrgzup4sWCx9qrzB8LS/H3glc7soO4e7xLNaJXSF8sVTnnMf/sbkrmZMIFA XX2wqJ4lt65E8C96qtFsZdf/ChCdaFnNNDXsOrOT5U1eLCyTkfgp/4otTU5qhGvd2QEC Zeqv4D6tJNnize8UzKFgF4satqGDqHTrJVGv9/4+q71Gf0cVjnICKQt9n3JkcIQE/PHp 9NShlHYIrp2eNseJLJRyp2L5sLaagvPjC7G7nun906rnutVzsV8KuaCtmx+N99hDosRz I2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rmd5/I8p"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv23si1662636ejb.408.2021.01.06.19.21.14; Wed, 06 Jan 2021 19:21:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rmd5/I8p"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbhAGDUR (ORCPT + 99 others); Wed, 6 Jan 2021 22:20:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:49114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbhAGDUQ (ORCPT ); Wed, 6 Jan 2021 22:20:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 480D822BEA; Thu, 7 Jan 2021 03:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609989575; bh=l6Wn9Rs2IWSTtUm8c7IW6SPvlrUk79/vwe/pvPbmstU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rmd5/I8pwnF4RnmyAmTzpQ21qzL1fXSeebeU3vM3mhyn8Jq0tvzLN1yUm0BDCKO4Y kYTFkxKlgPFCIsMsdTFnIHrIN/QQcaXyNvqQX7uafXBOXE6NTWP0bPXWvs3jog0FR9 Hg4F8qQNnzICa6RoM6y1vk1AlJpmwUOPqrU4fmuYFzKUzSH3sg4ArBMbELmpdj+K51 It6afItoG9BLz7SLz7JydxsevcxDbioUWXxWAE9ZaP5rtSqvqmhsH/CZ+43yX42WCN 07FtVPAYaR+uKCnjMow11EzVRC7Yw3UUqHsudpAdTCv0euLhjqJLu7qWEHBmsBkmIo UJ93kl4YVyZfg== Date: Thu, 7 Jan 2021 11:19:29 +0800 From: Shawn Guo To: Oleksij Rempel Cc: Sascha Hauer , Andrew Lunn , Florian Fainelli , Heiner Kallweit , kernel@pengutronix.de, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , David Jander , Russell King , Philippe Schenker Subject: Re: [PATCH v1] ARM: imx: mach-imx6ul: remove 14x14 EVK specific PHY fixup Message-ID: <20210107031928.GS4142@dragon> References: <20201209122051.26151-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201209122051.26151-1-o.rempel@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 01:20:51PM +0100, Oleksij Rempel wrote: > Remove board specific PHY fixup introduced by commit: > > | 709bc0657fe6f9f5 ("ARM: imx6ul: add fec MAC refrence clock and phy fixup init") > > This fixup addresses boards with a specific configuration: a KSZ8081RNA > PHY with attached clock source to XI (Pin 8) of the PHY equal to 50MHz. > > For the KSZ8081RND PHY, the meaning of the reg 0x1F bit 7 is different > (compared to the KSZ8081RNA). A set bit means: > > - KSZ8081RNA: clock input to XI (Pin 8) is 50MHz for RMII > - KSZ8081RND: clock input to XI (Pin 8) is 25MHz for RMII > > In other configurations, for example a KSZ8081RND PHY or a KSZ8081RNA > with 25Mhz clock source, the PHY will glitch and stay in not recoverable > state. > > It is not possible to detect the clock source frequency of the PHY. And > it is not possible to automatically detect KSZ8081 PHY variant - both > have same PHY ID. It is not possible to overwrite the fixup > configuration by providing proper device tree description. The only way > is to remove this fixup. > > If this patch breaks network functionality on your board, fix it by > adding PHY node with following properties: > > ethernet-phy@x { > ... > micrel,led-mode = <1>; > clocks = <&clks IMX6UL_CLK_ENET_REF>; > clock-names = "rmii-ref"; > ... > }; > > The board which was referred in the initial patch is already fixed. > See: arch/arm/boot/dts/imx6ul-14x14-evk.dtsi > > Signed-off-by: Oleksij Rempel Applied, thanks.