From nobody Wed Dec 17 15:41:02 2025 Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) (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 D98D11EB18F; Tue, 13 May 2025 05:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.245 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747115156; cv=none; b=LvJXfR5BcaDTTB4o/yPZ8sQC0i2Vzr+otiDp6CAxIWLocXZyurqEUpv+YxOG9SOp+mbDGQH5XQP9MZ3qVzvSBUK1Y14Z0ML4nGIgHZ9JY8K0uM+a755UEM2v7fjRkF8y+dYNeb3bmbixuuN0pL2pvnH7qEe+5L/EbbWEDB2Qplg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747115156; c=relaxed/simple; bh=eEOKGt0Y5zK2upm2FnVB89I8iU+BZz2gMiSPLY38lXc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=n+xxni8KHRQmgJdXacBXqsQmEfZwokWTe4W0CTWfQ5eGZ7shlE1sFFhKg2QkaKTAtthXEBZjye89N2aP+h/0THwwSN7hB/G3VLFw9f7om4K8+JBLfU6U9ExCJjooY9odxvTfolhGoeeu+Te+UOmpiAupwjmYKIj4R30Skk1ldXw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=D4OO15RY; arc=none smtp.client-ip=198.47.19.245 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="D4OO15RY" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 54D5jetr2210719 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 May 2025 00:45:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1747115140; bh=LA11F4v1iOlWGSyWQwH2bJeiiAZlDZR2GO5S+cZ8ysQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=D4OO15RYrORDSYrTjUKgCeEyC+k9bMnnj3YEyYGm944qWZe8LCNVxCiPlqZ7QJ7ie KhvtVmeoLc7RbEx2lE4BaXnQmW69wySRom4bZuOVczxbRfIy2ArcmyN++H6lZzVSPC 8/bD2v+gfMDhtgwo5l0/XEO2x3iKYvmdaYAvGghg= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 54D5jeS3027651 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 13 May 2025 00:45:40 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 13 May 2025 00:45:40 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 13 May 2025 00:45:40 -0500 Received: from uda0510294.dhcp.ti.com (uda0510294.dhcp.ti.com [172.24.227.151]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 54D5jAqF131001; Tue, 13 May 2025 00:45:36 -0500 From: Beleswar Padhi To: , CC: , , , , , , , , , , Subject: [PATCH v12 06/36] remoteproc: k3-r5: Re-order k3_r5_release_tsp() function Date: Tue, 13 May 2025 11:14:40 +0530 Message-ID: <20250513054510.3439842-7-b-padhi@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250513054510.3439842-1-b-padhi@ti.com> References: <20250513054510.3439842-1-b-padhi@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" The TI-SCI processor control handle, 'tsp', will be refactored from k3_r5_core struct into k3_r5_rproc struct in a future commit. So, the 'tsp' pointer will be initialized inside k3_r5_cluster_rproc_init() now. Move the k3_r5_release_tsp() function, which releases the tsp handle, above k3_r5_cluster_rproc_init(), so that the later can register the former as a devm action. Signed-off-by: Beleswar Padhi Tested-by: Judith Mendez Reviewed-by: Andrew Davis --- v12: Changelog: 1. Carried R/B tag. Link to v11: https://lore.kernel.org/all/20250425104135.830255-6-b-padhi@ti.com/ v11: Changelog: 1. Carried T/B tag. Link to v10: https://lore.kernel.org/all/20250417182001.3903905-6-b-padhi@ti.com/ v10: Changelog: 1. Split release_tsp() re-ordering from [v9 01/26] into this patch. 2. Updated commit message to call out changes in a better way. Link to v9: https://lore.kernel.org/all/20250317120622.1746415-2-b-padhi@ti.com/ drivers/remoteproc/ti_k3_r5_remoteproc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/= ti_k3_r5_remoteproc.c index 062a654cac0f0..8e2d9fa446662 100644 --- a/drivers/remoteproc/ti_k3_r5_remoteproc.c +++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c @@ -1356,6 +1356,13 @@ static int k3_r5_core_of_get_sram_memories(struct pl= atform_device *pdev, return 0; } =20 +static void k3_r5_release_tsp(void *data) +{ + struct ti_sci_proc *tsp =3D data; + + ti_sci_proc_release(tsp); +} + static int k3_r5_cluster_rproc_init(struct platform_device *pdev) { struct k3_r5_cluster *cluster =3D platform_get_drvdata(pdev); @@ -1495,13 +1502,6 @@ static void k3_r5_cluster_rproc_exit(void *data) } } =20 -static void k3_r5_release_tsp(void *data) -{ - struct ti_sci_proc *tsp =3D data; - - ti_sci_proc_release(tsp); -} - static int k3_r5_core_of_init(struct platform_device *pdev) { struct device *dev =3D &pdev->dev; --=20 2.34.1