Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp449533rwr; Wed, 26 Apr 2023 01:23:00 -0700 (PDT) X-Google-Smtp-Source: AKy350b2i/zKj+hMJPCIQZZDjtChObq85zdcRynyZmQsLw7kOJ7u//HNa0nwQauk6J3UzX3OHrY8 X-Received: by 2002:a17:902:bd94:b0:1a6:ef75:3c53 with SMTP id q20-20020a170902bd9400b001a6ef753c53mr18966788pls.11.1682497379911; Wed, 26 Apr 2023 01:22:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682497379; cv=pass; d=google.com; s=arc-20160816; b=HJRQsp+DvWQfH5a0XGZxRkOnqzDbskoVm2sj4r1mAGVa0u9sQ+NnFZYzbHYEyEE9so uYbFTyhLnkOf+MS8fPQMwSIYgcQpnkmo+6GbXC39h05G6u03pNgXiS0ERmS1vKR/bCo2 y5VFtCkrsgllgoAqhl0mYlo6v54xZA+wPV2c5/ZYJ9fiTEShU7ivQyFNKq9yMOkQaeNs FULvDwIeXJ+fCNMNUnRnHCy5Ga2UodfAVnn8/qTNCctxFSby97XRpubS7s+Ekq8VsY++ I+jVY9FTHj7f81iPw+9kXuqV0FZFq2R5+slDDbdzeWNDM2jxHC+LIdPIq3/d3OIjL6tH ZRyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=scdniOaEMN93CnEzkg3P5onK/tzC0rz3np2V8rdqLqo=; b=ZPkxJIFbBpJNZg93W539Pb3ks3yE+cr2h3ctajCygK3m/Xj5OU9Yrbt/P7xjv+Jwml +fb15wQCW2Mh8e5Ey5T6/GYeenNxOIq1anaBDVvoomYBuCtthJbqHqkpilamdxSFa2J0 nul1jwKUFX1qhBAgH2C1VK+JHOb35s9sctLEhvdz6HzKpJCMlZAzXeYzED++bJ62jP7a wgRbiORTVYJe7XfgoYc67WcvIJv9+5c+fCL2VVuUks3mp6gUXjP7+dIMSDUzB5UV1cIR 68tOMsjbFjgcD7vDNdfIodUlBcJBjSjSGDOUCJLoVutEmyB2LYjWh3DLdBxsls7rBlhp 0CVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=I0oPro1b; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 t8-20020a1709027fc800b0019cec83ecd5si15321698plb.66.2023.04.26.01.22.48; Wed, 26 Apr 2023 01:22:59 -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; dkim=pass header.i=@arinc9.com header.s=zmail header.b=I0oPro1b; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 S240024AbjDZINu (ORCPT + 99 others); Wed, 26 Apr 2023 04:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239976AbjDZINt (ORCPT ); Wed, 26 Apr 2023 04:13:49 -0400 Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6A153C31; Wed, 26 Apr 2023 01:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682496746; cv=none; d=zohomail.com; s=zohoarc; b=g2H/eTsheAIYkCOppxipJfD5P5trI7RfjlfLGFx7ZriFbsPQ5doZW6vCvbHCNkkTR0gpPH80WGrvAs1aEWSyrtX272EkYIUttpEhqIFX1sMXk7vbJPie8ZcCOoU7WBY/vT0bExpt9wc6Kya3eRiRdD4bSvVnsgNlkTMluC0vECI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682496746; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=scdniOaEMN93CnEzkg3P5onK/tzC0rz3np2V8rdqLqo=; b=czijfwYx310rhCUDxDVJy2aiugbW42a/peCGYLIxLOcaA1HuMSUCB7SynmGOJg+0jRKda6T9kL5XpjrbuzsB1WQ3jr6KYgvGLxYFEUsNizPhZJw243Nnhdu4Sk8yxvCe4KpaKo/aS7vEPFXzO9NpYRBY5YWg9ZJrTHNm4R3hDO4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1682496746; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=scdniOaEMN93CnEzkg3P5onK/tzC0rz3np2V8rdqLqo=; b=I0oPro1bUVwflc9HXRdxK81n8+PJ+A3j2HzFyrNaM0p4Yk0InSOZk7LmTp8zOC/+ jaOqwPqZyhmB2GIpAoiz672nn5yh5P26Ipg8m4+U56mLCSqPx/9uXD0gfCNfIjEqVrJ FSCU7jBXWYO9xGrAqIn4PQ6EelDecH9C4BZD1Nu4= Received: from [10.10.10.3] (149.91.1.15 [149.91.1.15]) by mx.zohomail.com with SMTPS id 1682496745634552.1517854827307; Wed, 26 Apr 2023 01:12:25 -0700 (PDT) Message-ID: Date: Wed, 26 Apr 2023 11:12:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH net-next 04/24] net: dsa: mt7530: properly support MT7531AE and MT7531BE To: Daniel Golle 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 References: <20230425082933.84654-1-arinc.unal@arinc9.com> <20230425082933.84654-5-arinc.unal@arinc9.com> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 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. > >> >> 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ç