From patchwork Fri Sep 4 23:09:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249153 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1829954ilg; Fri, 4 Sep 2020 16:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6GLUsUz/FqK0Xk8XSfG2prchFGGXfE4grKh8a6RTtDqgWvnUrCc7Q3rHV8mParQPvl3Kb X-Received: by 2002:a50:fd83:: with SMTP id o3mr10873577edt.176.1599261021932; Fri, 04 Sep 2020 16:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599261021; cv=none; d=google.com; s=arc-20160816; b=ueGTvtVyleEroEEWVoRZI2nh4iPszok+qGqq+z4Z4DgDOwgrjcXYFfgZ/Kk0ac879k ur5wPtTeel6U2OP48gFM6Tt6eviUYIC+XqP89qcKX/gX9qxaWlFx06YUSMpk3ijlnz95 63lobRcNTG8W4fo+ilyZ6wj+U0tEcu9xeJzHm1MxoWSNHjWhoJOtjs4YzAupQFUTegEs 6eLD+oNQ5PKW0vXyXiqSTlNdgTwqgi6Wqza+o/NQjCjx8DP6GpUzyVacuGnQI70jqJnI 7JkdHQh6Qt7uqPvsLwiByQXasWuuvbrb5ET7OdB/wmHNJZZ7YCxCfRsTMbnQDgSjANph A6WA== 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=xuoDBeCuA7Fgr5GiCMLnI1jqJ+QBndSMO57R7drPlydFFaYTwdq0pF9/PsWMH9wNvm IxJSu91QRt17wwYbdR3uVW+plLanVefOuyZzsooFEDRpfw2YotvMsiOGSO70pmyQJCLW m5Hcj6yvOC5O3qZl0AEbifoWxtHNj31uq4dWRwzb2QQbcDhqiG3fZVrfEU/wXnpkoHOl 0o++HyI5fckoI+oN+bkqEQWxojk+ublNZdsndYrHCEVUmSMgPZsi+pkhlQUzkVOuLctt YtKbJaHb/GJ90ZypBrAC0WRc+iDtwKnYZEORAZS0mwlXBNSv7K4vrOhIhDVHpJkXvvZh x8GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=msLu5KAm; 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 a15si5507584edr.160.2020.09.04.16.10.21; Fri, 04 Sep 2020 16:10:21 -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=msLu5KAm; 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 S1728350AbgIDXKR (ORCPT + 9 others); Fri, 4 Sep 2020 19:10:17 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:33072 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728316AbgIDXKM (ORCPT ); Fri, 4 Sep 2020 19:10:12 -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 084NA85s051303; Fri, 4 Sep 2020 18:10:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599261008; bh=aLrHDDzUSZnntyTRNgcA+XJgDx0ERfOCTms6pbod928=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=msLu5KAm6us1gP3ucj8c9vamLbp35Zexd754UXvweeWfGiel58MmFsYBl6un+Gvb3 HBdPEo0AODPXS+uSjsrNtSbKxsZC+3pN59z2aAG/VUBHy3ULU+zPfohU6uPtBXIuqI jc6TiSMxUFKeZrjrgxSBCZrYV33qvFExD6+C0aT4= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 084NA8gK102219; Fri, 4 Sep 2020 18:10:08 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 4 Sep 2020 18:10:08 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Fri, 4 Sep 2020 18:10:07 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 084NA7Go062959; Fri, 4 Sep 2020 18:10:07 -0500 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski , Vignesh Raghavendra , Murali Karicheri CC: Sekhar Nori , , , Grygorii Strashko Subject: [PATCH net-next 5/9] net: ethernet: ti: am65-cpsw: use dev_id for ale configuration Date: Sat, 5 Sep 2020 02:09:20 +0300 Message-ID: <20200904230924.9971-6-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200904230924.9971-1-grygorii.strashko@ti.com> References: <20200904230924.9971-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)) {