Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7164773rwr; Tue, 25 Apr 2023 08:58:47 -0700 (PDT) X-Google-Smtp-Source: AKy350b69r/Rq36pF9/cySlu/QMSkIR1cWvl1MsrwX7rTBBT4LZGrpBh1vdAWgDPQZvN9NMGcB9A X-Received: by 2002:a05:6a00:993:b0:639:d66c:8fc7 with SMTP id u19-20020a056a00099300b00639d66c8fc7mr25093398pfg.12.1682438327544; Tue, 25 Apr 2023 08:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682438327; cv=none; d=google.com; s=arc-20160816; b=MIVfvt6s5vdlJdyHHDW9iO1tKJL4v0tIOeBTc9mrfGp24Wf/ViZesNredAvo3eX6Yu oZ2FtSm8Yu7Q93ajK40hwkpEcb86m3Tokk6TQ/rWRtj/BjGEkriZJh4knZut51iZSfPu jiFR52bCXMohXElyEwgT/m1nO9OwSMjVWz/HExm69HVg1ZGzFv2c2yQibnrl9VDdm4s+ CkbjCyT38JjEi9Laj9JopASp1Uz2ezvHbhJbrABoF7OFnTX6ilx3tbJ8MXaYIUePuJ3F FeORwTXryxNa2du3PP7SxJID1y07/LlOMa6iBujjn2Y8KOVet8lmh1n0Zcra8QVNlWBQ +m7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=21FW/ps6w72COqJhRKciuA90x4Eoc5olANM925Qr3S4=; b=Z/5p5HvidmqzpfnDsSqccRmg17WlkFvMffBxhh6bD6wGImswWYbXz7ii1xIn6UWbef TiVPmM/Nhc4WwAa+7a3BfRlxnrlR6ClYpYKK7M7z9Hr1frbagKxMUhKfVynhjE2lSMak 2fKqxiOoZ7Al0bmEBff92V6wwDWyo5b4/LocCrAuQnliLP62rdv81JQSe6yAAm9UG+Ml 8lTI2Ic6qKbych/F6gmmorpVvSgp6v8SFS6Od0nuLdb/ouKgtDKLpWlOM9fj0ibgteL0 gaLtnvpWQvUns79KuE/Eby7GsvoMTDNzpdV7iA1wJJJEQuHDLAy9tOa4xSflVYZJ2Ml6 bU1Q== 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 d9-20020aa797a9000000b0063b59a25a0asi13980337pfq.134.2023.04.25.08.58.31; Tue, 25 Apr 2023 08:58:47 -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 S234583AbjDYPvy (ORCPT + 99 others); Tue, 25 Apr 2023 11:51:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234578AbjDYPvw (ORCPT ); Tue, 25 Apr 2023 11:51:52 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4237714F48 for ; Tue, 25 Apr 2023 08:51:51 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prKxD-0008Ej-9G; Tue, 25 Apr 2023 17:51:43 +0200 Received: from pza by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1prKx7-0005jY-5n; Tue, 25 Apr 2023 17:51:37 +0200 Date: Tue, 25 Apr 2023 17:51:37 +0200 From: Philipp Zabel To: Daniel Golle 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: <20230425155137.GA19130@pengutronix.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: pza@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. regards Philipp