Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp792160pxk; Thu, 24 Sep 2020 20:06:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi8BQrX5wnqK76QNMMHTkuv1TX7ZibssSvOTijEEG6UUA41ZB5hRdfCXK/z4PQCIim3Rwy X-Received: by 2002:a17:906:7f0b:: with SMTP id d11mr668977ejr.439.1601003186377; Thu, 24 Sep 2020 20:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601003186; cv=none; d=google.com; s=arc-20160816; b=pMsdfIoHFMp2+44fmlc7wQjJyB8BSawCfEFSBHhx24zUXyiq7HEhyFjQEVDT1wTF8c fetRa0CHoeKgszEluJge9UPLRZtx1shs/nUB/WZXrvxn/UuSfbI1dQU2+U+p7AQVv8dY LBDrDKTaYPOF3mn5oqx6bsf1LfXKW1Lc3ct4p2vTZYs54wovr4FgfYidy+DwYm2q6AxL X/vssN6fMcBWktsch2o2j5BZFi2i2kS5mDr9ctXjfErDmO+2TpyVdohcSEe9f5ubuAyB hf5XmveIw7BTwoXCq/NHX99Voles3i1/8tFTggnqhFiEbTdMvr6P75OwwyA1fXwPMvwI oZzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=HbSxOPcOmoAPlvGzz88WUBADQS8x1xd3z8QAk+WQkeo=; b=UhhFi6uYNqK0H+2GZsnPKais9PnXpy7YLoJZyZ5Ooyw1hJx6ytl6FEcH3x2Fx49xVl 1BvnTmqZVxctMK1t15Nd2VoNJwOgcS15WHU7+wcJlejbwMgxRKRM5zWioeE42cgZZF+C rvgy72NBFMDPWfQweHbpEI/hPiioLBC4KtbkR3LXwWo5ItVOv/mJOoDZmkpf+/5Ejrxf 5pDy7gK8AR36rHydKI9GqSSOgXgLLQeTJy+uty3rnF1xiCfcvPu7zyttpv3oEP8BxqS1 Gh3rhWoGXFGQB5YZ4AYhDQTPIAsa/Xg69KtSs3w385zYElileG47VKqOlyvnlRi9VF1h zqzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga5si1147369ejb.547.2020.09.24.20.06.03; Thu, 24 Sep 2020 20:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727034AbgIYDC3 (ORCPT + 99 others); Thu, 24 Sep 2020 23:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbgIYDC2 (ORCPT ); Thu, 24 Sep 2020 23:02:28 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A6FC0613CE; Thu, 24 Sep 2020 20:02:28 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::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 643E7135F8F17; Thu, 24 Sep 2020 19:45:40 -0700 (PDT) Date: Thu, 24 Sep 2020 20:02:26 -0700 (PDT) Message-Id: <20200924.200226.18307161355531225.davem@davemloft.net> To: xiaoliang.yang_1@nxp.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, allan.nielsen@microchip.com, joergen.andreasen@microchip.com, UNGLinuxDriver@microchip.com, alexandru.marginean@nxp.com, po.liu@nxp.com, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, leoyang.li@nxp.com Subject: Re: [net] net: dsa: felix: convert TAS link speed based on phylink speed From: David Miller In-Reply-To: <20200924015746.7994-1-xiaoliang.yang_1@nxp.com> References: <20200924015746.7994-1-xiaoliang.yang_1@nxp.com> X-Mailer: Mew version 6.8 on Emacs 27.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 [2620:137:e000::1:9]); Thu, 24 Sep 2020 19:45:40 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiaoliang Yang Date: Thu, 24 Sep 2020 09:57:46 +0800 > state->speed holds a value of 10, 100, 1000 or 2500, but > QSYS_TAG_CONFIG_LINK_SPEED expects a value of 0, 1, 2, 3. So convert the > speed to a proper value. > > Fixes: de143c0e274b ("net: dsa: felix: Configure Time-Aware Scheduler via taprio offload") > Signed-off-by: Xiaoliang Yang > Reviewed-by: Vladimir Oltean Applied and queued up for -stable.