From nobody Wed Nov 27 04:35:30 2024 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BD731ABEDF; Mon, 14 Oct 2024 12:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728910023; cv=none; b=C07dBtmIrT74cg6IOse5XXB9TtEiztl6MR/gKzLaTV/uTih5Eg4GJ+Vr7LBLOPIhEudVF46+jCy5h9lR/++K4eTXMTeUP++ybaSTiunFLZyBgN8ityS2In/I6uk6EifPU75R5y5gNASua7V8iO8mT7PBNFA9jEoUPmTVbUMsUfY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728910023; c=relaxed/simple; bh=rFTXzuJcR06ddN4070uzIzRRC/MmzJK4wQKN2A4qj28=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iJ9e8dbQHo3k8PBNpl1lil1QfOl5zQDDENfCdxSRpi/C4GCruwLf4NwKuq3KhOMw9Rtg1+4SUnwoeItImU9yKPCU6WsGQphFW3KIlwxrmQWhXingiWjtxwYXFA0Is/jyPRfmNq1uhGB9SdyUQcLPDCWetm98gJnYsiZuTj3Pj8M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=UaeVhZSM; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="UaeVhZSM" Received: by mail.gandi.net (Postfix) with ESMTPA id C3560E0004; Mon, 14 Oct 2024 12:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728910019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jyXjSeqKBZyL71QqcutV8ArwuYnG2LnYxkOoexou8f4=; b=UaeVhZSMOLqXf3943rottRZjFgBaSRTpNrforsOsAFFOc3ODMYV5tMOHBMOG0W7XFnRa3+ eMKoopHwpv0cDfHK8p9jHM3aF3tLVNJHNV2tbmT9aE7rHRFF+bbdIODXxbD9gUVe7pu64r LQNA+dPu/TdAYqOp0ib5JZ5cxwEr5Uh3olHieteGw0vJzuH5hwCiHjBiXDabJCR0Qpa23Y w5HLIZ/F5VoWd4asTi8eXdt6mg8lFV0P+6sfZnOxM0nfANQ4FrPKG654B6Fftya8yJknms 3LbKeCOoFd5aQfEUw9Utod/bYMOx3gTx3mu6hlRc9XX0jjDpUoeLIBf8DNAiUA== From: Herve Codina To: Geert Uytterhoeven , Andy Shevchenko , Simon Horman , Lee Jones , Arnd Bergmann , Derek Kiernan , Dragan Cvetic , Greg Kroah-Hartman , Herve Codina , Bjorn Helgaas , Philipp Zabel , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Saravana Kannan Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Horatiu Vultur , Andrew Lunn , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Allan Nielsen , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= Subject: [PATCH v10 6/6] reset: mchp: sparx5: set the dev member of the reset controller Date: Mon, 14 Oct 2024 14:46:35 +0200 Message-ID: <20241014124636.24221-7-herve.codina@bootlin.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241014124636.24221-1-herve.codina@bootlin.com> References: <20241014124636.24221-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-GND-Sasl: herve.codina@bootlin.com From: Cl=C3=A9ment L=C3=A9ger In order to guarantee the device will not be deleted by the reset controller consumer, set the dev member of the reset controller. Signed-off-by: Cl=C3=A9ment L=C3=A9ger Signed-off-by: Herve Codina Reviewed-by: Steen Hegelund Reviewed-by: Philipp Zabel --- drivers/reset/reset-microchip-sparx5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-microchip-sparx5.c b/drivers/reset/reset-m= icrochip-sparx5.c index c4cc0edbb250..aa5464be7053 100644 --- a/drivers/reset/reset-microchip-sparx5.c +++ b/drivers/reset/reset-microchip-sparx5.c @@ -154,6 +154,7 @@ static int mchp_sparx5_reset_probe(struct platform_devi= ce *pdev) return err; =20 ctx->rcdev.owner =3D THIS_MODULE; + ctx->rcdev.dev =3D &pdev->dev; ctx->rcdev.nr_resets =3D 1; ctx->rcdev.ops =3D &sparx5_reset_ops; ctx->rcdev.of_node =3D dn; --=20 2.46.2