Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2233123ybi; Thu, 20 Jun 2019 11:18:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpyccAcP0ct9cVHIZrRbTItl/9LjK+hwVMaPfhEmq+ACxqOrcN4x23ZpP8pIOi0q0HBYCZ X-Received: by 2002:a63:3383:: with SMTP id z125mr333510pgz.8.1561054697010; Thu, 20 Jun 2019 11:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054697; cv=none; d=google.com; s=arc-20160816; b=awtj5Ytkz51tWbgHWYCtP1v4sVSxo9zZ0Z/P4oJ5nyLU1PMdpOwDW+2UUrDNqTzNYZ IgQA7fchay9u0YW8CTyVrAyTEIJ7lcRDVDZ2vmvuRuGqxeP1r5dQ4r45AlV2zhhGJSWK kIi0DH+iw89C71lCYxQ3SK400s1AUxzJbvuggYbv9/WsdpMdV0yNRoNmaFqG3CP33UgB ePRUG/9wA8imYxIZG3Knfs8i/+nQhM6TH7gi2MHzwyabE7+I6Cb1qXZYVGWkVL7DzIyw ea/tinFTZCCiGLik8niH7ooYjjOZQH8V66OoACJhqmxmHyr6i6WCudNfzngGJqfryuRI 5ujQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fRjk8EqutFtHmUXmZu9PwrY//M2DGasgaDH8bCHC4yA=; b=EaO4RkSeNhGy8b2yOtKOGPV7qNaOAP6BWj4ysRaRwnGAzKBCHo7dj7n35M1m8ww6TF FeN9VxQHrmlf6ZrgCEhO/tJjTDZCu77CS/DIBh2Z77UDENbHZjnhAPQ5VexyBLnCSKKE FKJZyUEjTd+AzeNaQBg8YnKmI7eGZ/2XuilLNus8p9MX7dXsuwXrfwJTiqNV/eCUJZaM BJVseYiNDinIYDOiaucdAUNYH4/XSYi4YWD/5K+KalEIlX07wJ5xMWg/cQlXSCD4zI6Q WhTil7kU3vuodD4O57SgTLeBd4gARUNvy4sWPwZBGWi11qI0z/ZfU3giVdFwP23LBw7/ oMkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YmNyGZr3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si208328pga.149.2019.06.20.11.18.01; Thu, 20 Jun 2019 11:18:16 -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=YmNyGZr3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729597AbfFTSQr (ORCPT + 99 others); Thu, 20 Jun 2019 14:16:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbfFTSQq (ORCPT ); Thu, 20 Jun 2019 14:16:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 476B12089C; Thu, 20 Jun 2019 18:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054605; bh=0oUtWq4O4No5YNWYN3+fa6+yvVT27mA2uuNIg2eMj9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YmNyGZr3p2T0DriQ6HHdU7uPcemN+Ksmd2ESyHg0pIlKJ4tjmZlmkK8E9WeKmRbxg iEdNJ+0fKL3MZSyUcP4Yep1rCQ4NIC9FJwtdBbuwa7Xswb3Ng0EQHGP9UO/cOFbyx/ elszpZtMQgmXDlcMrNWtWcave0c70SL09ePnlkGU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Uvarov , Florian Fainelli , "David S. Miller" , Sasha Levin Subject: [PATCH 5.1 87/98] net: phy: dp83867: Set up RGMII TX delay Date: Thu, 20 Jun 2019 19:57:54 +0200 Message-Id: <20190620174353.720858985@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2b892649254fec01678c64f16427622b41fa27f4 ] PHY_INTERFACE_MODE_RGMII_RXID is less then TXID so code to set tx delay is never called. Fixes: 2a10154abcb75 ("net: phy: dp83867: Add TI dp83867 phy") Signed-off-by: Max Uvarov Cc: Florian Fainelli Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/dp83867.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index ffaf67bdb140..2995a1788ceb 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -255,10 +255,8 @@ static int dp83867_config_init(struct phy_device *phydev) ret = phy_write(phydev, MII_DP83867_PHYCTRL, val); if (ret) return ret; - } - if ((phydev->interface >= PHY_INTERFACE_MODE_RGMII_ID) && - (phydev->interface <= PHY_INTERFACE_MODE_RGMII_RXID)) { + /* Set up RGMII delays */ val = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_RGMIICTL); if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) -- 2.20.1