Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp633994imw; Wed, 13 Jul 2022 05:23:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uTcvsECgi2Gboq7jt72MUNhhZFgph+hk+uMpTvPxTZU6u8qQFgsH0JOGQGWHimhvEvd8LN X-Received: by 2002:a17:902:d4ce:b0:16c:3d34:fdbe with SMTP id o14-20020a170902d4ce00b0016c3d34fdbemr3254518plg.15.1657714982873; Wed, 13 Jul 2022 05:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657714982; cv=none; d=google.com; s=arc-20160816; b=gRrMWaCZNIk/502DmgP4kcAPXwdOxr4YCEmp77Bs94Vs8cDMLUb6hBTV5UBRnf2AuN jaEcJucwL846DSdikHNPgVhfMIiDap9RsKBzbIwy90Fgv9W74/o18mANLYeqE3o8/Gkv 0J1N7qeXlBMM2JOxOxj2Ug7TY6UEae/Ty9CBJR9nPuyofBoJqDmDftiWoYx71+nb68Pt ar1+xLTqYk43WiZk2emRGp9KG0//kEN6Euz25QDi9WbhzYnFPcGgh5wW22kXtW0Co7W8 Dgi+rqakRBpqQlm7m26ZIzJgg4tn+3cTz0EGozpOFMCHMo2lZw0XXtIwIY5zH/mF8HKy dquQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=uj5bW8EvXm3d35s3Thb55Nqx8c5+UiLo48OklFJqK6A=; b=aZrUJyX08zuK0WKEAzAXly3KnuY9Mp16JRK8nV3cjVXCbvaHnBT4crbp461N0AGLIP AUbzuvH1mEHW8l3bkL6qNkQV9uTtb60+aARwt3Gedxo3kfD25OSDCn7PsnDXTMvMaGk+ dqaN6M+2klCsY7e7usabs0vbw2BZ1D1eqe4L8wPBD5tpt1SJ5AbiRMLon8tO3rUic5Mn DTRtQFoWW0c71rpUHXxue2Geb1PllVDoHa0pE59zi5iTy8DCqOfozu+hbhwIFnRG5Hfb FgKoatO677/QwQmaJcuq3WRZxlA8ceAGb4krNrG3o9OnCXaT5jGo6s8Tbh9Tc08AKMbT QoAQ== 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 on6-20020a17090b1d0600b001f05563b9eesi2616098pjb.103.2022.07.13.05.22.48; Wed, 13 Jul 2022 05:23:02 -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 S236162AbiGMMJE convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Jul 2022 08:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbiGMMJD (ORCPT ); Wed, 13 Jul 2022 08:09:03 -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 BF27B8149C for ; Wed, 13 Jul 2022 05:09:02 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBbAr-0002Oe-3V; Wed, 13 Jul 2022 14:09:01 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oBbAp-000hWx-V2; Wed, 13 Jul 2022 14:08:59 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1oBbAo-0006a0-SV; Wed, 13 Jul 2022 14:08:58 +0200 Message-ID: <4a12868d0bffbaef9912fbc54e5998e0c50bccf6.camel@pengutronix.de> Subject: Re: [PATCH] Revert "reset: microchip-sparx5: allow building as a module" From: Philipp Zabel To: Michael Walle , Steen Hegelund Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lars Povlsen , =?ISO-8859-1?Q?Cl=E9ment_L=E9ger?= , Claudiu Beznea , Kavyasree Kotagiri , Horatiu Vultur Date: Wed, 13 Jul 2022 14:08:58 +0200 In-Reply-To: <595347d292ee31a9f0de031d6349f44e@walle.cc> References: <20220713084010.168720-1-p.zabel@pengutronix.de> <73dc6fcedebcae098751bd093fe2d028@walle.cc> <595347d292ee31a9f0de031d6349f44e@walle.cc> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@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=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 Hi, On Mi, 2022-07-13 at 11:52 +0200, Michael Walle wrote: > [+ Horatiu, I missed you earlier, sorry] > > Hi Steen, > > Am 2022-07-13 11:40, schrieb Steen Hegelund: > > I am afraid that the exact list of affected modules is not available, > > so using the > > RESET_PROT_STAT.SYS_RST_PROT_VCORE bit is the best known way of > > resetting as much as possible, and > > still continue execution. > > Mh, you are designing that chip (at least the LAN966x) no? Shouldn't > that information be available anywhere at Microchip? ;) > > Anyway, it looks like almost the whole chip is reset > except some minor things. So the driver has actually a > wrong name. Until recently only the switch driver was the > sole user of it (at least on the lan966x). So, my question > remains, is this correct? I mean the switch driver says, > "reset the switch core", but what actually happens is that > the the entire SoC except the CPU and maybe the io mux is reset. > What about the watchdog for example? Will that be reset, too? If [1-3] are to be trusted, RESET_PROT_STAT[VCORE_RST_PROT_WDT], which protects the watchdog from soft reset, is not set by default. So yes? There are also AMBA, PCIe, PDBG protection bits against Vcore soft reset in this register, depending on the platform. [1] https://microchip-ung.github.io/sparx-5_reginfo/reginfo_sparx-5.html?select=cpu,cpu_regs,reset_prot_stat [2] https://microchip-ung.github.io/lan9662_reginfo/reginfo_LAN9662.html?select=cpu,cpu_regs,reset_prot_stat [3] https://microchip-ung.github.io/lan9668_reginfo/reginfo_LAN9668.html?select=cpu,cpu_regs,reset_prot_stat regards Philipp