Received: by 10.213.65.68 with SMTP id h4csp118659imn; Thu, 15 Mar 2018 11:20:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELtSj5cgFMBxhxn/6I49dl0vxyEZFMmJ777aLoftTKuLzCGUlaEnHXFwH8K27xCEFOhKWw3D X-Received: by 10.99.63.14 with SMTP id m14mr7346893pga.174.1521138017834; Thu, 15 Mar 2018 11:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521138017; cv=none; d=google.com; s=arc-20160816; b=lJ2aSXbtLhudgWNMwwhhoVvO45d7kqd70u0InVajyyUi8QkLLHn4esZ5hnh1O1Wfxc 26oqSANZtvO0GZ22h7h6+WyImElcWxXSXEJQ/wpV7lkLvFV0ZL6jPSFwTIjV7W7Ynykp C4tqVntdtP8yYNbFltIaV/fgcL5cHkq+mrYFxU/qCfGOTd6yA9nVoNOChwjTEVDpjNKk midY6ZjY+GpHXl6sEVyxCl3lfd5CotXXc9ylC0uxBgmGTgFL6L6/X/ovYrdI6SiVdNfP nfibKe0tqvUcqKkwhz6O1ElCxU8uUHDeI2/Vvr3sEZj3uk8VNuVMkEgIiBb+JV6YIUjm T36Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=mDfBcgwAS9BkAhj7xNvxEdHUfaoKOx6ksWQcO3QwUYM=; b=z1fEwPW0+kRljSyXQM7QkjKhqCgOS/a++rt9ZYeRywWGOZSJA1dEGoa6eKmJe0NPPI I+vQiSssDgzovT4/ZDUj/Kd+PQGiRAbiH/Xv9hJus/zQbNyHr6ehsE6T8vtFLWUT9T7C 7wg5TODwmM6zvJG1buO3+DuQTzFe1HhcqzdVQtUkpyqz4MyhUGO+/VkJqmsYWSj/GSwK HGBXKtO1k3GDSH+iSgrKdke6whlOmXqTgPxN7SHI0ow02X5LhOB2iqmN2q8mL9AgVz8v wjnfXQ5kQzvpiOWywtQTGiWLHJkZpPGMALLbcncEDa/EtobdGOsWuIN23W/B9JjWThB5 3TUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mKfZo4Ft; 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 z13-v6si4386628plo.614.2018.03.15.11.20.02; Thu, 15 Mar 2018 11:20:17 -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=mKfZo4Ft; 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 S1752736AbeCOSSx (ORCPT + 99 others); Thu, 15 Mar 2018 14:18:53 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:48315 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307AbeCOSSv (ORCPT ); Thu, 15 Mar 2018 14:18:51 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2FIIkT7004574; Thu, 15 Mar 2018 13:18:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521137926; bh=TdBDjSooGEBNJ07PK6732shCmrH7nFm3gGj56upgbks=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=mKfZo4FtUYwy0ZYd5lXKnvCg6G8SOx5rh3/qftflimvc3YX4vcs8WtW+tefYs36ht EoaqR93DNGuVvK1011abJ2e4BDT5n94nA2FIERUMbpi4dWf71mHGgodEJdVu0VrXlq pLPZoe1aakiDXPXOfnaq2SwQ7Za9i2HG27LeL81Y= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2FIIk5b009028; Thu, 15 Mar 2018 13:18:46 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 15 Mar 2018 13:18:45 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 15 Mar 2018 13:18:45 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2FIIjPq000758; Thu, 15 Mar 2018 13:18:45 -0500 Subject: Re: [PATCH v2] net: ethernet: ti: cpsw: add check for in-band mode setting with RGMII PHY interface From: Grygorii Strashko To: =?UTF-8?B?U1ogTGluICjmnpfkuIrmmbop?= , "David S. Miller" CC: Schuyler Patton , Ivan Khoronzhuk , Keerthy , Sekhar Nori , , , References: <20180315165603.30471-1-sz.lin@moxa.com> Message-ID: Date: Thu, 15 Mar 2018 13:18:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 On 03/15/2018 12:39 PM, Grygorii Strashko wrote: > > > On 03/15/2018 11:56 AM, SZ Lin (林上智) wrote: >> According to AM335x TRM[1] 14.3.6.2, AM437x TRM[2] 15.3.6.2 and >> DRA7 TRM[3] 24.11.4.8.7.3.3, in-band mode in EXT_EN(bit18) register is >> only >> available when PHY is configured in RGMII mode with 10Mbps speed. It will >> cause some networking issues without RGMII mode, such as carrier sense >> errors and low throughput. TI also mentioned this issue in their >> forum[4]. >> >> This patch adds the check mechanism for PHY interface with RGMII >> interface >> type, the in-band mode can only be set in RGMII mode with 10Mbps speed. >> >> References: >> [1]: https://www.ti.com/lit/ug/spruh73p/spruh73p.pdf >> [2]: http://www.ti.com/lit/ug/spruhl7h/spruhl7h.pdf >> [3]: http://www.ti.com/lit/ug/spruic2b/spruic2b.pdf >> [4]: https://e2e.ti.com/support/arm/sitara_arm/f/791/p/640765/2392155 >> >> Suggested-by: Holsety Chen (陳憲輝) >> Signed-off-by: SZ Lin (林上智) >> Signed-off-by: Schuyler Patton >> --- >> Changes from v1: >> - Use phy_interface_is_rgmii helper function >> - Remove blank line >> > > Reviewed-by: Grygorii Strashko > Also could this be marked as stable material 4.9+? -- regards, -grygorii