Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp494253pxb; Wed, 27 Jan 2021 12:58:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS6NJgFSZDHMBQGLNMs8NngCGAZ6VbcuU6yA+f4TYZ+0fzvuCo9z/xm7e5HktzUiTH5Zbn X-Received: by 2002:a50:9310:: with SMTP id m16mr10844225eda.94.1611781107823; Wed, 27 Jan 2021 12:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611781107; cv=none; d=google.com; s=arc-20160816; b=ebgRsmb+Lfoe7DJcOvhhOLStZUbL1aXYVCFMsfvpvFn95tGyREAN7JfnhlZo4DRkzj FkckylMXMSFvcxpb8YnrbBiMXUN+FbQYknNlCIH89qxPIelfVWfp48UjMP9qM7j0wayU qIsaf59gOvPLYD+BNP+KBO+k+2HnkSwFMFdNDXAOJHa7+Jcvhsl2QWGu3z28aEh25Y7I E4d8jgrdVjYc6D47cYwiKE8HT0XiDjfOHpGXg4lQyXbPdn29jGeV3VD87SmPuxlkwOCd /0RJqg0ak5esMYDWnt5dO18ibNwQBE3q3FVcDgAoDVpj6lRqyjT0VNh9sOQiltS0V1y6 u7sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=l+UtnEk9NZADkqnwaQDcJHM4nZ3DDaQzpJK3tX454F4=; b=LZ777/ixQAmu3ueAFxVQUfimOzOpAzjYdwoXVZ0cn53GxUWl+xPKeXZe8eOHTCb2Ji bgtGZ3wnfQIDLPMjMrJ5k8Gn8/O/zmI7NRkPya6kAWjazHVcwLnARZ9FMdMEcONrhtYx D+bR0DbN501zySRLICow6ehclsUtkDElFxZxm62S4azukjE3wdWyiULhYCnJLnToFYxN tBqyG/oCT68fPLSL4CFzMjrnjAC9+vv2IGSRlsM1cUBq85wPUTIYkofVgsxNAbYVuufh 8JQK5p6/VusDqvtiM+6MjpQNb2YWDs06X8p4OqodtTaQuNUc3PVlkzHHDz6pucTt1Cpn JBUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=inQK+CUD; 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 w20si1263447ejk.163.2021.01.27.12.58.03; Wed, 27 Jan 2021 12:58:27 -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=inQK+CUD; 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 S238073AbhA0EFZ (ORCPT + 99 others); Tue, 26 Jan 2021 23:05:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:58332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232438AbhA0DDo (ORCPT ); Tue, 26 Jan 2021 22:03:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04B8820639; Wed, 27 Jan 2021 02:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611714334; bh=l+UtnEk9NZADkqnwaQDcJHM4nZ3DDaQzpJK3tX454F4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=inQK+CUDy79hyiiawvC6uK526DQrUuRtlGFSr14AEEhpbR5j3UEUG6WzI1FSlsLM+ PW78Ui1zOFdSscXDjFdgLsscDWKkMcFDLIV6Ywf6SRQXDCV/BCjNJZ9XmQvEOkzg0Q /AAlsBwJoMXz2PJ8Qzo9WW0ax6gsOMe2vvDN8IG9GfqGfz+hHHOUabit9i6dxGiVuG vEq/oIUiOf8JC+YDRLrZDoDFEFYfYtf4gOMsx9wH/eLkhkmxkXmGsLuKaDh9WylERm eIteytm6tG53nG4ALSL2iC0Paq8d3IGNnxH7IN1JTq8aiOYtwmEB0y7CUJ1nLUCvTk Ca8QmGmN7pHYw== Date: Tue, 26 Jan 2021 18:25:33 -0800 From: Jakub Kicinski To: Laurent Badel Cc: Fugang Duan , "David S . Miller" , Liam Girdwood , Mark Brown , , Subject: Re: [PATCH v2 net 1/1] net: fec: Fix temporary RMII clock reset on link up Message-ID: <20210126182533.17ab52a9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210125100745.5090-2-laurentbadel@eaton.com> References: <20210125100745.5090-1-laurentbadel@eaton.com> <20210125100745.5090-2-laurentbadel@eaton.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Jan 2021 11:07:45 +0100 Laurent Badel wrote: > =EF=BB=BFfec_restart() does a hard reset of the MAC module when the link = status > changes to up. This temporarily resets the R_CNTRL register which controls > the MII mode of the ENET_OUT clock. In the case of RMII, the clock > frequency momentarily drops from 50MHz to 25MHz until the register is > reconfigured. Some link partners do not tolerate this glitch and > invalidate the link causing failure to establish a stable link when using > PHY polling mode. Since as per IEEE802.11 the criteria for link validity I think you meant 802.3, fixed that up and applied, thanks! > are PHY-specific, what the partner should tolerate cannot be assumed, so > avoid resetting the MII clock by using software reset instead of hardware > reset when the link is up. This is generally relevant only if the SoC > provides the clock to an external PHY and the PHY is configured for RMII.