From patchwork Mon Sep 7 14:31:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249233 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3827512ilg; Mon, 7 Sep 2020 09:28:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFKCb99mO2rZw4eGuqCyeLHcdpDq7rXofyfOniZIQemWGrjnNL9ePAmErDwaBCHCQLWxnJ X-Received: by 2002:a05:6402:c15:: with SMTP id co21mr21694267edb.268.1599496118794; Mon, 07 Sep 2020 09:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599496118; cv=none; d=google.com; s=arc-20160816; b=bMQMs+Q5qyZ02d2JFnJlgP3O9sNvuLHLWsUG2sh508mexyP05CbqKoj4sPISzqBVtQ 2wy2Kp2MEkjpQTIpG+GYMVYtwDsdvrsOHqEwoqq+eGkNw4aKebgbTbuBde/p4FI61V8G lEW6etVRiIRZYtG6nStLLs/rJrT8udEaPs7cI/CVnAXPGAowK05JJQqyv7zk8o1/+nIp 1U3tJa4FRKV+G7NBe7f/gb8xEdqPANEKniBYudput+vzmBWDSDcdi3daW5AHiZXSm2vT T234NXcdc5DBGOSUmP4/PJD8+H5W6NyATFxT31Xtt0IdnJ3r3JUlx5qkzTorElCFIN9v iWDw== 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=Umavm6yS7pDZDJvfMGUuZL8u6v9nwFHEAXOIJweP3M4uGF3GwqV65473h0wyytaaY6 5kqwNiAK2SHpk7nu26Un897TAvIY3nYcTxfxMv7jZMNpzvzedWQV0ehivaV6T5nX4SYh i1g+q3yLybYNda2YmSeI0eXbP0EUjBOt6GBYNN+vE8qG4rqXFipyAHsqdVJMnXJHXYLE jwK1f8cmPVGRkHeSkRnaVsOGzjiNbJStYvN9zdqvqJyeltNgAL8xzjQ3cUEvNltpwEcj rQ0VOQGHbIyHUrZ++h5VcdbpGUE7AYlP6IBNKVbB4ZotZPp7SsjOudZlgic6tCaj/0xn +2Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cfSJxA9V; 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 s10si2464036ejr.574.2020.09.07.09.28.38; Mon, 07 Sep 2020 09:28:38 -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=cfSJxA9V; 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 S1730515AbgIGQ2L (ORCPT + 9 others); Mon, 7 Sep 2020 12:28:11 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:53912 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729903AbgIGOcx (ORCPT ); Mon, 7 Sep 2020 10:32:53 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087EVscW015797; Mon, 7 Sep 2020 09:31:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599489114; bh=aLrHDDzUSZnntyTRNgcA+XJgDx0ERfOCTms6pbod928=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cfSJxA9VjX4kNisNtiVKVK+pk90QaKvWgn7TSxMQez5jnc4FjuosIJ+1cOsjOnLiy u9l/ZoWC2txxI6km0lvAusOAyVTF6D044z9Qvh/mHD+kPiFHk6tfDonSC2XKZbTKfD U+H+FRiQABu2waEUBxXbZgxdRNCBeVJUMptaMF3w= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 087EVsxL066835 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Sep 2020 09:31:54 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 7 Sep 2020 09:31:54 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE109.ent.ti.com (157.170.170.41) 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; Mon, 7 Sep 2020 09:31:54 -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 087EVrdR106465; Mon, 7 Sep 2020 09:31:54 -0500 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski , Vignesh Raghavendra , Murali Karicheri CC: Sekhar Nori , , , Grygorii Strashko Subject: [PATCH net-next v2 5/9] net: ethernet: ti: am65-cpsw: use dev_id for ale configuration Date: Mon, 7 Sep 2020 17:31:39 +0300 Message-ID: <20200907143143.13735-6-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907143143.13735-1-grygorii.strashko@ti.com> References: <20200907143143.13735-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)) {