From patchwork Fri Jun 26 18:17:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 191885 Delivered-To: patch@linaro.org Received: by 2002:a54:3249:0:0:0:0:0 with SMTP id g9csp646890ecs; Fri, 26 Jun 2020 11:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLvLaR5zk27hACXHjsPQz6QLnU9bl5xM59XB3xkSNWbmXOBKJO68+ju5CSyeiekj3E6oMl X-Received: by 2002:a05:6402:c95:: with SMTP id cm21mr4534434edb.255.1593195465571; Fri, 26 Jun 2020 11:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593195465; cv=none; d=google.com; s=arc-20160816; b=XkRDrtamvI5GrwPDpSgKFJtRfrB0tYKWAQAhTiJL3Xx+xQBdbqRE20ZAJUalPjGOrO gyaUeCI2DUZXzOOtY8kDamPw6Hrc6+IZNxwr+bomNTyBbLBvmx1ITfeV+mRMVM03L4JR oo0ug8NBR0O/ZsOHUQLNPQq6mLcCaQikSWxAwbkiQqy+vX4aDiCX8I9ipjhdij7J4L5f xXkByyzeMCoPbtpqr17zI7Svu7ZZFBdm4GOeIjLMiQ8+UAeCOqum7hXMOf3Eppi+0O3W CzGjtMww0CHGYnzvZJBnH+UxcAy8VvZJGhk0i3lP8aQcdHPT+gQN/5jEJhvcopmKaw3q X+Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=PSrVH9Vy0CJwlnXdecSsLB4MTfyMn7rqBfKHS4xMWEQ=; b=D6x0MNhEtBtREvSTu3oeDc4F0a/T2XGLwL7iwNFf7nyWqAanwQdXgB2WwvMJY3Yx9Z LoJ9bCoi7GMPpsld0BXLXPfFnT9c90clcEWCtryFQvNSohv3Qx2LNTusaLTVY5ZMHbaH n0GRaLW4P4KAk7tfw8OYCxn6RH5ErOWUv+9tw+UvHkcKwJ/uMdTMXTCYfaCphHAxVvlO 5nMa/LFR8nRGYUISA2ggWDQytpzhXwJMcpb4kznhrar5Q8KSUiEOP6r+/EBN0x3HYJIA maFJ7B63pTtqAuGa++FG7UhXuREvkBck9GpqIpdq5M0TgiRKhXRnVPz1VBuizAbd96to kOZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MP5q6HVl; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si13555565edd.252.2020.06.26.11.17.45; Fri, 26 Jun 2020 11:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MP5q6HVl; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726424AbgFZSRc (ORCPT + 9 others); Fri, 26 Jun 2020 14:17:32 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:59798 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbgFZSRa (ORCPT ); Fri, 26 Jun 2020 14:17:30 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05QIHEtQ115231; Fri, 26 Jun 2020 13:17:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1593195434; bh=PSrVH9Vy0CJwlnXdecSsLB4MTfyMn7rqBfKHS4xMWEQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MP5q6HVlfEWMWDTxgnPZBFc+ZU0ONGVhQAfH9uV4BxwCnzOSsFtjxF3YE7inZ8S86 n3F7BoSdOy8SXm2IaLbIZzTpdEz64KiRV5HSb7+6B7hDkohys0VOTuIWG15r2vK0im 3GswGXEtdLseMR5as4tb4WvEwa3vE0nf5O5oygqg= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05QIHEO2004129; Fri, 26 Jun 2020 13:17:14 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 26 Jun 2020 13:17:14 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 26 Jun 2020 13:17:14 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05QIHDXV122772; Fri, 26 Jun 2020 13:17:13 -0500 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski CC: Sekhar Nori , , , Murali Karicheri , Vignesh Raghavendra , Jan Kiszka , Grygorii Strashko Subject: [PATCH net-next 2/6] net: ethernet: ti: am65-cpsw: move to pf_p0_rx_ptype_rrobin init in probe Date: Fri, 26 Jun 2020 21:17:05 +0300 Message-ID: <20200626181709.22635-3-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200626181709.22635-1-grygorii.strashko@ti.com> References: <20200626181709.22635-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The pf_p0_rx_ptype_rrobin is global parameter so move its initialization in probe. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 82d3b1f20890..89ea29a26c3a 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -1894,8 +1894,6 @@ static int am65_cpsw_nuss_init_ndev_2g(struct am65_cpsw_common *common) netif_napi_add(port->ndev, &common->napi_rx, am65_cpsw_nuss_rx_poll, NAPI_POLL_WEIGHT); - common->pf_p0_rx_ptype_rrobin = false; - return ret; } @@ -2038,6 +2036,7 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev) common->rx_flow_id_base = -1; init_completion(&common->tdown_complete); common->tx_ch_num = 1; + common->pf_p0_rx_ptype_rrobin = false; ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(48)); if (ret) {