Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2641549rdg; Mon, 16 Oct 2023 10:11:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfdDOHrlvHrmNQmwS/msc6CAASYFmAj9o6T+fF9cC5JBYpV2h63b0n1by6DtlvUUPOKGxu X-Received: by 2002:a05:6a00:ac1:b0:690:41a1:9b6a with SMTP id c1-20020a056a000ac100b0069041a19b6amr41614657pfl.5.1697476266526; Mon, 16 Oct 2023 10:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697476266; cv=none; d=google.com; s=arc-20160816; b=FxuTETRK6uQdILqttTkaypKckRn7CZePnPWbO2VGgnzvzPNCz4A5EDVnGOZXlg6k84 QobK/ZT6CtIddsPioBcJu78NNyW2//po6ZH2Hf0ID0VsOSucbUJ2PRPzLUY+lA3dr2A+ O1+J+kirLMixxUWETTeUwaUv57wnYuNlBGrIQHIyHU56OzSqfCj3BMe82wssn1XH0sfM GC+DkC6IYo8Xp/VJAJkYGcB0L9IC1brVrMTbDuM6Pb0HmHEnRn0QfIwqeRHcBUEqy5cs 3FPc2eCbP1bdn6nYChjIclm77xGa8Wpaw0ysbaDlfM2Bt8W0qmbyvb13XUXF+AtZmcxm 4NlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8uawIvwXCNY3cQCPZEe1PeCx0P4Tg5jesgAAUCp7n7U=; fh=pcAI8x4kZhk72Y+dUgHHOxSSlqmn7+PVtxn4UKExXTo=; b=g9Q/Hr4KgZoylK1joleSvk3H+nBUdt+f8rYaAzk9+SoV7knDCRnc1uouFHVoi/IlhU H2LSCIUDoziutaGZoRo889zI9YEo/HMoEy+Gn/lzY6PGQ9oTHHKwlnvtCkvFH4xH6JKu xpN+vS6cJaTUlznJgqMyaxT2Bb09bK2R9Iqumgl7oO98Dx2HfKkGsBHmSUUfDsce1yfN gn0EO/PAUwMQthAU8OVmZtpLzCAOJgfevWL6SL3l2gKN2d8cXPVX1PCGCa9y/8foqkJZ uFJp8jq0rCITNH1faibe7CfeHvAjZq65ktul4tcAxA5WEjFBk6jir9sh852L1u1Bgfal VVhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tgzt7S9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d10-20020a056a00198a00b006bb0aafd563si226951pfl.237.2023.10.16.10.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:11:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tgzt7S9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id BDCAD80AC594; Mon, 16 Oct 2023 10:11:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233913AbjJPRK4 (ORCPT + 99 others); Mon, 16 Oct 2023 13:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232936AbjJPRKw (ORCPT ); Mon, 16 Oct 2023 13:10:52 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C652413; Mon, 16 Oct 2023 09:56:40 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39GGuTmc113281; Mon, 16 Oct 2023 11:56:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697475389; bh=8uawIvwXCNY3cQCPZEe1PeCx0P4Tg5jesgAAUCp7n7U=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=tgzt7S9peZqtq4Jwc7d96+kGQYhJN63L4gsd6B9J73K9syja/gy0lsoiexDrgMnR6 czoMV0M3HRefUzpLFovVmBTKnypzH2EvMrnkI/6o0Xn1/SEtV8CYDwtlsrIs4/oxRL 6aqGRZpvtvz/0Dg9c01J5u9XoBJUQYbPA7ihSza0= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39GGuTMH002669 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 16 Oct 2023 11:56:29 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 16 Oct 2023 11:56:29 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 16 Oct 2023 11:56:29 -0500 Received: from [10.249.135.225] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39GGuOOI032386; Mon, 16 Oct 2023 11:56:25 -0500 Message-ID: Date: Mon, 16 Oct 2023 22:26:24 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH net v2] net: ti: icssg-prueth: Fix r30 CMDs bitmasks Content-Language: en-US To: Andrew Lunn , MD Danish Anwar CC: Jacob Keller , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , , , , Vignesh Raghavendra , , Roger Quadros References: <20231016161525.1695795-1-danishanwar@ti.com> <11109e7d-139b-4c8c-beaa-e1e89e355b1b@lunn.ch> From: "Anwar, Md Danish" In-Reply-To: <11109e7d-139b-4c8c-beaa-e1e89e355b1b@lunn.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 10:11:03 -0700 (PDT) On 10/16/2023 9:58 PM, Andrew Lunn wrote: > On Mon, Oct 16, 2023 at 09:45:25PM +0530, MD Danish Anwar wrote: >> The bitmask for EMAC_PORT_DISABLE and EMAC_PORT_FORWARD has been changed >> in the ICSSG firmware REL.PRU-ICSS-ETHERNET-SWITCH_02.02.12.05. >> >> The current bitmasks are wrong and as a result EMAC_PORT_DISABLE and >> EMAC_PORT_FORWARD commands doesn not work. >> Update r30 commands to use the same bitmask as used by the ICSSG firmware >> REL.PRU-ICSS-ETHERNET-SWITCH_02.02.12.05. >> >> These bitmasks are not backwards compatible. This will work with >> firmware version REL.PRU-ICSS-ETHERNET-SWITCH_02.02.12.05 and above but >> not with lower firmware versions. > > Breaking backwards compatibility is generally not allowed. > > As far as i understand the driver, it loads whatever version of > firmware is available. It does not ask for a specific version. So you > should ask the firmware what version it is, and then handle the > bitmask as appropriate. > Understood. I will try to find a way to do this at runtime. > How many different versions of REL.PRU-ICSS-ETHERNET-SWITCH have been > released? They don't appear to be part of linux-firmware.git :-( > The firmwares are currently not posted to linux-firmware.git. They are maintained internally as of now. Different version of firmware is released for every SDK release (3-4 times a year) > Andrew > > --- > pw-bot: cr -- Thanks and Regards, Md Danish Anwar