Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1877253lqa; Tue, 30 Apr 2024 01:40:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvmEwefjCn/3PmX/TPL1jN7OCn+WLYCf6QURRQ+h5JalLbXXxW3kn+x9nObVqUB93Z9GcyrJOkUDdKhWQpk78dYR0TlqqqEBMBkSaUOQ== X-Google-Smtp-Source: AGHT+IHHRbxxhNbuKfamKwGq9p+D13DknDFHIbytQ1xgMFm8ctGvhqqVES9u0+DxZwVIhY3YdG65 X-Received: by 2002:a17:903:2342:b0:1ea:e2f9:7724 with SMTP id c2-20020a170903234200b001eae2f97724mr3159179plh.7.1714466453907; Tue, 30 Apr 2024 01:40:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714466453; cv=pass; d=google.com; s=arc-20160816; b=sYGQuG10nB9bBIwuBiV4rP8cqj32h5O/0ri2y2w1iZlOmTYNeULFz+eXCIq2N63gU7 WXtcppJzdAreYcA0P/JJzZ5f9hIPbKJtZP2DxnD+n7t3lXrHehrskh/2NqXletrTqEnb ivYQKNOYSxHBde3TFkqO0UWwQHRF7HDgsPejCZyHeQes8jfx2pdrXnT7+UYdGDqB6F+K S41ZJFHLGjeYMdBLtbD1nPDgsA+tC8q1A8x1TX/3Fj16yWfspaczRZfuhBN9M9tm0MB1 NGpIFBONg73dnRQ1x1ZbMexVWn2nSNjju8YkLocC0dIbWcJ/8PkhUwqgkFlSSUK276pZ qSqQ== 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=OW0f/DmFWJycnlx0nA84xv4H0lvNTD6HCGeHYDQEruo=; fh=FZ8lJPkZghXo7cjjk5LlG/r+nFxaAY6dY38taoG8W1o=; b=Lgej+MfihH8v0ACvESnv9puOXOHniSdXpSDwNkApARDwkXHOqzhgYx1IlZCXfLHdVi L3+jXruDuVnmFHNX0YAS6ZPaYVwqhLFYBE/xPWc1rm/G/Uy+P7ctKYJBC2IqhZ5lcRgT fXK4yew9cCp4348SDQ1MrAwcbdvZk8oTv9YhFmKjjG/SeXrkm/0v4eZj7KjVMHCMbImI azdLeV7jUoUE0I5L9+xt75ak3235G0sr55hem8NZS/+X/hodhd3qK+JIZCiy0Nzf/mne O2H5ec2YxOM5voqEJeYeBmaZigF6vPeDS3oKTHpVUwYTOs2HnTUhlEwcokJnU3vuBK/D k5vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=K6wfWpn+; 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-163555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163555-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c10-20020a170902724a00b001e431e864ebsi21035898pll.342.2024.04.30.01.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 01:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=K6wfWpn+; 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-163555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163555-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 58F05B22274 for ; Tue, 30 Apr 2024 08:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61E111428E8; Tue, 30 Apr 2024 08:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="K6wfWpn+" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 80D82129A9C; Tue, 30 Apr 2024 08:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714466360; cv=none; b=pUuxFyGpdtWPeAUJcKLxFiTD7PQRbeGez5ApT/WGuLgNtROb1hYaw2Z7IdrNwvCTm7Thu+Rx0DnWtGtyKNmcfFhXRO/JAEDQbQ/TRNzwV3GOBF+L0geD+MrFLaU0eNrL8QApdhQmyv0n/qKV7Jj/iQYZ4R5SFKxKhclGyplT1sA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714466360; c=relaxed/simple; bh=cUtrFBYYTOydS6VWD1TQj52pXtF62FbzoeyNmkpjv4U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Q5cnYR2mIiwsBlNPLBrN8a/dXHHpcRbxziU/pzD4a270jCROt1UStIH8ln2NAFjYp5tMxMnf2j4BuMUOvVu82SNBk+SvFT6Zji0sRQOPOR6l/QOgeHdsFjlgaD5hhgExI1zyY/wXLciR2iPVvRJ14AA37SSgEw8gk7tmaBhVkt0= 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=K6wfWpn+; arc=none smtp.client-ip=217.70.183.200 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 3FA4A20013; Tue, 30 Apr 2024 08:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714466356; 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=OW0f/DmFWJycnlx0nA84xv4H0lvNTD6HCGeHYDQEruo=; b=K6wfWpn+JDUTu1B6Oy5ReSrajYi58yXFAgCH+P5vWL26tTZXLfcFiH1wc+dw5UldujukmK Mks9XNG+ImLUWxxh1HUGm6DqTvWVx+0QWiY4z/ZaOZ7i8LdnHgQxzIY0CItOvRL1PhQXTS CG/ICThpNlDQVlkA3pt6yxXBz3mhWLM8zxDViubC4iYNFlSC1gnCp5fPY4LPWRI8jd33hG FBw/rcD7mJiHw77xLebBzIjoyDJ0P6z88BmyabQ6ee457UZpVLjmfBQxs7/VmmYmDl9Mwu UuIMug/YZIyTN7fWjRR3W4Cjt84aFWaW0PzHj1ui9lJxWoH5K09yzmx9R+zr7w== From: Herve Codina To: 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 05/17] reset: mchp: sparx5: set the dev member of the reset controller Date: Tue, 30 Apr 2024 10:37:14 +0200 Message-ID: <20240430083730.134918-6-herve.codina@bootlin.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430083730.134918-1-herve.codina@bootlin.com> References: <20240430083730.134918-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.44.0