Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4054057pxu; Wed, 9 Dec 2020 07:18:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuAblG3ftbYDH9W7MUwxjgjZaVOLZaQ3mZI3cS5MIoRNxEBIkpHD6+/1cXBPaJAxQ2K6Qq X-Received: by 2002:a17:906:27c2:: with SMTP id k2mr2417030ejc.211.1607527096851; Wed, 09 Dec 2020 07:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607527096; cv=none; d=google.com; s=arc-20160816; b=PMQEIxCluBst/RzBSWeLc7V22oWC0aFklnwcraRj0KXSgwOyq0HMqnzRhLqOJqbR1H b8vgMu7nqbZWo3VrvtrGi5Cdd2f2nAcqfeOJoM1bZ9k5suNGHV5AZFMsk/n5bmOtBEa5 ux0oavQRxRn7Ffzcv9DqaFtWL09Afchiae1ut1DS2JRXEyEJD8H5SsJuDvDKVnafGckc 9bSdzBenISISGl6WMb8lixbGnUNYAL5CWAkB0sO5HP/QdszZbO70Ou7fJWbnZUi97QhN wIfOpHrFDlVRc6V17hhekLFxZlMlCOqffysdKw3Oy5PtpKes3m+janSHPJbP+rEY4++W MsrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uY9PWBYEWa+L7/vef7H+7Msq9Ws/A/8yhidf9SuVVdo=; b=NQmdgjOEJlYKu1KNlRdfZZGluNNLErcHZmuSzlFB2xK8dkA8LNIBdn76+QRfiWu5og W3/ElBGOQuiwWv3gs9mgH3oQvUv5Ejhn+NWGZevSbiBu0C7PP7pJ3D+jQro7+xMzzWR0 qbOvFKS8vVIC9szzfvamngLVZCQTgjHTocRi1Q38dN0zzRakf91Dcc98lhiDxkR9gxQG Udgk+mAGtfwnw7jcMrXN43mMxxK9PhrPNfSGJlODnO8LQPxQYAKr0GGrLyMBkgp9W7V2 NoHjRRrSAbpz9qvCcvsZ24BinvBa66ONLmBhpvbU09f1EUT0MLE7Vp4XpfdZbEk6O/tr 7atw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qMZhFx+v; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si887639eje.119.2020.12.09.07.17.53; Wed, 09 Dec 2020 07:18:16 -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=@gmail.com header.s=20161025 header.b=qMZhFx+v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730441AbgLIOcy (ORCPT + 99 others); Wed, 9 Dec 2020 09:32:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgLIOcx (ORCPT ); Wed, 9 Dec 2020 09:32:53 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41130C0613CF; Wed, 9 Dec 2020 06:32:13 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id b10so262784ljp.6; Wed, 09 Dec 2020 06:32:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uY9PWBYEWa+L7/vef7H+7Msq9Ws/A/8yhidf9SuVVdo=; b=qMZhFx+vYT7MTu7dfjl6vuany45dJzHG96iXCLscxwpnVqlj9VsIwIr5gw4HK75Ikm CKxYwK2N5HQ+Q19Nkn2eo80hMntqN6paSvgjTnkqEw7pGMzraC74VOSN26PKkU3kIMo2 J2iqWrhCpI+e7TqllxAYQFAwJh9biotY0WOEaMZn4QUIpGGl3HUs/q+pG+UeLmqTXWSu A/3yDJYshfeskOTrwjrVlCx/ArVjdG1gPxYZGCo2g2q4suxQAUSKAeN73RQuqoO4QNIN AcrwlhAGAMIbz4nw4dyOuQ8kHXuwMVs7Krl9yXh3ws5FUXdFx7fCvYpApTwmIhrkxp5Z Wfkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uY9PWBYEWa+L7/vef7H+7Msq9Ws/A/8yhidf9SuVVdo=; b=IodKotJ8DdAuFJ0vp6u1KwPLY7b+7o1kFM7X2MFA0982b6QExxdqcHFd1bqqLDuveO VqQsB7f3uvqKQL/Vt44A8lLqb/SZOkQkJ+oTfGDY2wRtOPKilynhm/CTgD9C7mi58Lx2 EHHG1x4WQPIUuLWKKaINRqEDcXnfTyyZMn0bToIg9eadVeTwVbjJd6uy0HW2ZESxUnwa CljbuCKHsWFpU8TADQ6yQm544y+gw/sLN+7ZfAMHiqn7BkZGRxyivSgGmQArih7r9JVT HvgZ7yWV907airnvYrQymIX+/W9fFlFwTt3D1Kv892Xz5b4jU+tPuImEZwaKWxTpIvBc 0wgA== X-Gm-Message-State: AOAM533HJusMZUTVcTa/XnzIYkEmbyj7FQT/3rwnJSWPhKMYvnH12eTk lf75PCmn6oOqTsQNZpU8EY2EHRIeV+mkD0hrgW4= X-Received: by 2002:a05:651c:c7:: with SMTP id 7mr1217870ljr.116.1607524331683; Wed, 09 Dec 2020 06:32:11 -0800 (PST) MIME-Version: 1.0 References: <20201209122051.26151-1-o.rempel@pengutronix.de> In-Reply-To: <20201209122051.26151-1-o.rempel@pengutronix.de> From: Fabio Estevam Date: Wed, 9 Dec 2020 11:32:00 -0300 Message-ID: Subject: Re: [PATCH v1] ARM: imx: mach-imx6ul: remove 14x14 EVK specific PHY fixup To: Oleksij Rempel Cc: Shawn Guo , Sascha Hauer , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Sascha Hauer , netdev , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , NXP Linux Team , David Jander , Russell King , Philippe Schenker Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2020 at 9:21 AM 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 Reviewed-by: Fabio Estevam