Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2616307rdg; Mon, 16 Oct 2023 09:28:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKDxFUE7GMVRuR2ihmfZcohHEaIlPzK1D8yEySUS7WBrajk9zR581v/OR5JCR1wTUfL9qo X-Received: by 2002:a05:6a00:391d:b0:68e:496a:7854 with SMTP id fh29-20020a056a00391d00b0068e496a7854mr31496405pfb.18.1697473730729; Mon, 16 Oct 2023 09:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697473730; cv=none; d=google.com; s=arc-20160816; b=k4O2p62R0FzTLS9u/FMO4pw3JoibLO8su1vJQ9P4MUWl8/EIcy8LK5KTvVlH9L26bJ MFA39YYRlUMvziEuJel5v5CiPNaOxI7/z3daFVk2KGPIknBJnU0ztU9aFAkBrdwNm1Uo AIihMfJGbUwsjqW9Nz9lqIfD+YKnHDu4a3TW5KLFa69o4q+rT1hK38aJhRx6/+lzPisV mjaYFD7WmKmL7MUFSXZdNK9uGECxcNDcKhMW2t84MFV6tkLOQmmK/jkU2yd8bvoahkr/ oYwJ6etLgnU2EHJJvoNX7CygVuKIm0q5ORO80yPk4WxvuG31oDH2iUkc5yNYZgBMbv5f 4RIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Qn8pjkyvMjlHnGF7bvQJKDrfyyM9Efa1/JCaDoN/WGs=; fh=Mf8Z6cLUiF8ROVmGw7w8/gDj5ONSKtG+SgIQa53E3vw=; b=dLnNq9NxMeUrib8oQgcqewZoogVQwxylgckO98wiPJfO/hfC2NXij3F/E7LXipAS1M z/5pqI61W26scWGY/DYp2dThjmMC+UQLTHsb1uEpia0AqfFNUhuzCXSfvhtFv3fv9+Mp BcSEICkkd6WVzhOnt17tUZbBcvlbY/nnbTaRnxdc+S1Ud37SOX0RFk0TAXC3MbgH3Slv uwwzpV/8KuUvUv/UhHPpuZGOoYndOiFI7y7CpxrpH+N25ECCKMkClKIacM/CM4HR8dLN gko7Ilrq9pxiIhC8Kgv+v7S/OunejhyXLtJHC0ujPRoj5xpDffUtywThLRcgjuwD3n34 0t8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=0H5vCEwn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h11-20020a056a00230b00b006baae7ecfacsi127950pfh.308.2023.10.16.09.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=0H5vCEwn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8E179804A731; Mon, 16 Oct 2023 09:28:48 -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 S233860AbjJPQ2l (ORCPT + 99 others); Mon, 16 Oct 2023 12:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233829AbjJPQ22 (ORCPT ); Mon, 16 Oct 2023 12:28:28 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4789111B; Mon, 16 Oct 2023 09:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Qn8pjkyvMjlHnGF7bvQJKDrfyyM9Efa1/JCaDoN/WGs=; b=0H5vCEwnQj/P2x0kDiHQc87Ppv 2+L/CGodNbhCTiYpl7byMQr4Ilz5dRxiH2pCw++3q3SYJbhBRL56w5XM+0gwndVoepmS7acekr4U9 KG6gEON5so1BqUJQWPG8jGHRsxDwRgOORhVa+8yKQC6w90fOh2QNRWd69IdCSFsnodxc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qsQRz-002Mgn-VL; Mon, 16 Oct 2023 18:28:15 +0200 Date: Mon, 16 Oct 2023 18:28:15 +0200 From: Andrew Lunn To: MD Danish Anwar Cc: Jacob Keller , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, srk@ti.com, Vignesh Raghavendra , r-gunasekaran@ti.com, Roger Quadros Subject: Re: [PATCH net v2] net: ti: icssg-prueth: Fix r30 CMDs bitmasks Message-ID: <11109e7d-139b-4c8c-beaa-e1e89e355b1b@lunn.ch> References: <20231016161525.1695795-1-danishanwar@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231016161525.1695795-1-danishanwar@ti.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=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 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 09:28:48 -0700 (PDT) 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. How many different versions of REL.PRU-ICSS-ETHERNET-SWITCH have been released? They don't appear to be part of linux-firmware.git :-( Andrew --- pw-bot: cr