Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp475655imw; Wed, 13 Jul 2022 01:59:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1xgfe5VRR8dKx+rQFPvspOSlSjUh8VG3F24V+7SBTNeL85XtbgrgAowuO0Sjianzi1q/F X-Received: by 2002:a17:906:9b15:b0:72b:e09:ea8c with SMTP id eo21-20020a1709069b1500b0072b0e09ea8cmr2398989ejc.478.1657702789714; Wed, 13 Jul 2022 01:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657702789; cv=none; d=google.com; s=arc-20160816; b=1ATPrefOfqzNPmvyI+vs/hIMlL7BbsxG6jcZo+A/r0vCe9QGLcloeaL+9Dm2beRjBc 4SitP+lL0KUe5ZnoXhzx6z/P4nnhe8KTZOel5ACHEpcuaSNuPd7LmMf2J1t8n8RYVqRE +gSfXJz0Tod8m0t1JIS/ZraIwzC4/ZZG19yi/lj8O57sgvguc/3FrqRyY5J+DNRVtZ31 kHk3RRItOh7Zjoymki9ZfUgsH96cMaUIl/P36B0jJhSkJ0Piw7jtpbpSEMQtFheMpoVg lNzNr0ut1kW4I24iqsNWwr+MtlPb5yQNJWOqhB4KTqPjLbaV0LjZ/IfKBHtGGPgtzlav LNuA== 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=EfsbwhektwFWmhbJ6SZyTQn+b17eBabIXpSHIxkwm48=; b=cfYY7t0UKNWwwMA9hmwR+OLp4/bcdacruaT+C98ANEBX6ZZXh1e8a3TRSIASesr7ga SpxZ3t4eUnRLRdrmgTCQ/wRVxEIwlEIHCkd6Qh+CEkiM/f0QHLxDlshueWp60S3sL5v3 UAH4DRCJ6dQSt+S2EtQb38aTUhxmiQo5WmXUiUODFujmAv9kP7KbGoF56qm40cCe35JI HMp084UMYezpg/fCeaZKi1R53/oxPGMOxM3byBh6fKPQqTgpo3AcctI1gxFEfS3d6fX6 CyOmiN1gro8eqcjhmaI4CNiIxNpd1BTnhwIfq7ZUk9ojGMbAiTBC82mabnRss6Za30l9 7aPA== 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 gm1-20020a1709073d0100b007111f8df172si17993554ejc.271.2022.07.13.01.59.25; Wed, 13 Jul 2022 01:59: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; 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 S235814AbiGMI4c convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Jul 2022 04:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235824AbiGMI41 (ORCPT ); Wed, 13 Jul 2022 04:56:27 -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 048A8D2153 for ; Wed, 13 Jul 2022 01:56:26 -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 1oBYAK-0006wb-Ea; Wed, 13 Jul 2022 10:56:16 +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 1oBYAJ-000fxr-LF; Wed, 13 Jul 2022 10:56:15 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1oBYAI-0002b8-JK; Wed, 13 Jul 2022 10:56:14 +0200 Message-ID: <23196dd7ad4eacbee3ad7f4f29b94917a5451450.camel@pengutronix.de> Subject: Re: [PATCH] reset: microchip-sparx5: allow building as a module From: Philipp Zabel To: Michael Walle Cc: Steen.Hegelund@microchip.com, UNGLinuxDriver@microchip.com, allan.nielsen@microchip.com, clement.leger@bootlin.com, horatiu.vultur@microchip.com, lars.povlsen@microchip.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com Date: Wed, 13 Jul 2022 10:56:14 +0200 In-Reply-To: <20220712125836.2676525-1-michael@walle.cc> References: <99cba2d231c5971525ec976611e66f86259dd1e0.camel@pengutronix.de> <20220712125836.2676525-1-michael@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 Michael, On Di, 2022-07-12 at 14:58 +0200, Michael Walle wrote: > Hi, > > > On Fr, 2022-06-17 at 12:37 +0200, Clément Léger wrote: > > > Set RESET_MCHP_SPARX5 as a tristate and add MODULE_DEVICE_TABLE() to > > > allow building this driver as a module. > > > > > > Signed-off-by: Clément Léger > > > > Thank you, applied to reset/next. > > Unfortunately, this is breaking ethernet on my board > (lan966x-kontron-kswitch-d10-mmt-6g-2gs, see dts in arch/arm/). > > I suspect this is because the postcore_initcall() was called earlier > in the kernel startup. Now, somehow the MDIO controller isn't working > anymore. > > For a bit of a background, on the LAN9668 (I guess this is also true > on most other microchip switch platforms), there is a global switch > reset which is shared among most subsystems, i.e GPIO, SGPIO and > switch core. The switch driver will use this reset as there is no other > reset available (e.g. one which only reset the switching core). But when > it asserts the reset it will also reset other devices on the SoC. This > was for example the case for the GPIO, see commit 453200af8a85 ("pinctrl: > ocelot: add optional shared reset"). It seems like the MIIM is also > affected by this global reset, thus it needs the same fix. > > I tried the obvious by adding the reset to the MIIM, but that didn't > help for all broken interfaces. I have to dig deeper into that. > > In the meantime I'd appreciate it if this commit can be reverted until > the other fixes (at least the missing MIIM reset) will be merged. Thank you for catching this so quickly, I've sent a revert [1]. I'll add that to reset/next, please let me know when this is fixed. [1] https://lore.kernel.org/all/20220713084010.168720-1-p.zabel@pengutronix.de/ regards Philipp