Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2578732rdb; Fri, 22 Sep 2023 02:51:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTLMayZy+6Ojd7/1902G4KPhr88W/9ey8V/5zsjhsW5BQ0f2cDExDHnAKslD/tJw6Cv096 X-Received: by 2002:a17:903:25d4:b0:1c2:a08:9d2a with SMTP id jc20-20020a17090325d400b001c20a089d2amr7026525plb.22.1695376313932; Fri, 22 Sep 2023 02:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695376313; cv=none; d=google.com; s=arc-20160816; b=z9ndYHQNXyGNiefUK2z6gkZA5QWGhGA/mCwLznD/7EqwBx753op/6iLzoLwjtAVMti z2Y4aynmXUXbtCFxVzaWPHYYUVeuxyd31smjk6DDW6ukK7MkqXLq1gqQiwa3HzAiXXBg S/23HRE046CyqIbWn0OUdSeLEL2SlTQgIZfCVPNNkSCN6dWk418uzU95AvG5yysHXQF6 lej0rnfhf4Hck0eiHBF/0P4C0LZ7zOPha9JD0ejR9w75QJSnA5UfpdTezj/pC9Nj4xA+ 3RJ/eZKVVGPF3WLkefPu54zO7kR7M0lKPPNrIEgkhD0eMPjDVSiXHRP6m5+dg93TeTDY cV6Q== 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=ZoxXZ3Y37cG93Q4rzhxBeq+p7DzB6VmKffMfMcF/QFc=; fh=Z7UqY43aG4yDRK+mU13xz9kiu9/sj4nAG4VocCbQhvI=; b=ueNkjCrvYs0vugbCjZLqMV4D8IDc75No0hNSbfvEfnCtRnij/IxC25g+shgAmxTXpv wVS6AMt2u7si6TTj2kY9HiYwGA8203tmpDAvY3db7YGkYZba7iXEh3svCaM34rBwgzYQ KDQBVGM0fogtbx6e6aN6qFWE7J2sVJMj1Q8wg0aZ3iXm4rctc9T/FjzEFXkRvCgHOuU1 dR2H/PDTaoawFoNTtgu9T3MIfH7sDmIwwG87ZCTjFcoXQzceurAhaEWgARTLY2qin0Ag 3W79UqN4bxw2pyTCJu1TilKTnuluowRuuzy0t5Bjf+qWK02BX7lkGGC+0B6O/tDQ5AGt +mvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PyLgQVhM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n12-20020a170902d2cc00b001b69ede5b79si3718279plc.470.2023.09.22.02.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 02:51:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PyLgQVhM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 9959780A97C3; Fri, 22 Sep 2023 00:05:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbjIVHFI (ORCPT + 99 others); Fri, 22 Sep 2023 03:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjIVHFH (ORCPT ); Fri, 22 Sep 2023 03:05:07 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FFBB192; Fri, 22 Sep 2023 00:05:00 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38M74bwP024089; Fri, 22 Sep 2023 02:04:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695366277; bh=ZoxXZ3Y37cG93Q4rzhxBeq+p7DzB6VmKffMfMcF/QFc=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=PyLgQVhMUGbUpfsQ4lBYHBbg17QVJjkI2cg2azeZg3679NqvcPQrzoY91+j1/Zlac lImXdEqTfrB958/Rb2aNCx23ToQpNFqpyrqoDsmTBslWudAzX46PckcIRmI8c0R1GM YY1jEgZi8/n/QQT4xwIed6Dc2Qg8mtaJJOrqzwjo= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38M74bql078327 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Sep 2023 02:04:37 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 22 Sep 2023 02:04:36 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE108.ent.ti.com (157.170.170.38) 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, 22 Sep 2023 02:04:36 -0500 Received: from [10.24.69.199] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38M74Wal056954; Fri, 22 Sep 2023 02:04:32 -0500 Message-ID: Date: Fri, 22 Sep 2023 12:34:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC PATCH net-next 3/4] net: ti: icssg-prueth: Add support for ICSSG switch firmware on AM654 PG2.0 EVM Content-Language: en-US To: Andrew Lunn CC: Roger Quadros , Simon Horman , Vignesh Raghavendra , Jacob Keller , Richard Cochran , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , , , , , Pekka Varis References: <20230830110847.1219515-1-danishanwar@ti.com> <20230830110847.1219515-4-danishanwar@ti.com> <1fb683f4-d762-427b-98b7-8567ca1f797c@lunn.ch> <0d70cebf-8fd0-cf04-ccc2-6f240b27ecca@ti.com> <12c11462-5449-b100-5f92-f66c775237fa@kernel.org> <3fbf9514-8f9f-d362-9006-1fd435540e67@ti.com> <09931a97-df62-9803-967f-df6135dc3be7@ti.com> <055e781e-f614-4436-9d8d-e60e17fac5c9@lunn.ch> <92864bda-3028-f8be-0e27-487024d1a874@ti.com> From: MD Danish Anwar In-Reply-To: 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=-2.3 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 00:05:10 -0700 (PDT) On 21/09/23 19:07, Andrew Lunn wrote: >> Thanks for the offline discussion and explanations. As discussed, we can >> not have one combined firmware to do both switch operations and dual >> emac operations. It is required to have two different firmwares. >> Currently which firmware to load is decided by flag 'is_switch_mode' >> which is set / unset by devlink. I will not use devlink here as asked by >> you. Instead, I'll use the approach suggested by you. >> ndo_open() will load the dual mac firmware. I'll swap to switch firmware >> when the second port is added to the same bridge as the first port. >> >> I will re-work the changes and post v2 soon. > > I'm sceptical you can actually make this work correctly, but lets see > what v2 contains. > Sure. I will try to make this work and post v2 once it's ready. > Andrew -- Thanks and Regards, Danish