Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4446145ioa; Wed, 27 Apr 2022 04:10:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBv1AvjpncX4XV7EnkbX+5P4prYL7OknDaNb+9x00K8oFP9rVHfWZKsyB8cEQ88HivJnb+ X-Received: by 2002:a17:90a:3486:b0:1d9:3abd:42ed with SMTP id p6-20020a17090a348600b001d93abd42edmr23899865pjb.32.1651057831358; Wed, 27 Apr 2022 04:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057831; cv=none; d=google.com; s=arc-20160816; b=qZHXXqZ6Xv6jLRpqKBOoNygVQLYgPeuiZN8FWJVGHDxg5YLldq/NHaAdieXEaxInYT JD3sBqxw5Ww7PbZOvbJ6l/lanPN5NsoQY9bkpsf2KiT2xnOo8dzi2NosJKftJHNjJkHP UgldCSsQZviJ/sus7FtAqMD/8UkA/0iILlT8GKZ1Jc/yGXgZJhSb0b4qYqdf56/sUvea qfVCFIDjJ2ffw5CuUmPKlGVzVq9rhjggNYIDExs7892SJKlI5+7NpsA+y58EaxtLzccM 8Lf8mfLWfavpqeOt+ba6QVwXZdpxtJfz9XrBzQm44NWqsZcVqSNy7nH0mtvomtlXkItM FbJg== 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=gKqBWnCkDhPa/9nmFO0gA+P1ct06PRzyrAfrgkwdtZQ=; b=AQJjkzbFLdCmP7auYvZP584WD/uWRzZO8ttu95LdVWaXLQDFN2B5TsoOXX1ygbcR3o C67h5R80TU70VrbkJB7cOAa9NFIMknWjQqeQXHm9CbIe6tFenQTt+3PG0vvPmdDrQ0lZ 5hY0jCH3BrczEYu3oWaAhfIasc6R234hLnIyf0LBPTKrRPRnY7uynNedGYvQpYU0TEwD ywVfoApHyQoNBPgFCrZwcw1/L3NsbkBwFxWLAHLxegTxJuQcMAQkNZgAtsQr8PgTIw3E fccsXsU2ffcEin58jOEQLvtx7sTASpa3hRo7r/jEf6eJoxJAHM9MzCLVvrH8mJILQl+6 aptg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cdtB0ZKQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r10-20020a17090a940a00b001d94af9c455si1311374pjo.124.2022.04.27.04.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:10:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cdtB0ZKQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1024C360583; Wed, 27 Apr 2022 03:03:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352679AbiDZP7c (ORCPT + 99 others); Tue, 26 Apr 2022 11:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352653AbiDZP70 (ORCPT ); Tue, 26 Apr 2022 11:59:26 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27AA31923; Tue, 26 Apr 2022 08:56:18 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id p6so2732632plf.9; Tue, 26 Apr 2022 08:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=gKqBWnCkDhPa/9nmFO0gA+P1ct06PRzyrAfrgkwdtZQ=; b=cdtB0ZKQh5fHXEtqwKZRdRpRpNlc2FA7fzabvWnVsZEh471IpBAHTzhJ0Hmz6aKWju iGjJYFQtjxcn2O+CnbAXLs21Io7RfvyAqUieYCysQE9eqKrhLrmTs6IgnPQ05LEoKoSa mGb/AaJ1wjDcALrwlcoyeqSGW0PSQBfyDAaV1hi6bDju+mYxVqgE6lxoKN62zd+fJ9O4 iPU8jjQWHVocjekVmqX3dSl1+stabdTaARusTK8LuCUIxqsZKdGbEIM3iIEtAtkwquPR jtRMz31oDlntY4KAFFP2KyW7KzMcwE3W55d28blpe24GvF4APEchTykTMObnsJMELQls A2bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gKqBWnCkDhPa/9nmFO0gA+P1ct06PRzyrAfrgkwdtZQ=; b=qZj1ifVy0FsD1vYvhdqHtKsrdZ5SuWmt1ip2Octc+2GCWLQamdvjaH0V5N6/qhhslo r3m7MVf8iOd99VwXtEGNYDOjdVsOfPy96OYl4d1JwgDQ67jrqGJO5FKRgq1CgBIaSo3Z JuFo9YUdUpDhNjkCJjZxhx2p1UD5r0k7UenX6gny9GlreRKICCBAWauATFEEbesDkhvu HuQ4JQqtfmzWuRk+5mpl3vzHfbMPUANzHByao5wyn+YEOFGUGQHKBReXxZbbqYHE6Ld2 booYhHmnB0FZ4y2J1TtbzsliJujkVIk6oanwh5lcUQbJkydajikAYpwLMMs86du5Nui2 nbBw== X-Gm-Message-State: AOAM532rPcpED6pwSg2fqIly9p6Sm8spHHaoiZddnSI/GLFFv7dkKE4o cg+dluXXv6NlwVofBgY6bhI= X-Received: by 2002:a17:90b:1251:b0:1d7:f7ae:9f1 with SMTP id gx17-20020a17090b125100b001d7f7ae09f1mr26323671pjb.65.1650988578270; Tue, 26 Apr 2022 08:56:18 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id v18-20020a62c312000000b0050d56ae29d4sm3246368pfg.29.2022.04.26.08.56.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Apr 2022 08:56:17 -0700 (PDT) Message-ID: <944ffc2f-9f5a-a008-95b8-6812d5895b6d@gmail.com> Date: Tue, 26 Apr 2022 08:56:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Aw: Re: [RFC v1 2/3] net: dsa: mt753x: make CPU-Port dynamic Content-Language: en-US To: Frank Wunderlich Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20220426134924.30372-1-linux@fw-web.de> <20220426134924.30372-3-linux@fw-web.de> <046a334b-d972-6ab9-5127-f845cef72751@gmail.com> From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/26/22 08:54, Frank Wunderlich wrote: > Hi > > thanks for fast review. > >> Gesendet: Dienstag, 26. April 2022 um 17:45 Uhr >> Von: "Florian Fainelli" >> On 4/26/22 06:49, Frank Wunderlich wrote: >>> From: Frank Wunderlich > >>> @@ -1190,8 +1191,8 @@ mt7530_port_bridge_join(struct dsa_switch *ds, int port, >>> struct netlink_ext_ack *extack) >>> { >>> struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; >>> - u32 port_bitmap = BIT(MT7530_CPU_PORT); >>> struct mt7530_priv *priv = ds->priv; >>> + u32 port_bitmap = BIT(priv->cpu_port); >> >> No need to re-order these two lines. > > imho it is needed as i now access priv-struct now ;) which is not available at the "old" position My bad, yes, I was concerned with preserving the reserve christmas tree style, never mind. -- Florian