Received: by 10.213.65.68 with SMTP id h4csp124123imn; Thu, 15 Mar 2018 11:31:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELuvXNd8cdSfthynrEtdLr3LxFlS4vuAt5tG6Oy382XQ3mhWJsKchNKo1f95HdbqDe1GyN4F X-Received: by 10.99.153.1 with SMTP id d1mr7410278pge.338.1521138672660; Thu, 15 Mar 2018 11:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521138672; cv=none; d=google.com; s=arc-20160816; b=SQBfDECwSodFclFRf0x2o4q4nWALg1sf9zIjDSm+ZUEDglF/RMdWJhVHFFSDIvJVIX a5tfGnMFBZP5i5cfp60D+5TwaJa3RinlmRoEN13NPqq3P/Fjnau5bnwYB/AC+aNTFp1h UjDzaugoOo0K8vshqX+Ojv4Wln/ivqiCg8hceD8nZQSvTPJBnnCLMtseyvXHqYOAMEZ/ h1XJyKItXD4VUFq/SVFvcto9Zr1NIdcCxAOgqTvyIl1ILSd7Try0YC3JCqbZDFTN36ud kD25hIkVC0GNDjtu5LfczK6W3lEZ1u11kJdGrZYp0O9+gWdTCADq9Q+j7Ocl8eCcOjIS YJNw== 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=2s4A9n4lMtqkBR4RnxLz5mzH1GLcQlP47f4jl9/+TMU=; b=EX4LEDc5wEm7uQBU+5ijukvvBsXpMbAKL8R5OrGQ60C7TV8ZOm/94wjp/ofDPdTfVf fjRiOHa8mcyfnGPWgfqnqpXvz+kpDnds4RS/dBO3IXwjMKaCF84rAiyDuZnnc+mL3oj/ Xu4k9QZ3Td1wi+TX0RYM7eqqwQwbrNoOR3bzxph4R2+Ipto/Pjxf8I6/mfOjauMYHUhB 2Yk+xYF9l/cLMatlTc9gZMYEE5AZ9ZZfVXxYqWlZ1AzetEb7xvo5QwFNsPj6krltWolc /tixYxrhkalVAjUUJTmTPFILxFO8nSZy8Eg2D2gV/FjG2TIITAN8EJVslR7K6LDD+HxM MBJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aemjho73; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t74si4207440pfk.160.2018.03.15.11.30.57; Thu, 15 Mar 2018 11:31:12 -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=@gmail.com header.s=20161025 header.b=aemjho73; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932528AbeCOS3W (ORCPT + 99 others); Thu, 15 Mar 2018 14:29:22 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:43864 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbeCOS3T (ORCPT ); Thu, 15 Mar 2018 14:29:19 -0400 Received: by mail-qt0-f196.google.com with SMTP id s48so8250578qtb.10; Thu, 15 Mar 2018 11:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2s4A9n4lMtqkBR4RnxLz5mzH1GLcQlP47f4jl9/+TMU=; b=aemjho73yiovqFoibteRw4E/rvDpjvH0qM6wcDbcsb/Ms1QsMMOla2NmP+hba6XIuY A2TyHHP6651IrEwfj1SXDD781QpG7azDAtxxsxJp+q6JyyxeHxptxqkINfQyQBsshfwT KzAKE+TNAWq/Jy023nXcA4o+YgmgsAQtvQN5yOrpK+Fsq7IRq0H1112jy6mWZLntMDhL 6+SSKEmDf4MojFlWmxSXH+rKpuy+JKwICD+Piox0h3V+HI+sJ6dTdZJq9U5cLdkBsE5y h9Y9BrWItOcS2cKQay2WOOX6F8uK9lIYhRSFvKtIDnp1HVYlhfldYE5CF1vbpQkK9ER8 h/TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2s4A9n4lMtqkBR4RnxLz5mzH1GLcQlP47f4jl9/+TMU=; b=Z4Y7yLw4C6EGIQCDDLhLmO/kMQyWLWPSvGsj/QMcYUQ9UqCcfzX6tfCNCOe571ik90 s8tH/Lig1utB3LPTIzH35S2/awyVw8IrLFr8knKNQIlexthdZ8JJrPCDCBoclgZjuYv1 NDZLnmcDEMeUfWMFeel5hIJzL2ozaNWvDEzrzeMFLVaO83KswqaBdCgWKLdfQXrcCQTb yW4NmN/PW2N9ypozJ6oM3cWbMFJ3DyT8bXftvuvRqzchJFaV6+PSuYj40EJ+UIjUFK+7 +41fRQJWRUid7Isn2u9auQsTuwBZlcqmtgcwbljl6XJCnSMclNmzsnU/jY5awL9FZkZr LWLw== X-Gm-Message-State: AElRT7Fz5gQTGxS8lrVdLw7zgq+KqyYAwnj7Bcaq7jr3U98jR0toHQGZ XcX4hccgDgbVSYDYO8EGPmBVn6Ho X-Received: by 10.237.62.243 with SMTP id o48mr4369082qtf.3.1521138557856; Thu, 15 Mar 2018 11:29:17 -0700 (PDT) Received: from [10.69.41.93] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id a17sm4039640qth.71.2018.03.15.11.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 11:29:16 -0700 (PDT) Subject: Re: [PATCH v2] net: ethernet: ti: cpsw: add check for in-band mode setting with RGMII PHY interface To: Grygorii Strashko , =?UTF-8?B?U1ogTGluICjmnpfkuIrmmbop?= , "David S. Miller" Cc: Schuyler Patton , Ivan Khoronzhuk , Keerthy , Sekhar Nori , linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180315165603.30471-1-sz.lin@moxa.com> From: Florian Fainelli Message-ID: Date: Thu, 15 Mar 2018 11:29:07 -0700 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Florian