Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp899108ybc; Tue, 12 Nov 2019 10:58:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzyAd3sSMQTahijI2ol66N6GHRjVfOeKm3Y9aukJdc7uH+gCBuq3JVO2GJw65PHRYbJnkBe X-Received: by 2002:aa7:cad0:: with SMTP id l16mr34690427edt.82.1573585138342; Tue, 12 Nov 2019 10:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573585138; cv=none; d=google.com; s=arc-20160816; b=qJDpeVHzQfPsvQwOyCB8fLrp00TA+OL5Fa3QFbmfthYFFgh0fkxSTxK1F71uFyc9fQ ZEyXl+eDWwUVbKrCovNlWZ85mxjcgmgZRXqsKHsMrhlrc3N1tCUxthajwUTpvTXNZNAg ESJrqA9VyenpDolOsM/OlulmyP5S3m2oLBdCGlsPQdnCfFTMfdxvd8BxNYDxec+wL9L2 GzWFuFi4EcVJzO0wB5+kjklPqMS96s2/iSdvam2X0179a32a4OvMcIVvC/AaCvFSqsXo yg0/5vvctgzRl+XcE4shJHgndTJEVkCH4eAn86ILMM6eAgRXUMepGYQbkGNMbEYaiHOq FtlQ== 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=GzRFnPAOVdAUo5g52FKWNUAi0ECDGAbfJmghWuD5xuQ=; b=Ocwtvm1TxXpsQi2Nt+pRVLqkndFrMr4v4KOt9S7sQ39YLpIbeCWuDQCGd7wtL1CiTR y4Zd6ZtfKar6V0IfzUUS/7x40sRwMlFPaA/w8CpvgYF7QEBs8LmvefKl1PRDM75VST0k 4jAcBz5C19Tty/GfrMgeaJkHAZ4TKDHhsfCw2ih3C5YDFSDGsSIB1pKmqgcWJBFq+NZL e/veYPGb53FA9Z5AfsJRL5QPUZ9fMyn0LPOpx8QTx5hepU/ZeCw75buINaknfjnTlIa0 3c8ifDufz+l0sQy6osoiJsbyXdwMXQxVwx0BLeBETCD2+AJBd28pxZrf8K2XcYL0uKHC JAKw== 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 f25si598258ejw.85.2019.11.12.10.58.33; Tue, 12 Nov 2019 10:58:58 -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 S1727104AbfKLS5j (ORCPT + 99 others); Tue, 12 Nov 2019 13:57:39 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:47810 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbfKLS5i (ORCPT ); Tue, 12 Nov 2019 13:57:38 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::d71]) (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 24151154CC64C; Tue, 12 Nov 2019 10:57:38 -0800 (PST) Date: Tue, 12 Nov 2019 10:57:37 -0800 (PST) Message-Id: <20191112.105737.1048367298577980363.davem@davemloft.net> To: po.liu@nxp.com Cc: 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: [v2,net-next, 2/2] enetc: update TSN Qbv PSPEED set according to adjust link speed From: David Miller In-Reply-To: <20191112082823.28998-2-Po.Liu@nxp.com> References: <20191111042715.13444-2-Po.Liu@nxp.com> <20191112082823.28998-1-Po.Liu@nxp.com> <20191112082823.28998-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]); Tue, 12 Nov 2019 10:57: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: Tue, 12 Nov 2019 08:42:55 +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.