Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7193044rwr; Tue, 25 Apr 2023 09:16:57 -0700 (PDT) X-Google-Smtp-Source: AKy350buaXXpsA3EYt8GOInrDrNwE+lPUzeF7DXX61LUAQhosWOAP4B5HF9AutgRwKIneUbslz2x X-Received: by 2002:a05:6a00:3017:b0:63d:32a3:b5f7 with SMTP id ay23-20020a056a00301700b0063d32a3b5f7mr22560301pfb.12.1682439417384; Tue, 25 Apr 2023 09:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682439417; cv=none; d=google.com; s=arc-20160816; b=UPl7WrIidaysb1q/zWqtXADTGKGG+PCQ66kKsjYAmGsPjPiSctjs/05J6jFvBb46OH bwB4k72AZz5keCYUR4aZxid4MQsg05AIFHCG57Y8M//7LbPUXKnclAlZJPQq94kY/0eg NwHt4Po+5fXPFgj4rDXbiba/e6ktnaLEiJ//czcvnWlwfHai4BXPTtnQaZLYX+2nSLk/ 6sUFzc4iktisYONQhWxKpWqp4LqI/r5Rkt1kPWh1F3cVWG1cCDXKo/YDd1rVJAGQyPsX MDHH71UuHddgca36e5nDgQe5lnYoOAA0ZcobYasJvxoPIlrPPqeICSOy4akyMorDCHkb vNWQ== 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; bh=7HZAEN1pSHljTcOR7awHYxx2pWXqQS8c8J0wPgHQUXc=; b=cHtVNhKRVcHSIfWAExAHhRvLGdCuWLIJWacRjGGAIGax6uIUkquBnm6HPJKpnMjUQq xCMNlGyJ6QH+epJDMSynhp+dEg1N2ONDLCcssKBBg4+m4pyHTXZEnXH77yxtmf+LoL22 CO0+AyRfY1QnQOTDre3vrKutyDQLSV1R4l0VJKNlpjfrrWklhvWnwqvD0m8K35CeqX+G lpQV2jClJ52vO9J7LKZsefd+KAPP/suQ9Uq03tej0qaMKr/LUcldceV0ulK+yntxtQsl 93KCX8wNVKhS8ugITddta3L5YTHgKoXQV6YM7GhiPgdOTCxJ8QuOP+ILur1Tb8PVCk8m gHOg== 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 a12-20020a655c8c000000b004fbb1ffaf6dsi9889367pgt.448.2023.04.25.09.16.43; Tue, 25 Apr 2023 09:16:57 -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 S234486AbjDYQNf (ORCPT + 99 others); Tue, 25 Apr 2023 12:13:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234274AbjDYQNd (ORCPT ); Tue, 25 Apr 2023 12:13:33 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60D8F9000; Tue, 25 Apr 2023 09:13:32 -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 1prLIE-0004tQ-2k; Tue, 25 Apr 2023 18:13:26 +0200 Date: Tue, 25 Apr 2023 17:11:36 +0100 From: Daniel Golle To: Philipp Zabel Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang , Landen Chao , DENG Qingfang , Russell King , =?utf-8?B?QXLEsW7DpyDDnG5hbA==?= , Sam Shih , Lorenzo Bianconi , John Crispin , Felix Fietkau Subject: Re: [PATCH net-next v2 13/14] net: dsa: mt7530: introduce driver for MT7988 built-in switch Message-ID: References: <20230425155137.GA19130@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425155137.GA19130@pengutronix.de> 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 Tue, Apr 25, 2023 at 05:51:37PM +0200, Philipp Zabel wrote: > Hi Daniel, > > On Mon, Apr 03, 2023 at 02:19:40AM +0100, Daniel Golle wrote: > > Add driver for the built-in Gigabit Ethernet switch which can be found > > in the MediaTek MT7988 SoC. > > > > The switch shares most of its design with MT7530 and MT7531, but has > > it's registers mapped into the SoCs register space rather than being > > connected externally or internally via MDIO. > > > > Introduce a new platform driver to support that. > > > > Signed-off-by: Daniel Golle > > Reviewed-by: Andrew Lunn > > --- > > MAINTAINERS | 2 + > > drivers/net/dsa/Kconfig | 12 +++ > > drivers/net/dsa/Makefile | 1 + > > drivers/net/dsa/mt7530-mmio.c | 101 +++++++++++++++++++++++++ > [...] > > diff --git a/drivers/net/dsa/mt7530-mmio.c b/drivers/net/dsa/mt7530-mmio.c > > new file mode 100644 > > index 0000000000000..1a3d4b692f349 > > --- /dev/null > > +++ b/drivers/net/dsa/mt7530-mmio.c > > @@ -0,0 +1,101 @@ > [...] > > + priv->rstc = devm_reset_control_get(&pdev->dev, NULL); > > Please use devm_reset_control_get_exclusive() directly. > > > + if (IS_ERR(priv->rstc)) { > > + dev_err(&pdev->dev, "Couldn't get our reset line\n"); > > + return PTR_ERR(priv->rstc); > > Not sure if this can actually happen, but there is no need to warn on > -EPROBE_DEFER. You could use return dev_err_probe(...) here. Thank you for your comments. The series has already been picked to net-next. Unless you want to send the suggested changes yourself, I will prepare another series with your suggestions, and also apply them to mt7530-mdio.c.