From patchwork Wed Oct 23 14:47:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 177290 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp830448ill; Wed, 23 Oct 2019 07:48:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaR01pAokXmqrXT11kPnqrsyqaZPNth6mfF44fThHHnty392ZPCSzEv+Q+7RGSZoYOGMMy X-Received: by 2002:a17:906:6847:: with SMTP id a7mr33554049ejs.261.1571842079907; Wed, 23 Oct 2019 07:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571842079; cv=none; d=google.com; s=arc-20160816; b=WdHX9eMQxsCYfV8txE2aWibiH/aau3y9+WJIRkDpu9NCPdanSSiYUlmuDzo6hKw6uP 1EHYUSAV5Hu2eu3/8xFr5eIChwZNEwWAgjLcVM/wmel2YvfhUugZGM2CwqNqXR/9oX9/ YsDJyS2CgGwhWtU0yMY2bPYl4S4/Hj26+cVUceVpNdTGE7HW4GNRL5XrfUsX+G5J6Oqg 12QcDNBIwDliRZaKY9EZZeXtjQ595JBuaeLg1jG0szeL5W2T4+17LG4vvnFuVg7biomu zeWuD9mZOP6Mka3XuhZru12/1Ulx6r66wGKYF98izI6fBmpZUbqZfuTDGQMhb5B3Fih2 MiwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=cT6QVOINN17/Kt4DPXJNTtp2HuxVPeCSQkCxCBXAgWk=; b=cDdxLF7O94n1rQTkwKCANHAWRxGSUtSfauRCWSO7G3zWsVh7UYSEz9GO06nzhvfumz +aO6dSw3APrEtRpYQsAa3lb2UnZAfVjDAABI6d2vEnTnVVPrVJMC4CRfvwX97xb6Ru6X 9uG7DjtMasPqUJW39bx55UWv2T+yz+0DkhW7kzPILARH6qiwovg7Sd+CzAp+4FWY8fF5 6pTldhptq6L9jVE1kLb1KiLJIm3E1aqcpYvBcdhKgUMVmJHKn6LTQt2Za17PeuGQuc5x UE4KTzJcVlayHFIOBP5nFt6PINsZDXblWy8QSCxVaAlpZcB1VgSI1HbNvtYIgbJ4/7x7 YJ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CqqgzGyy; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z97si8539555ede.122.2019.10.23.07.47.59; Wed, 23 Oct 2019 07:47:59 -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=@ti.com header.s=ti-com-17Q1 header.b=CqqgzGyy; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392342AbfJWOrz (ORCPT + 26 others); Wed, 23 Oct 2019 10:47:55 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:48064 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389782AbfJWOrz (ORCPT ); Wed, 23 Oct 2019 10:47:55 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9NEls6M089549; Wed, 23 Oct 2019 09:47:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571842074; bh=cT6QVOINN17/Kt4DPXJNTtp2HuxVPeCSQkCxCBXAgWk=; h=From:To:CC:Subject:Date; b=CqqgzGyy+umx0BPLGKlIvxOL4k9bJAVHrDegXN1ncJCbHFzP6Q/f3vvjdtLOo2rGi eiDVV7bal25L+H+kThMz+qgA+RC+cgqx3DqViTsjtXxlVJJ+NWzpiYldJaBV7/ShAK DKBQkADwVOIpI813tYqB5WFFhteSWS9cZB6V6dW0= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9NElsKE100452 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Oct 2019 09:47:54 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 23 Oct 2019 09:47:44 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 23 Oct 2019 09:47:44 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9NElrBd059434; Wed, 23 Oct 2019 09:47:53 -0500 From: Grygorii Strashko To: Kishon Vijay Abraham I CC: , Sekhar Nori , , Grygorii Strashko Subject: [PATCH] phy: ti: gmii-sel: fix mac tx internal delay for rgmii-rxid Date: Wed, 23 Oct 2019 17:47:44 +0300 Message-ID: <20191023144744.1246-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now phy-gmii-sel will disable MAC TX internal delay for PHY interface mode "rgmii-rxid" which is incorrect. Hence, fix it by enabling MAC TX internal delay in the case of "rgmii-rxid" mode. Signed-off-by: Grygorii Strashko --- drivers/phy/ti/phy-gmii-sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/phy/ti/phy-gmii-sel.c b/drivers/phy/ti/phy-gmii-sel.c index a52c5bb35033..a28bd15297f5 100644 --- a/drivers/phy/ti/phy-gmii-sel.c +++ b/drivers/phy/ti/phy-gmii-sel.c @@ -69,11 +69,11 @@ static int phy_gmii_sel_mode(struct phy *phy, enum phy_mode mode, int submode) break; case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_RXID: gmii_sel_mode = AM33XX_GMII_SEL_MODE_RGMII; break; case PHY_INTERFACE_MODE_RGMII_ID: - case PHY_INTERFACE_MODE_RGMII_RXID: case PHY_INTERFACE_MODE_RGMII_TXID: gmii_sel_mode = AM33XX_GMII_SEL_MODE_RGMII; rgmii_id = 1;