Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp769595rwr; Wed, 26 Apr 2023 06:15:37 -0700 (PDT) X-Google-Smtp-Source: AKy350bq+TlPRRp2+9+fvEo2TnIs24ezKQrA8L1ZDF/QdcHHhgHNFKa0Je6F4U0ErqSzBoxSVTJG X-Received: by 2002:a05:6a20:842a:b0:dc:38d3:676e with SMTP id c42-20020a056a20842a00b000dc38d3676emr24834649pzd.20.1682514936921; Wed, 26 Apr 2023 06:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682514936; cv=none; d=google.com; s=arc-20160816; b=TJTfR8txNWb7vbUinBpqDF0+lycCOYMN0NV2Wtjjqrvg8wn2YPPk2DH7vdwmOQ5otA qQrSTev5mIIxC+LbWGSjW6IlgTYcNftPCinP3XiZluYiwC9Ej1gmPrzyOIPrgIbC0Zah owkvxRiBn2lzQUXt3RhegaAoZ4+NxhLvQpCUOrsAy+4mn+0lo4C0pvdvRgUuuMWXV+di Q2IsJ1dzRAXnaYaAtXcgvXYU6IadzL6R6Qei7V4bgxf0rgEDpmRhRHvIdyJlGyaCM+/W 1LV3Wuzglxc7wP5xGrMJYI8bctRZM5sB/EFlIqP2od+t0I0ZEmyMe3PZH6HBKzbl0p4K oXWw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3Q9Ilw93VRUA4xL7mhv1L9R8ajbnrQrZWtw7gRABeBU=; b=oqClpMcX9Cj5M2XeQSKRqzre8ci2rogIw1hqS1aNvDZIUi/ZWIFXviQ0rFTfTlwKnS eDzeUuWlv8XxG6SNQDPE2utxLxM5gZwuvhl0LjAoh4ZGKgBLyrtblH0AhCdoSwsNJI5W 3Z7z0Byhlr0edYhZqvVnN5qTWP9x4DJV3sRDQdBTO60dc5hKUeHrGFMclID1kXUeXxJD fyjbzhes+Lql7806FMEJf75SXPZs+gaBqjSFRvt3WaNbeRNYLFZMFgltmGxiPj2x9cyQ a7Qrbj+NnW/AN2NMeju2bX1Jyi+djfR+Axxs/+Pj8SvBwsej6i7M1i3CJhivm1NtvYeJ Pa6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a632b11000000b0051b2e37e657si15681389pgr.719.2023.04.26.06.15.20; Wed, 26 Apr 2023 06:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240762AbjDZNKN (ORCPT + 99 others); Wed, 26 Apr 2023 09:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjDZNKM (ORCPT ); Wed, 26 Apr 2023 09:10:12 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C77BAF; Wed, 26 Apr 2023 06:10:11 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pretn-0004ob-2w; Wed, 26 Apr 2023 15:09:32 +0200 Date: Wed, 26 Apr 2023 14:07:45 +0100 From: Daniel Golle To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Richard van Schagen , Richard van Schagen , Frank Wunderlich , Bartel Eerdekens , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next 04/24] net: dsa: mt7530: properly support MT7531AE and MT7531BE Message-ID: References: <20230425082933.84654-1-arinc.unal@arinc9.com> <20230425082933.84654-5-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Apr 26, 2023 at 11:12:09AM +0300, Arınç ÜNAL wrote: > On 25.04.2023 18:04, Daniel Golle wrote: > > On Tue, Apr 25, 2023 at 11:29:13AM +0300, arinc9.unal@gmail.com wrote: > > > From: Arınç ÜNAL > > > > > > Introduce the p5_sgmii pointer to store the information for whether port 5 > > > has got SGMII or not. > > > > The p5_sgmii your are introducing to struct mt7530_priv is a boolean > > variable, and not a pointer. > > I must've meant to say field. Being just a single boolean variable also 'field' would not be the right word here. We use 'field' as in 'bitfield', ie. usually disguised integer types in which each bit has an assigned meaning. > > > > > > > > > Move the comment about MT7531AE and MT7531BE to mt7531_setup(), where the > > > switch is identified. > > > > > > Get rid of mt7531_dual_sgmii_supported() now that priv->p5_sgmii stores the > > > information. Address the code where mt7531_dual_sgmii_supported() is used. > > > > > > Get rid of mt7531_is_rgmii_port() which just prints the opposite of > > > priv->p5_sgmii. > > > > > > Remove P5_INTF_SEL_GMAC5_SGMII. The p5_interface_select enum is supposed to > > > represent the mode that port 5 is being used in, not the hardware > > > information of port 5. Set p5_intf_sel to P5_INTF_SEL_GMAC5 instead, if > > > port 5 is not dsa_is_unused_port(). > > > > > > Signed-off-by: Arınç ÜNAL > > > --- > > > > Other than the comment above this change makes sense and looks good to > > me, so once you correct the commit message, you may add my Acked-by. > > Will do, thanks. > > Arınç