Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2151428lqb; Mon, 27 May 2024 09:22:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9WfWD/mFYxYJXkwg3XOWUOT4IecAI+gvSa0wDAkm2YtbQ9+1dzPcglwXq2xZ3RVBsqUKBVCI7IRC3q5CYo/u38YG86TBnuWN/GH2zhg== X-Google-Smtp-Source: AGHT+IHEIPN067n39H5DNTop9rn37xk8oD7yqMD0Ys5XHkmh8E6Qk5+eAjWRbRZA4/5BzFCD9zI/ X-Received: by 2002:ae9:f20d:0:b0:78d:5e64:4d5a with SMTP id af79cd13be357-794ab0d399amr1022592085a.38.1716826945524; Mon, 27 May 2024 09:22:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716826945; cv=pass; d=google.com; s=arc-20160816; b=sRlnr+ZdZg9I8PoduDzFBVh/fdXvQ9qxM2Qoff+VjmmCDdfa2sQMO6DqMWzvaz7EX9 dNq5yet80Yi/ExPv6n9K/Vr1TA4C0yp6X0cG926KFYt6dO+SCXCLAsFxSPfKWcnPKteO OEAcZiwTkB3PUSmV33PFyAEF3ID3TiwptGBY/xlcjZlATek2UAy+Oq9R8QmpbaSIu8n2 cJAu7cVKEICqHGQLD1WPZ2C7TTXulekkXytRS14Ox2vU+1ZKVruVP/7h9OFhUQ5OXrsF ohMbW/D7v0rmj2nlwqFrkbXho99XuRioEKxs1/KQ0Wobr97lfYDg8OkxPBKl7NxJazqa /XrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9I+0v1qx7CVrOS1djilPmB0cdboViIJolbKDdwWOXOM=; fh=FgwDDXx9Ad8vmEmzzXm7uCBC9EwkDp3k7U93srafrH4=; b=dmmLFzzN+lMdDsSCN+lZ+Ii6tqRnRBP/baNgAUqkyu2uuTiN9KSnfVeIiVjmjgX4fs 3mSphMvo0vipWHjrX4fdNGCBtQ6AVnTDAf5JjbBqkju+G8jM3uzC9O09fnugQzijos0c w49L/qVRBVNFJqxg7AkwNaYvyYHuVa8I0UUH8LFy1OX6LTDFQlrckbksco2mCGXx/qE5 s3v0A0fQxCXEIAcxBWNqMgbDUI73jNL59C4fbHDujRAzkTSTQjQEJVtcr3x7sAebYb5B 5N2mRdKaZ3pN0LXFd81TVeyE2mDjssEZAwp7LlgeNF22rbIlQrf2I6wtWPzoE/Oeo+wi +xsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VSglVmn7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-191216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd3bcbesi795549085a.433.2024.05.27.09.22.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VSglVmn7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-191216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F28C1C228B7 for ; Mon, 27 May 2024 16:22:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0E3A169375; Mon, 27 May 2024 16:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VSglVmn7" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 BB929167DA2; Mon, 27 May 2024 16:15:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826510; cv=none; b=JVFeQeWGpXmGfqHdcnuAK9sfn1C6xaPBqmh7p5iueqbOh3F9KO56d+saY3PRm7hbmLXbeNqyUEIrvUbiehFEmiJimaywd0XaQGIvrtIqvtKDdlAzF1bpm+Hfc/Aab2XaCajSTvoJJUNf8i5r5Gk0sNFjVMeybMW6CO11ogOEfF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826510; c=relaxed/simple; bh=nhPkf7wgseJDhZAtkhb42G6JXubPm9Ki2AQx9/jbUDc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jGJIaDnWaMcUm6SkZsC7JYkPdb+gLDY/TMLGvmCbdAQWCRm+EdTocjwbFvvLRA5nz5Z9GIrSDRkfnHwMTGZpGla3fu5Y9W2xgmV7L08LrkkkDpYPY6RRXnKl8b/q/lZkKfwRDKYizI+cj0lOB/LT/5MqQjNZfSWEpjkWH0vgur8= 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=VSglVmn7; arc=none smtp.client-ip=217.70.183.199 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 Received: by mail.gandi.net (Postfix) with ESMTPA id 93DE4FF806; Mon, 27 May 2024 16:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716826507; 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=9I+0v1qx7CVrOS1djilPmB0cdboViIJolbKDdwWOXOM=; b=VSglVmn7Gn5q7PaPZMeEM6bfECigH6tLaVL8NUWhNemTLBGEvNVJLcDc6T9YvDDkvlxpjA fV//LwGH4SIqSRUZ8fchGyyAHLCwUO1EXWoBMtPB1RhydP/9eFwQUrOesXwA9gH1yQ2vPA MxSsABRZAWuMDHGtmrnTinbeyNYmMuf8wWfsxPBZoTz1/F7TDv8kUPOt0kvB+y3R60Pz+b 1exgfqi4TxCVfhyIXuojkmJ7CZntnwnOOcOhTi9FW/p/2rypSK+b4fEZc0WdCEbaG6glRc yF0LCz3RVqU1Oyk/3So6CSacY7kNkZH1rF5iDA2YzcJMkU4McNqY44TRBLP7iA== From: Herve Codina To: Simon Horman , Sai Krishna Gajula , Herve Codina , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lee Jones , Arnd Bergmann , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , Heiner Kallweit , Russell King , Saravana Kannan , Bjorn Helgaas , Philipp Zabel , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni Cc: linux-kernel@vger.kernel.org, devicetree@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 v2 05/19] reset: mchp: sparx5: set the dev member of the reset controller Date: Mon, 27 May 2024 18:14:32 +0200 Message-ID: <20240527161450.326615-6-herve.codina@bootlin.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240527161450.326615-1-herve.codina@bootlin.com> References: <20240527161450.326615-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: 8bit X-GND-Sasl: herve.codina@bootlin.com 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 --- 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 c4fe65291a43..1ef2aa1602e3 100644 --- a/drivers/reset/reset-microchip-sparx5.c +++ b/drivers/reset/reset-microchip-sparx5.c @@ -117,6 +117,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; -- 2.45.0