From patchwork Thu Oct 3 08:16:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 13820786 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54E53CF856F for ; Thu, 3 Oct 2024 08:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qzQMAvI0nCFILtgxrzl+sX/i8wunJ+BbULExJUuUO1U=; b=A+ukOGdO46Iy4X3b1vHg1ndWB6 lozNM7JxTdvJNGqLW8ON3ahjeOzgwgJ/CpnZWesyKD4QjADV/II0lttN/fGAdeCDi2CgNdLsvWlh2 kjlgHfJK/rX2stJH1z/wCjGMJDVSHC/wXc8zE5bedS5xUIQ5/2YlscEXsJTFEaMQxj4iP22nujGUr ayuau2VZ2G8f2BsKFeif4pPpusLhIS+IP6UoXifctAbFUjmEaXEPUdNX/P652hiDV+EihCjPtTf7/ 2ZICIpImA5BU65mkIYPw/qqL3ww4DLPDKXBGOa1QVG8Ws9if4i2Cgj+gLqkA+fKd2Pg7VhYHi0JQh Zq+fHItA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swHC8-00000008YvJ-0cKv; Thu, 03 Oct 2024 08:28:20 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swH2G-00000008XE8-2O5e for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 08:18:10 +0000 Received: by mail.gandi.net (Postfix) with ESMTPA id 8DE34E000F; Thu, 3 Oct 2024 08:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1727943487; 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=qzQMAvI0nCFILtgxrzl+sX/i8wunJ+BbULExJUuUO1U=; b=kig6lMO7siNsOIkaLnq3bONoAVu3SWPC/qQhGwXbv+T4hvqfdhCKYOspyt4oSxyR1GCPh8 HjEIkZ+F6ymVqDoFXOItoqnzUU6wgdEVlKf1ig3WYuyJ9y4WecZVNsIrRvh5li87XJC0Fo r1qme9XTBbDJrRFgAxAXzoAvKkWLX7Svg2eXlEmAacrJnk03ESJNQhCMjVY9BSA+oLYNvz iQZ/cMkmF83bpd90B2VuVbRw0N9fZOZIAeFqFH7jVig4+/KeoLRET5fCEKg4I0h4dC4u8j GVgwk9n31PSp7c+PI57MZ4Y/5EY6ag4OjH1pL/YEEHWW7KSisxs4MHfBpKIysw== 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?b?Q2zDqW1lbnQgTMOp?= =?utf-8?b?Z2Vy?= Subject: [PATCH v7 6/6] reset: mchp: sparx5: set the dev member of the reset controller Date: Thu, 3 Oct 2024 10:16:43 +0200 Message-ID: <20241003081647.642468-7-herve.codina@bootlin.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241003081647.642468-1-herve.codina@bootlin.com> References: <20241003081647.642468-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: herve.codina@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_011808_870406_169D2BEE X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Clément Léger 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ément Léger 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-microchip-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_device *pdev) return err; ctx->rcdev.owner = THIS_MODULE; + ctx->rcdev.dev = &pdev->dev; ctx->rcdev.nr_resets = 1; ctx->rcdev.ops = &sparx5_reset_ops; ctx->rcdev.of_node = dn;