Received: by 10.213.65.68 with SMTP id h4csp602773imn; Sat, 17 Mar 2018 16:52:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELsI43vRZI47rVMYBmPzi1da8deUavvqhAKDcN1AOPbm3gWTsvYqhJibheng5ws/c9bkOM/v X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr7029060plv.324.1521330727117; Sat, 17 Mar 2018 16:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521330727; cv=none; d=google.com; s=arc-20160816; b=M5OLpL/coVPuZIloWhEYrxYYFvCg8O0jNUDq/tmBiO9RW3mxWBgsE0hmStiMfU2oYj lidblE9CSZbsdHUBgKubgmEYymS0Apl/Al+YjXzE6fZ0dWn2uvpLcYhRQK3vvicBsLZ5 7c4HIMhW7KR6vRFBOomas6Y8cTcobqJs7/EeyHM0AGYsbtotLLhyDbWd/D6fSmdEwBpL otuE71xXzRvNrTCF0PW3LXnjTf1ptmys+JE1f5gxF4UhBz4Ic4nT2UtyzRUt3pqHDuAC bSNfeg7IALzkX/Cs63n1nlrulOWyqKHh2FqGTBXs1ChxDPVUkc/KOl3U171LgBkS+34Y lfaQ== 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 :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=pTy9IoDHMfADZm3R3KlIEsX1WoYCLiJMYHWkc5zcawE=; b=LMT7e6dNhnJKWaCfpMWdgjvHgsfzx3EwMZEg8LFUQIuKPONJdzRHUlvaoI5GbJD014 NElMrzquQJR2kbceiWaTdeHlIUMzxX2rRyggKpFfXum0hd58ZRiPQVbSrIvUB2JgLN2s n/RxwrityzxUj9jWAOTiMMNcyqMZESeLolsENUQP4jQaU+qIPXrljDmZNFh43iDU3u7b 29cvs7dQPuyE75hJu37IEdBQYZUH+MfgXFGtoidcFFVaYu4j4ISzSG6P/Yl6y0MlLjoa BbSfJ0APTQ09mrojYNMWtt+Fhq7Ep3ah9RC//7XMSnMAsgTbtykr5ArQT5oPPorzOQCO 2uGw== ARC-Authentication-Results: i=1; mx.google.com; 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 m62si7347281pga.507.2018.03.17.16.51.52; Sat, 17 Mar 2018 16:52:07 -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; 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 S1753875AbeCQXur (ORCPT + 99 others); Sat, 17 Mar 2018 19:50:47 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:49966 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752755AbeCQXun (ORCPT ); Sat, 17 Mar 2018 19:50:43 -0400 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id AFB6E14214D78; Sat, 17 Mar 2018 16:50:42 -0700 (PDT) Date: Sat, 17 Mar 2018 19:50:41 -0400 (EDT) Message-Id: <20180317.195041.149491190187125605.davem@davemloft.net> To: sz.lin@moxa.com Cc: spatton@ti.com, grygorii.strashko@ti.com, ivan.khoronzhuk@linaro.org, j-keerthy@ti.com, nsekhar@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: ethernet: ti: cpsw: add check for in-band mode setting with RGMII PHY interface From: David Miller In-Reply-To: <20180315165603.30471-1-sz.lin@moxa.com> References: <20180315165603.30471-1-sz.lin@moxa.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 17 Mar 2018 16:50:43 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SZ Lin (林上智) Date: Fri, 16 Mar 2018 00:56:01 +0800 > 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 Applied and queued up for -stable, thank you.