Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4362718rwi; Wed, 12 Oct 2022 14:41:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7jpNgGooVz/KhIzWFmuPxvBKXEHLM79h2d4bEpmS+lzyf263g4gMNN+1M0odTZjBU1ra0J X-Received: by 2002:a17:906:4795:b0:78d:f45c:73d9 with SMTP id cw21-20020a170906479500b0078df45c73d9mr3883211ejc.144.1665610909427; Wed, 12 Oct 2022 14:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665610909; cv=none; d=google.com; s=arc-20160816; b=IYSJvMImyNNGjCOaVymntzA58bQJXqEmabG1jMIi44urVOYJHvNeD8V+7lPH/CJYHU WFvcvHVwco3QBgG+0fh6u6TxYj9VJX9Wkzc6QuCoFTol6ciXRosqQbOY1wyWQPh3AjXo 1X86/P4kc9W63rlISmt+VNH8dlhdcXdzbBn87ZqIxIJgtiszlCmJOU7njxYzA30i6fdL Al5LkiOB6j1Z5n5tgDnIGASyNkqvV4Q4/Skn7FbJGSf1mBaTLvWu3NHvvtB1qEVjgazE PPM2WBc8a26AdkFhra4iAY8xMCqE9SeT82DP/G9T0mtJlC6UogdjMz25X1cPR7BOxB0B n7AQ== 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=rG4R+wqzRRZPy/iFUqxWu1RUJMeR5k+eB1P0dMbq/Qk=; b=CC+3OcGq2a1Ins8RwFoCalknaAOD1fbVJPxm/0fFLUlu6Pxgz2WkkPmBEWnvCtmroQ f89DKfjBMl1WcWjHjPHtTzhurLJyyBOny7Bdffk3ZTroWYGipCgeUPeUopDbPBkTufj0 aJ4TA1MenSRSuml1+TRXrPGuZ7bLhiT6DmGOsbhMsHwAJSCwXZ6alb0OitNmR5RT+fEd WTqEen+gEYxbL5YIBbZJ98/Qmcm4sZ8Y/5B5koqaiRMpRJQd754BTXRfNjSbhBhorjqv eR0+ypA8zw3+gQV52ayFBXkKKRRRCBJWJ/2lmONli96b1xxR7vZAwbmObHCmk4ffJFEs IMzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=v8VCLffV; 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 nb19-20020a1709071c9300b00780550da9c3si16890944ejc.441.2022.10.12.14.41.18; Wed, 12 Oct 2022 14:41:49 -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=@lunn.ch header.s=20171124 header.b=v8VCLffV; 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 S229635AbiJLVak (ORCPT + 99 others); Wed, 12 Oct 2022 17:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbiJLV36 (ORCPT ); Wed, 12 Oct 2022 17:29:58 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F58E21E15; Wed, 12 Oct 2022 14:29:53 -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=rG4R+wqzRRZPy/iFUqxWu1RUJMeR5k+eB1P0dMbq/Qk=; b=v8VCLffVX+c4mNBh1I6bTUb7Mx 1fMdXAVVMdJhgtvLe/qfMY6KuKjn9OizoGn1f1wpe8UBQl23v+Fx/Wq3M9QD9uhiOajryN7AzyV6n XbG9GWswWCZA5/aLGs9WgP0eToBuDOx3Oc+lVxGKyDxqqz5a3EEHXtEjD5/E36NKvHZk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oijI8-001psu-Va; Wed, 12 Oct 2022 23:29:28 +0200 Date: Wed, 12 Oct 2022 23:29:28 +0200 From: Andrew Lunn To: Clark Wang Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, kernel@pengutronix.de, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH 1/3] net: stmmac: add imx93 platform support Message-ID: References: <20221012105129.3706062-1-xiaoning.wang@nxp.com> <20221012105129.3706062-2-xiaoning.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221012105129.3706062-2-xiaoning.wang@nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 > +static int imx93_set_intf_mode(struct plat_stmmacenet_data *plat_dat) > +{ > + struct imx_priv_data *dwmac = plat_dat->bsp_priv; > + int val; > + > + switch (plat_dat->interface) { > + case PHY_INTERFACE_MODE_MII: > + val = MX93_GPR_ENET_QOS_INTF_SEL_MII; > + break; > + case PHY_INTERFACE_MODE_RMII: > + val = MX93_GPR_ENET_QOS_INTF_SEL_RMII; > + break; > + case PHY_INTERFACE_MODE_RGMII: > + case PHY_INTERFACE_MODE_RGMII_ID: > + case PHY_INTERFACE_MODE_RGMII_RXID: > + case PHY_INTERFACE_MODE_RGMII_TXID: > + val = MX93_GPR_ENET_QOS_INTF_SEL_RGMII; > + break; > + default: > + pr_debug("imx dwmac doesn't support %d interface\n", > + plat_dat->interface); netdev_debug(), or dev_debug(), so there is some clue which of the 42 dwmac instances has a bad value in DT.