Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp883181rdg; Fri, 13 Oct 2023 04:19:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMcHAr2HiawQIY2UcqKcOaVaLqqh98g3314qk/VyAISqg8uH+nVulO+ID7He57PeyH2to5 X-Received: by 2002:a05:6a00:1a8a:b0:68f:c865:5ba8 with SMTP id e10-20020a056a001a8a00b0068fc8655ba8mr27467370pfv.18.1697195942308; Fri, 13 Oct 2023 04:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697195942; cv=none; d=google.com; s=arc-20160816; b=aNN5r6GnsAeOrf0PslzVEpW0zJN/bsxYUVZ+4C29zMnCXn25PVRPIcY9jaf4tZ+Stw 76N/R9JIZ51PP3ecfKtGsNilZBc6gU+T3ohbwyByEvsBH2EqVXZhtmOt86NuYHpr+lRW 1d/J4rA5rXypYqmS2tvPbyA2W1kMf6vfQ9kKGdRYQG7DcCn9Ei6k7Ea+MnHDF2syDgII NzZc9d4nxyWZZm62P58/J1kZeQHlpp9HoOHPXmwKT8du3w6taUA+CmBS60RnUAe/Y+Qi 7bTowcQV6vEtLETjW6GkzDyBmIIAkKt0FllcYHqNAynqBYOx4U6keavTiGRAUCdc0VYY LMxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mKykF8/ZfDw84jIxywVinD83yzu4QCQr9UkkPhGWAbw=; fh=dLCVYz2JUqgXT45ogtoH9XBoPTLmQuCCo2EQgcyzSYM=; b=YJD56eyiG5hWynr0rn2nHDri+Fc1Of0lKWHaD/yi4tc0SFc/hcnni8Kt2M8gAS0ZjC XpskgUlWdu7rRgJ3+yIzOt93cGfbhydOlHWxqZ2M5teanGK2GnEF3wJBAIjBL26gYhuf uk9C9sRvIx16dRyQa+mAN+EgX4tWXKTXAm9Q7kh2gkz4uKVdZVaZh3Vwnmf59EEfIU8g qVHkApGflKGrM3zSxl1S49EFnbmZBYh+43NHHYWRttbiDOO+cOPfFP1Ab55BG8R2RB/4 /+hKKFqNiGLAcqxePkn/GYs6s9xutp/6agayInDkfaChDHf21Znv11MOUr8wJApR52Xx t3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mvdnQnFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id fi38-20020a056a0039a600b0068a54cfcd74si6798907pfb.192.2023.10.13.04.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mvdnQnFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CDBFA83A1595; Fri, 13 Oct 2023 04:18:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230458AbjJMLSX (ORCPT + 99 others); Fri, 13 Oct 2023 07:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230441AbjJMLSV (ORCPT ); Fri, 13 Oct 2023 07:18:21 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FB3891; Fri, 13 Oct 2023 04:18:20 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39DBI52X086289; Fri, 13 Oct 2023 06:18:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697195886; bh=mKykF8/ZfDw84jIxywVinD83yzu4QCQr9UkkPhGWAbw=; h=From:To:CC:Subject:Date; b=mvdnQnFVPtwwQAieobIzH97okaXazGG3QF8GkfcybXqkQf2DJILKtbHPOkso9miw8 wI/UJvgMRP/9dB/VRxNRwv7X42C4tdTNYLcFO0Nqkfi54qXhmuzhOnsyQnCjqO7AFc q3eAkGSX5YXRYVKpwnXcI7Gbn+0D4WQl9afDannc= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39DBI5iU081350 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 13 Oct 2023 06:18:05 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 13 Oct 2023 06:18:05 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.2507.23 via Frontend Transport; Fri, 13 Oct 2023 06:18:05 -0500 Received: from lelv0854.itg.ti.com (lelv0854.itg.ti.com [10.181.64.140]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39DBI5TA031023; Fri, 13 Oct 2023 06:18:05 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.31]) by lelv0854.itg.ti.com (8.14.7/8.14.7) with ESMTP id 39DBI4fe020483; Fri, 13 Oct 2023 06:18:05 -0500 From: MD Danish Anwar To: Grygorii Strashko , Andrew Lunn , Roger Quadros , Simon Horman , MD Danish Anwar , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" CC: , , , Vignesh Raghavendra , Subject: [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks Date: Fri, 13 Oct 2023 16:47:58 +0530 Message-ID: <20231013111758.213769-1-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 13 Oct 2023 04:19:00 -0700 (PDT) The bitmask for EMAC_PORT_DISABLE and EMAC_PORT_FORWARD has been changed in the latest ICSSG firmware. The current bitmasks are wrong and as a result EMAC_PORT_DISABLE and EMAC_PORT_FORWARD commands do not work. Update r30 commands to use the same bitmask as used by the latest ICSSG firmware. Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.") Signed-off-by: MD Danish Anwar --- drivers/net/ethernet/ti/icssg/icssg_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/icssg/icssg_config.c b/drivers/net/ethernet/ti/icssg/icssg_config.c index 933b84666574..b272361e378f 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_config.c +++ b/drivers/net/ethernet/ti/icssg/icssg_config.c @@ -379,9 +379,9 @@ int icssg_config(struct prueth *prueth, struct prueth_emac *emac, int slice) /* Bitmask for ICSSG r30 commands */ static const struct icssg_r30_cmd emac_r32_bitmask[] = { - {{0xffff0004, 0xffff0100, 0xffff0100, EMAC_NONE}}, /* EMAC_PORT_DISABLE */ + {{0xffff0004, 0xffff0100, 0xffff0004, EMAC_NONE}}, /* EMAC_PORT_DISABLE */ {{0xfffb0040, 0xfeff0200, 0xfeff0200, EMAC_NONE}}, /* EMAC_PORT_BLOCK */ - {{0xffbb0000, 0xfcff0000, 0xdcff0000, EMAC_NONE}}, /* EMAC_PORT_FORWARD */ + {{0xffbb0000, 0xfcff0000, 0xdcfb0000, EMAC_NONE}}, /* EMAC_PORT_FORWARD */ {{0xffbb0000, 0xfcff0000, 0xfcff2000, EMAC_NONE}}, /* EMAC_PORT_FORWARD_WO_LEARNING */ {{0xffff0001, EMAC_NONE, EMAC_NONE, EMAC_NONE}}, /* ACCEPT ALL */ {{0xfffe0002, EMAC_NONE, EMAC_NONE, EMAC_NONE}}, /* ACCEPT TAGGED */ -- 2.34.1