Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1648973ybh; Fri, 13 Mar 2020 05:05:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsoai5MInUcHQlQ46P5mz/wkGw7M+Sbjii50VezMzsBhB8G9hwYN3iTjeO2F8Iolm00UgtD X-Received: by 2002:aca:bad7:: with SMTP id k206mr6350017oif.78.1584101120464; Fri, 13 Mar 2020 05:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584101120; cv=none; d=google.com; s=arc-20160816; b=omcXE7no9dptOj/bt05d3cHwpCFH4NO7ZNlPKvPPyii5aRNOlAMlYbcsDA8OW9/KYx Jar/oH7MqDM0LMz+OdWLdSH1stw/xUROgCXxp63bcHq+tqxGasKVgh6gKjHNJB4Ue8OF nJERYLp0vZdd6CIl40w45/VLZFtHNft3DIJ275lEnPtGtlpyY9YqB2ms2Jqs8afFz37Z +qYXJ8LxVUU3U8qNNOnoNdZeVLTlckRqHMWF1xpe5lIxViu6/n0rn4+sm/vsD8gMAfEN UGtCH5CmLcoK0jaC0z++1Y2+G6sqf1IjSDbqsFPar29Qji9iAcAMl5IQKmYRcnHbSraR +jng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=LdyP0xtpqEK7NtOwWqBpgvkQGBieYZM/tfi5UNrvytY=; b=uJC8Lhw0NvGy+VHBnTrBVtG5z3MVI96YYyc1MyMAYScMs5Gm3u4xe2+n5qljknulL3 sINcxK4Ye+NWX+mLkmzs7c0DYprmw3lZdgJs7jHTF77YQiJQfay21PPidpn3FXuEbn6t QZl9ch5NUpf9rTMb0SpX5XTw1THWotN0RMA0qrSuaAhYq2cLQ9mQ9EYxYnhHhTfVzjzB EMkdBtK/UVXcvxgCtLKgM4E53wsWtPuTkAfJdTEBbSyKU90unKtx2z2ccw95+BBSHxUs 2rXpwaTUHglJCs7QPB89OaiwSU3ZMitpJSvnHEOzkCs7rgYgKVZgSHRTZwnNiT2/mTvo EUvA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si2936012ote.134.2020.03.13.05.05.05; Fri, 13 Mar 2020 05:05:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726667AbgCMMEf (ORCPT + 99 others); Fri, 13 Mar 2020 08:04:35 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51990 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgCMMEe (ORCPT ); Fri, 13 Mar 2020 08:04:34 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D720F1A1428; Fri, 13 Mar 2020 13:04:32 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CB5FE1A1419; Fri, 13 Mar 2020 13:04:32 +0100 (CET) Received: from fsr-fed2164-101.ea.freescale.net (fsr-fed2164-101.ea.freescale.net [10.171.82.91]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 6431A203CE; Fri, 13 Mar 2020 13:04:32 +0100 (CET) From: Madalin Bucur To: davem@davemloft.net, netdev@vger.kernel.org Cc: devicetree@vger.kernel.org, shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, Madalin Bucur Subject: [PATCH net 1/3] net: fsl/fman: treat all RGMII modes in memac_adjust_link() Date: Fri, 13 Mar 2020 14:04:23 +0200 Message-Id: <1584101065-3482-2-git-send-email-madalin.bucur@oss.nxp.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1584101065-3482-1-git-send-email-madalin.bucur@oss.nxp.com> References: <1584101065-3482-1-git-send-email-madalin.bucur@oss.nxp.com> Content-Type: text/plain; charset="us-ascii" Reply-to: madalin.bucur@oss.nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Treat all internal delay variants the same as RGMII. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_memac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c index e1901874c19f..0fc98584974a 100644 --- a/drivers/net/ethernet/freescale/fman/fman_memac.c +++ b/drivers/net/ethernet/freescale/fman/fman_memac.c @@ -782,7 +782,10 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed) /* Set full duplex */ tmp &= ~IF_MODE_HD; - if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) { + if (memac->phy_if == PHY_INTERFACE_MODE_RGMII || + memac->phy_if == PHY_INTERFACE_MODE_RGMII_ID || + memac->phy_if == PHY_INTERFACE_MODE_RGMII_RXID || + memac->phy_if == PHY_INTERFACE_MODE_RGMII_TXID) { /* Configure RGMII in manual mode */ tmp &= ~IF_MODE_RGMII_AUTO; tmp &= ~IF_MODE_RGMII_SP_MASK; -- 2.1.0