Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1003483ybc; Sat, 16 Nov 2019 12:51:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzbgUQRWP5YK0Au9B8/3V4gY6AEjnz5k1vp1VOenKVmJEuKyRlcbHV8R7ELUZTAUnD45Omf X-Received: by 2002:a17:906:5453:: with SMTP id d19mr12218859ejp.301.1573937481234; Sat, 16 Nov 2019 12:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573937481; cv=none; d=google.com; s=arc-20160816; b=NHc3rMV0WOXhmoPQlttIEzphW8Kmm0cTK29aB8+nxrhoc9ItbuF5MpMPspVzayWMxd h1UJihmDMrtma4qApA9pooq8v3RMyO5sYpgeaG05LQJ8eRHaL10w0goFXJN97R060IAh mVPXuV8w/uiIrS05A5G9Bc2n2XIJr805ifZN6aZHMrSr50wrd3JmymbQGRGfmHGpUXIA Zejz7YMTha4dgwFLEX0n8fBPQPYYCJUdPVPDbbf4T4KggdTzksZsA8uGvWlBee1f51nL uloefTTBMgc7koK7VfHftprk/F/5gj2ZTRxgn/rvLjDS1CPCF4wI1JkytoCie6Dmyv+P anrA== 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; bh=igiFW+RmwmnePg30SEtqyy+NY7PewEJdYFe99OPu3ys=; b=eS4hXm6OerHz5oHPd6znWalfFfguvhSX58LQYFZVboN/UU/2+FVJyHoKwzXb6x3hJl QZYhTg9jTxW9IZWBeKf28kDTm8UxfIRdUuRPYZ3NFvfa0+HNWep0ky41ShmsTqpzHOpy DNqYds2eO0qjNKV7mBsmQPfxMgeo/zA/m9uN9PpDN9gA9yolZ+ZLEMgZ1FU5Z1ZAPyma swFp/Zm2x/0oMYa03iVjSSCHq36FYvh8Eq9XJuUjvYuUUUo0hhexKtZdEAp3ersMuOig QvrN4t3KTc/Hrv/7ygqMhMAgpjZHhK3j7cKxd6C0zjuWRyqfXBE6Kq2hrgYEZhybwxW+ DthQ== 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 i30si9802300edd.124.2019.11.16.12.50.57; Sat, 16 Nov 2019 12:51:21 -0800 (PST) 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 S1727738AbfKPUtk (ORCPT + 99 others); Sat, 16 Nov 2019 15:49:40 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:53610 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfKPUtj (ORCPT ); Sat, 16 Nov 2019 15:49:39 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::3d5]) (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 3E4171518AA52; Sat, 16 Nov 2019 12:49:38 -0800 (PST) Date: Sat, 16 Nov 2019 12:49:37 -0800 (PST) Message-Id: <20191116.124937.2149949659485060921.davem@davemloft.net> To: po.liu@nxp.com Cc: ivan.khoronzhuk@linaro.org, claudiu.manoil@nxp.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, vinicius.gomes@intel.com, vladimir.oltean@nxp.com, alexandru.marginean@nxp.com, xiaoliang.yang_1@nxp.com, roy.zang@nxp.com, mingkai.hu@nxp.com, jerry.huang@nxp.com, leoyang.li@nxp.com Subject: Re: [v4,net-next, 2/2] enetc: update TSN Qbv PSPEED set according to adjust link speed From: David Miller In-Reply-To: <20191115031846.4871-2-Po.Liu@nxp.com> References: <20191114045833.18064-2-Po.Liu@nxp.com> <20191115031846.4871-1-Po.Liu@nxp.com> <20191115031846.4871-2-Po.Liu@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii 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, 16 Nov 2019 12:49:38 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Po Liu Date: Fri, 15 Nov 2019 03:33:41 +0000 > ENETC has a register PSPEED to indicate the link speed of hardware. > It is need to update accordingly. PSPEED field needs to be updated > with the port speed for QBV scheduling purposes. Or else there is > chance for gate slot not free by frame taking the MAC if PSPEED and > phy speed not match. So update PSPEED when link adjust. This is > implement by the adjust_link. > > Signed-off-by: Po Liu > Signed-off-by: Claudiu Manoil > Signed-off-by: Vladimir Oltean Applied.