Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2437514rdb; Thu, 21 Sep 2023 20:37:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyLx4boNQL4iIqorF7AImmLPO/DRqiWdKTRXOyDjsGvgqnFIDrS+gqZ+Pixum/CXDNCM2+ X-Received: by 2002:a05:6a20:13d9:b0:15d:a517:a8d6 with SMTP id ho25-20020a056a2013d900b0015da517a8d6mr1249922pzc.46.1695353844135; Thu, 21 Sep 2023 20:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695353844; cv=none; d=google.com; s=arc-20160816; b=KmenUYQF/t3bUSfnNUZBrv/an/lAhhwhAB399zNMq5kMhGaS4shuDvoqEX+9ZbQh2X scnk9oNjkXXFMbIpYscSR5Z53lmpILGTPXaKmoQ2qirNMUAEyzGx70QXnl1rae086Sds oNI1ylQhKC3rMiTBvh6d0Yn4qRHzIHC1qruhtic8L6LqZxc2SE+oeCMPWHM2VY7/yyL1 HNCaLrk+HxtXUN8HGZ2YVlTFCHLHARKOXyaH5T9BdQsHqLGjaogbm0gnzn1xs9y50STM E0TfcHKu6c99I0QgbOBPjjlc7rF3mEQVwxHkb70sEW8GbYRO2ot8Hbyfwqmj2SKXhKDJ Khnw== 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=Sw8+a451IMBGfDKWgetevOucJP7Ud/BBjCxYS2ZKzy8=; fh=Dlk0F54n1taO7W33B1B6Abnxe6cHk72/AeKj3dbcrAs=; b=XeOTuddTJg/qDiT+kAksv+6wmH+BQ++nuYXze85jiZM9CYwL3xOckbtCRA5y0NEdY4 gANUt6WZXENdPChvyDir2LjOCO9qZi8LllC1AC6QY0ooNaMNkMWl+Myz2+EIhmpQIX1D nOvHIzhHZopV2m1OtrGdXqBaZG/IigTG2phuW2mIkKr5ytRJeXyPJWqCp/xiwFFwqxoR mdoAs4WMvSgtlxXV/w5WF+dmSeDPnyu/PpDlE/A3OP3XnsU52E95mpwwSfB42iKYkAgW Loq8gNE3ptheeYeDdj0pEm1NTmebMfUxpP0IVAAPJDayOTcXnzwPs8sYcsOJLvLIAE8C +Igg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=YqqvTGWd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id lb12-20020a170902fa4c00b001c3267ae318si2741261plb.247.2023.09.21.20.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 20:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=YqqvTGWd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id EEB818377253; Thu, 21 Sep 2023 14:09:25 -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 S232577AbjIUVHf (ORCPT + 99 others); Thu, 21 Sep 2023 17:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232224AbjIUVG6 (ORCPT ); Thu, 21 Sep 2023 17:06:58 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E27E2AFC0E; Thu, 21 Sep 2023 11:07:46 -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=Sw8+a451IMBGfDKWgetevOucJP7Ud/BBjCxYS2ZKzy8=; b=YqqvTGWdAIlFqbk/Xv/ISzV/rv Uq8G2YfuZAx+LfyeTGbyi2haKqcSYQtyi+dqqdqQNAddmrQOzbmzFJx3fozgKugDLxdhDPh9InQP6 RYEcJ2QtobyIwZlQHsVErjFGyfQW3+OPKp0x+aGsDe7CGf1AgcPGu39I8JnEZiiqFnaI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qjJrv-0075fV-QQ; Thu, 21 Sep 2023 15:37:23 +0200 Date: Thu, 21 Sep 2023 15:37:23 +0200 From: Andrew Lunn To: MD Danish Anwar Cc: Roger Quadros , Simon Horman , Vignesh Raghavendra , Jacob Keller , Richard Cochran , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, srk@ti.com, r-gunasekaran@ti.com, Pekka Varis Subject: Re: [RFC PATCH net-next 3/4] net: ti: icssg-prueth: Add support for ICSSG switch firmware on AM654 PG2.0 EVM Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92864bda-3028-f8be-0e27-487024d1a874@ti.com> X-Spam-Status: No, score=0.2 required=5.0 tests=DATE_IN_PAST_03_06,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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]); Thu, 21 Sep 2023 14:09:26 -0700 (PDT) > 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. Andrew