Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1672490pxk; Fri, 4 Sep 2020 16:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJFXOXNh/jUDj8DaLdI3RGARKrHwy3wNB6eNyi2ipHllu+/5Z4VmkpIcpyEizZAzLdXmCR X-Received: by 2002:a05:6402:1451:: with SMTP id d17mr10796773edx.48.1599261101848; Fri, 04 Sep 2020 16:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599261101; cv=none; d=google.com; s=arc-20160816; b=0lm2Vp23AkwyrE+1CA5PVsy2ogX893wnEVWiY+dsFiCIWmDh92EwJYjy6YbVGStp71 XZs+Mm2gIqfqttmtmBKRfY077Sg0+RNN5or1VC8xDBb3xC1rN9cZd+GhHnB8gtAOg082 QvN4tB/uzMHg8bLfsS14j/il2iCoXXybCUoyWQwZzasNMFlfh9VVrp6knrUJesbd3v+6 5RUh78ib4m/6M+9Rou4nG4aRcLVCGK60vkB7I9XCHHoTXd9CdtKdegTpr1gyQRqykAYc KuYPx2DwtDcw5r/R+1tirTpV3CFhhuJzMv/h7An6QB96mwLhDc6NIxbwrA/TEQqkkAPP Tiyg== 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=gMXs9NVdQ8jMr+7tIv6xMPSDpELmkZla3PIjf1QHh5pi4d471G627zH0cjj+z/wQku CXYOevu9EyWQbeqtTTdBAJLagBUKi/Cqk9NotzfNN10SbKCXOlaumZs8c/wGhEW03mMS la9Eq8U147MGoDGl1TFbPrKHKOtcRcAEooqYbey6CiWFOgSjY9l5h/3mCuZQcvs5IoJb h16tjEkBjdH2xvIvliMQtgdPsjiWMOi8aVUQxuN49TXCKGkFVbQ0/D9edYtQG4VomiQC Ap8koJOUplPKLOHiWOlqfaPKWfPgCkDqyePe0OFJjE76N6sEQ9wLDZUxFoYETp+0vrR5 TLzw== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 x1si1461478ejw.494.2020.09.04.16.11.20; Fri, 04 Sep 2020 16:11:41 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=msLu5KAm; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728348AbgIDXKR (ORCPT + 99 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 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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)) { -- 2.17.1