Received: by 10.213.65.68 with SMTP id h4csp148875imn; Thu, 15 Mar 2018 12:20:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELu5zCuBx5lnT5YQqzXytx9w9ycsSzTBdmPhwUv9EemSmHxuTUxj0+mURsRxM7oAubEFBgK+ X-Received: by 2002:a17:902:904b:: with SMTP id w11-v6mr9411215plz.11.1521141645725; Thu, 15 Mar 2018 12:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521141645; cv=none; d=google.com; s=arc-20160816; b=CL51EU3LE+ztjedC9bDo15smyxhbxovjpkPl2b6vZmNJGC5l6OYMztMsGsn+5zK/VJ XYnZdR77P/502GxSun4jFO5gdFjAbQnQ3unpauYYjBIOZxXjf3lbRVwqtQ07tPHhVWVV 1bfBMhI0jOWdhpf1wtVNpyMHvrA78AVw6qDC4y/MrIWwCgKsx3/ASnwtQP/hOP0eNlpB pIZiBHNDJX+WqinMUPwmkbCqJTmxvwbFWKrtoBuHw6p7ksXiFf2T/ftcLxCiB9qEz7Dq fFCtNPvgZlZ5cm0M5WuZSfviJaoz5nVB7U5NFEhJ7UoyNP/Tf3Ldu4zC128xWLEaQ0ml P3yA== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=qBP6ge5sZO8Zt889k+oFKcp6a1EShIIX/cNz1pJ7ouw=; b=Vv7bdGcxUEvc/UAqaDuQZ8RlbQBctBs//Aar0yomN1jcAWNRWp4nCPn7/gkU76OlbK Y8W7TN51WL9gcS+WoSH6pC5e+dzQFp9cLwgSKtNzcDIOCh2y7oSsBUJrKnPK+HRjELnY Rt8UdfJxQVIyPRkyHtDlpoh6hHwd34hZvErvagjRC+iWbgFUZ2bhwwC1MeLmRvGhk75a cuN0Ft49OiuHlGhBT1STxnvgCQBqeLhP1f6V7S499b+uC3NTqBypInHaW5mSBHMQcn1u TGX4+ckVtfAXKIXKLT5m3tMS/3uBFgFU8WwI29mtcBWK62UxEq9JCCgbRSVDPDhNpe+j 7gHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lsDx2S3L; 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 f18si2146129pgn.244.2018.03.15.12.20.31; Thu, 15 Mar 2018 12:20:45 -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=lsDx2S3L; 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 S1752819AbeCOTTg (ORCPT + 99 others); Thu, 15 Mar 2018 15:19:36 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:44459 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751969AbeCOTTe (ORCPT ); Thu, 15 Mar 2018 15:19:34 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2FJJSFx027603; Thu, 15 Mar 2018 14:19:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521141568; bh=Rfw4+823+SQ9QslKrQZj/q03jBtwH8QkdcqHvCjJY4I=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=lsDx2S3LfCalk8BlaQ0WYOMwQ5oKykBRJOnRJJ3QJ/49bh3UVKbIk9AMplfTfUZU1 l8xCTmKNkcScJe2Mkw/TOCimn5Ls4SOLtasyk0L4aPDePWxRRSOcuTYH+GzDxgKD2Q Y2pjYrL6fMNQZsixiqvgJ/7RXzVRz52MdAbqtKtk= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2FJJSSb009967; Thu, 15 Mar 2018 14:19:28 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE104.ent.ti.com (10.64.6.25) 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 14:19:28 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE103.ent.ti.com (10.64.6.24) 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 14:19:28 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2FJJSPM003267; Thu, 15 Mar 2018 14:19:28 -0500 Subject: Re: [PATCH v2] net: ethernet: ti: cpsw: add check for in-band mode setting with RGMII PHY interface To: Florian Fainelli , =?UTF-8?B?U1ogTGluICjmnpfkuIo=?= =?UTF-8?B?5pm6KQ==?= , "David S. Miller" CC: Schuyler Patton , Ivan Khoronzhuk , Keerthy , Sekhar Nori , , , References: <20180315165603.30471-1-sz.lin@moxa.com> From: Grygorii Strashko Message-ID: Date: Thu, 15 Mar 2018 14:19:28 -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" 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 01:29 PM, Florian Fainelli wrote: > On 03/15/2018 11:18 AM, Grygorii Strashko wrote: >> >> >> 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+? > > This is not how it works for networking changes, just make sure you > provide a "Fixes:" tag, and David would usually take care of queueing > the change to -stable accordingly: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/networking/netdev-FAQ.txt#n148 > Sry, I know that, but this patch fixes very old commit [1] and it can't be applied to old Kernels without merge conflicts or build errors:(, so I've manually checked if it can be applied to most recent stable kernels and noted kernel versions here. Also there is dependency from phy_interface_is_rgmii() which was merged in v4.2. [1] commit a81d8762d713 ("drivers: net cpsw: Enable In Band mode in cpsw for 10 mbps") ^ went in v3.13 -- regards, -grygorii