From patchwork Thu Sep 10 20:28:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249678 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1079913ilk; Thu, 10 Sep 2020 13:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1dFU5aQaRUMHG7Z1r8+PKOCbxK8X54WPCofHEVaBYKGFsF0PSus9OPZd4tGO4H18JbLCg X-Received: by 2002:a17:906:bb0e:: with SMTP id jz14mr11238578ejb.525.1599770747287; Thu, 10 Sep 2020 13:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599770747; cv=none; d=google.com; s=arc-20160816; b=QfZ+0Hj/JuPcmvpQwVVTfXdckAf0mgEf7l1oEYGTzzm6xwPhtVU09UAW1TanJRbRvt YMRF47oAuVQEYuEjzSzgCnU126mDxpOCnuCpEXBxjyf1xq2rL73u0/w3+H0rav7ND4YL N1gANgaQRlPKgsfWn8/ifqnzPCSaI9TD0Me/7tmyXaP1z4ShrH6jeYjW+l7EmUz5QddI ikp9d+WFu/XDWx/QXIiwisSqCk7BAYryZe385HYudg1LdjQWvKEsKoTBLtWTKDAc+okM u55Qp+Et68gu+CNtr6ZI0CRBuKzNkLzv//E41ImJhP4kpdxxv81a6uMdBL6IFH4Dfl5M 1H/g== 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=aLrHDDzUSZnntyTRNgcA+XJgDx0ERfOCTms6pbod928=; b=ICah7tZTNB95bbqcdLrvAoibfI3CFHyOw2LC737grEXtaX3MD+ow6vIn4iRKdKgnir KHed6W1Scyr/IfVy0LpXaEUdVFYxCutMYHrRVEqsxxuneabfdUx/KASDCp3uYmjGDUoW 48aaQfvhY/n1v0vF7zFxWH3haGazwkRy3+P7hBsRUjhdwVNJY9dbT2hg3+N2yxZ/7oGm XM/pYN5uvPlNUsV3n21RkENfQIXDsLNm0aEbCZVH2gqYNrn5s0h521o5SjPzzxQ646m4 2TovrK6FL918Zn/zE1IlXq06fVMy7IY2h5JbAlKWELgFFMF7qK+AdAH04D2neaCfJA25 cY2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uPtksaCu; 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 l6si4300387ejg.212.2020.09.10.13.45.47; Thu, 10 Sep 2020 13:45:47 -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=uPtksaCu; 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 S1726805AbgIJUpp (ORCPT + 8 others); Thu, 10 Sep 2020 16:45:45 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52872 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbgIJU2m (ORCPT ); Thu, 10 Sep 2020 16:28:42 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08AKSbpF057713; Thu, 10 Sep 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599769717; bh=aLrHDDzUSZnntyTRNgcA+XJgDx0ERfOCTms6pbod928=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=uPtksaCucms+eERJ5uWSYAsys6oz32h4Y+xnu5hg7p2YzxvDL+GdEUy9YS8+B5m3M jpEPMCTVbRABBStO/A9NeemiHYZw+Jc8RaW2Z45DKf7lFaPmAASs45s1724k7MXK+A ETG5ajKFLqaZ5hpcocZu8/1iAynF//P1BhuL7WXE= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08AKSarM041540 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Sep 2020 15:28:36 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 10 Sep 2020 15:28:36 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE105.ent.ti.com (157.170.170.35) 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; Thu, 10 Sep 2020 15:28:36 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08AKSZVY066204; Thu, 10 Sep 2020 15:28:36 -0500 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski , Vignesh Raghavendra , Murali Karicheri CC: Sekhar Nori , , , Grygorii Strashko Subject: [PATCH net-next v3 5/9] net: ethernet: ti: am65-cpsw: use dev_id for ale configuration Date: Thu, 10 Sep 2020 23:28:03 +0300 Message-ID: <20200910202807.17473-6-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910202807.17473-1-grygorii.strashko@ti.com> References: <20200910202807.17473-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 previous patch has introduced possibility to select CPSW ALE by using ALE dev_id identifier. Switch TI TI AM65x/J721E CPSW NUSS driver to use dev_id. 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 9baf3f3da91e..bec47e794359 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -2131,10 +2131,9 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev) /* init common data */ ale_params.dev = dev; ale_params.ale_ageout = AM65_CPSW_ALE_AGEOUT_DEFAULT; - ale_params.ale_entries = 0; ale_params.ale_ports = common->port_num + 1; ale_params.ale_regs = common->cpsw_base + AM65_CPSW_NU_ALE_BASE; - ale_params.nu_switch_ale = true; + ale_params.dev_id = "am65x-cpsw2g"; common->ale = cpsw_ale_create(&ale_params); if (IS_ERR(common->ale)) {