Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp25987rwr; Wed, 19 Apr 2023 17:23:24 -0700 (PDT) X-Google-Smtp-Source: AKy350adJpgzVduGA0sm4wQ6iuL6x/u/6ljOm5NPSiy880vZUBKZ6oxNaMLlp4q62fERUllZ0wOE X-Received: by 2002:a17:90a:b78e:b0:247:4c28:311f with SMTP id m14-20020a17090ab78e00b002474c28311fmr4217605pjr.34.1681950204169; Wed, 19 Apr 2023 17:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681950204; cv=none; d=google.com; s=arc-20160816; b=V3BVtLbR98O5b9pY5uVXdwL+oRQwO3GiHn+fvnKMmZ4gDwAzxQ4UYsv5Vq21P6in0w gUe+jb2zJTCVYKfsi3EHcA9Wk0LsJ6B3YG7/+NuolhmZxjxYm3LfyVqjxGQdK4V+t5+v Amdcghy5k4tqN13nx9bpjubjX4i/iD8x4MM+8peBQ9cL8r1MR+W98imZr05Wwbz1XYZl qp5+YOlWinMSx7GlGWHIeolVXtDyVo7NIIW8DwIVdg4e5jiiD+QMLGmmjr1eEXNi7/2r 9+j98BcATNEJOWMvxSxTPTVeUKdliRD0l/aEJOrySO3ABNsr9m1nYfKKLuc3O6FXg7Z4 PbKg== 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:to :from:date; bh=SsYeKvWKH+5pLt9rj+RhbIv2MYeootQIidHe3zvqpBo=; b=FkEvGZE4PXUXJmscbKUCxFZEKolRN8V+i6kaFOEO28YQ3BydcqG1xMP+/QD93etDCC WttQ0Fnio+Qft98SV03a4dvRpR0a3g0uTuhiRG0LWo8uUjIsBQjAqSrWmkYv6C0Hrk8q xhP0WYFIq7nAyNZgAELrzVuZYrxQDtv3vDtfkJKABmFXmtCNj/icZY+vJjhlH9gFkHwR abB1lXgYNufqHWX1SJb4LbY73272uN6EjuHH1l9q2AlBNJa/x+PnkZibJhMAfkqBN0OI i+fcnxC5Z1BDSjNrAhUCQYtDef1Dbx8AFxDceTC/+2j88IoCtLvQu4wHN5MIea7QPxFH 5VBQ== 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 me15-20020a17090b17cf00b00244ae429c86si3059361pjb.36.2023.04.19.17.23.09; Wed, 19 Apr 2023 17:23:24 -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 S230359AbjDTAWf (ORCPT + 99 others); Wed, 19 Apr 2023 20:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbjDTAWc (ORCPT ); Wed, 19 Apr 2023 20:22:32 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460403A82; Wed, 19 Apr 2023 17:22:31 -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 1ppI47-0006PU-1Z; Thu, 20 Apr 2023 02:22:23 +0200 Date: Thu, 20 Apr 2023 01:22:20 +0100 From: Daniel Golle To: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , AngeloGioacchino Del Regno , Matthias Brugger , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Jesse Brandeburg Subject: Re: [PATCH net-next v2] net: dsa: mt7530: fix support for MT7531BE Message-ID: References: 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 Sun, Apr 16, 2023 at 01:08:14PM +0100, Daniel Golle wrote: > There are two variants of the MT7531 switch IC which got different > features (and pins) regarding port 5: > * MT7531AE: SGMII/1000Base-X/2500Base-X SerDes PCS > * MT7531BE: RGMII > > Moving the creation of the SerDes PCS from mt753x_setup to mt7530_probe > with commit 6de285229773 ("net: dsa: mt7530: move SGMII PCS creation > to mt7530_probe function") works fine for MT7531AE which got two > instances of mtk-pcs-lynxi, however, MT7531BE requires mt7531_pll_setup > to setup clocks before the single PCS on port 6 (usually used as CPU > port) starts to work and hence the PCS creation failed on MT7531BE. > > Fix this by introducing a pointer to mt7531_create_sgmii function in > struct mt7530_priv and call it again at the end of mt753x_setup like it > was before commit 6de285229773 ("net: dsa: mt7530: move SGMII PCS > creation to mt7530_probe function"). > > Fixes: 6de285229773 ("net: dsa: mt7530: move SGMII PCS creation to mt7530_probe function") > Signed-off-by: Daniel Golle > --- This v2 submission addresses the comments made by Jesse Brandeburg regarding zero-initializing regmap_config as we are now not necessarily using both of them. Comments by Arınç ÜNAL have also been discussed and resulting in receiving Ack. However, I can see in patchwork that the patch has been set to "Changes Requested". Can someone please tell me which further changes are needed? I don't see any other comments on the mailing list or patchwork. Thank you! Daniel