From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=148.163.154.28 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796219386; b=qS83YwlfMUFBJay+uKLK2X1uIWK4zF/5AxAhtqc+5M73cjtplruCGFGNigWz8MOoa4Tc HfKH00bI4XSFf84pDyMIot7TyG3sHW1Im3XArpi3B8dfViHYXCSFKiGKSWeK8JL4nxm6E oEGepa1mwGBqEkoCcUcBI8tm+7atSoLbBm66elFFT1QX+hd8vzgwkTYKJIujYV1CtFeZS ITyUSh+YVaz3nHrSWIDfYp9EFR/ifH1DPTYjx7Fdpb/UkW5tijL5Xf6kPthfOkiH1ZvEu 5RTCA5pY/wv3/k0Tumx9AiYU59pmu5pECGR3P4zZ+f1oJEFpbQPcFnbHh5DYkOW2t6Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796219386; h=DMARC-Filter:Received:DKIM-Signature:Received:DKIM-Signature: Received:Received:X-MS-Exchange-Authentication-Results:Received-SPF: Received:Received:Received:Received:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:CC:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-OriginatorOrg:X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=+AQJrWWbz8GuWwT5/i5e60E3obvZh+Jp5SPluZSL6Gk=; b=gmBke1FMzq6ZEHflDa4V3CLZejqQQv0jkCsPzeSQG5Jbh9orBLNImyrC5yC+gbSaTjpg 2hL5WNA0+SC7Ju3gpgZLPZsmqmbPsFDPwJIM/r5H4lRqAQOEarX1ukRGJttlLXp+rTKhR 9xeGG9Ojn0LtHlX/eDDAVH/gSyk/Cqh5jVNL67nwrWq9Ab3BrZTxY85x0vhBvzdawEpA2 04y7qmEFuP3psxjLagkTVGrwSVm9Oa/GK5Cembg2ypHPFO+1qxlh0r3HfyJrXwHbBiMyN Sn5JhC+HIG/acfKiD12RjArz5I32J7qfD8c0bN62lw+5ZnCP6PtVptYf4MSuvEZ/j7g== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=proofpoint-05-2026 header.b=ZYkogKrD; dkim=pass header.d=ticloud.onmicrosoft.com header.i=@ticloud.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-ticloud-onmicrosoft-com header.b="ZH7xg/od"; arc=pass header.oldest-pass=0 smtp.remote-ip=148.163.154.28 Received: from mx0b-0002e601.pphosted.com (mx0b-0002e601.pphosted.com [148.163.154.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D48D606A31A for ; Wed, 2 Dec 2026 13:49:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5D48D606A31A 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 (2048-bit key, unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=proofpoint-05-2026 header.b=ZYkogKrD; dkim=pass (1024-bit key, unprotected) header.d=ticloud.onmicrosoft.com header.i=@ticloud.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-ticloud-onmicrosoft-com header.b=ZH7xg/od Received: from pps.filterd (m0374955.ppops.net [127.0.0.1]) by mx0b-0002e601.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B29IEQn3074253; Wed, 2 Dec 2026 07:49:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= proofpoint-05-2026; bh=+AQJrWWbz8GuWwT5/i5e60E3obvZh+Jp5SPluZSL6 Gk=; b=ZYkogKrDWPIXtgSvg2UPpMuyrikiJ7MvYuiGfM4v3asXX2WSSpfarbZlG d07mhhwLUAYDpKPoECYs2iv8klCbKRVlabajBY5a5PFwD8eSnci9P/FPyPEqQIyB g5gRopr+Dsh5QdHn7yFtufNSW5DKKnSqjPcJo8QBboYs1aiwvbE17mpyo4qDX2Cf vP8YDCRcHnT47URFW+FeKEE87e9UIRL0yuAEJzEJ0HI75MSdStPRMP9my4rA9Bxt OWw5VKdEnVhTiEPfKF9LDJL7lnDOO1Z4c7CIyFNFZKzW2JkSRBoaEBlOJEHStr+2 l3Udgetu6+2TqjHR4WzCfTOz5DJFQ== Received: from sj2pr03cu001.outbound.protection.outlook.com (mail-westusazon11012008.outbound.protection.outlook.com [52.101.43.8]) by mx0b-0002e601.pphosted.com (PPS) with ESMTPS id 4jagk316an-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 02 Dec 2026 07:49:25 -0600 (CST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=akNErMsoJ4pLXRJrA4GSpvq8lSZsbRXUPGOgbXjljbXXAztBi+HM/NQd/3DDvFl44WoEhOb2EU0ygKS1UNsjsSgy1boUcgxHktvmlww7d1u4Z4WK+sqzCZp6/IoTy+zgeIQCnIsoENwS8bv2XDLhHVsl0FP1ieYQsxVLhHYU71KTpDrb4mwJR8C2myrJhY360S3uTYzXIFvdrYUiMcB/3/fXfZtRy8sGcrGPXqDswH8RuHM0Phaa8GOcOAh8MWz4Eg9W53iFFSn4L8ItJP5w6O8q4zHYsIMEt3UYC09sXrJ4q5uDBSl6n40/s4rcsuCBUMLKLo6+MUqWZODz/0jmBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+AQJrWWbz8GuWwT5/i5e60E3obvZh+Jp5SPluZSL6Gk=; b=yaR3FaRQQdXVo4kK9Mt8YyQ2oHe868+suWtwOVcq/fZB8H+Bl3PKurWh1IgPZl7BpJEwzqUgrSe/4J6B+SrKeV3FIaRj5fTafyOMbxbq8E/z3rTwWQq+H6T7BHQMsbqA9zy2+MzvtT3YhTNXT0jjHn9N+1dDrDMtrI+toLT+t89xw4stf9EXZ0PDtXhFdYrtsVXlLNzUm6NDMR9M49zpw/1UXH56oTkf2alDzr9edat9N8F0NG5XzMH45fzyvlcnQ1Jxrl4eLpkuygrP44oTrzYxVCazqdxJqdL1F/+3yQ1EusPq16w79RdLekDWTBjRd4DU8417NTDHku1iUEYQmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.194) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ticloud.onmicrosoft.com; s=selector1-ticloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+AQJrWWbz8GuWwT5/i5e60E3obvZh+Jp5SPluZSL6Gk=; b=ZH7xg/od3xpr8xytbSif1vRzMrxtjYar4f45FnlUKjbHPR91vNG/4gxjVgKqORJz8Ygqpac94jAFb/VZuw7luyeDpO/oRmIiARYL3OEuJk46gurbvaiF8ZJM6qWRTZ9FqCi57BmoQ/L0yvp9prt6meIkdDuzDYQPTVFbhwL9Ic8= Received: from MN2PR14CA0028.namprd14.prod.outlook.com (2603:10b6:208:23e::33) by DM4PR10MB5918.namprd10.prod.outlook.com (2603:10b6:8:ab::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Wed, 2 Dec 2026 13:49:20 +0000 Received: from IA0PEPF0000003D.namprd03.prod.outlook.com (2603:10b6:208:23e:cafe::96) by MN2PR14CA0028.outlook.office365.com (2603:10b6:208:23e::33) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Wed, 2 Dec 2026 13:49:20 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 198.47.21.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.21.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.21.194; helo=flwvzet200.ext.ti.com; pr=C Received: from flwvzet200.ext.ti.com (198.47.21.194) by IA0PEPF0000003D.mail.protection.outlook.com (10.167.249.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 13:49:19 +0000 Received: from DFLE214.ent.ti.com (10.64.6.72) by flwvzet200.ext.ti.com (10.248.192.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Wed, 2 Dec 2026 07:48:25 -0600 Received: from DFLE202.ent.ti.com (10.64.6.60) by DFLE214.ent.ti.com (10.64.6.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Wed, 2 Dec 2026 07:48:25 -0600 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE202.ent.ti.com (10.64.6.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45 via Frontend Transport; Wed, 2 Dec 2026 07:48:25 -0600 Received: from [10.24.50.209] (uda0490799.dhcp.ti.com [10.24.50.209]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 6B2DmLVi562016; Wed, 2 Dec 2026 07:48:22 -0600 Message-ID: <79381fa0-8be7-47a1-9ecc-0c6ff3936c07@ti.com> Date: Wed, 2 Dec 2026 19:18:21 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 18/22] firmware: ti: ti_sci_device: Move device ops into its own file To: Beleswar Padhi , , , , , , CC: , , Praneeth Bajjuri References: <20261029181147.266771-1-b-padhi@ti.com> <20261029181147.266771-19-b-padhi@ti.com> Content-Language: en-US From: Sebin Francis In-Reply-To: <20261029181147.266771-19-b-padhi@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA0PEPF0000003D:EE_|DM4PR10MB5918:EE_ X-MS-Office365-Filtering-Correlation-Id: 1387e03c-f3d4-46fd-73bc-08df507b101a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700016|23010399003|1800799024|4143699003|6133799003|261009223327099003|261009221227099003|261009223027099003|261009220027099003|261009221727099003|3023799007|13003099007|22082099003|18002099003|56012099006|10067099003|261021121427099003|261102123227099003|261028144727099003|261026121527099003|261026140227099003|261021123027099003|261022105027099003; X-Microsoft-Antispam-Message-Info: RAEdcPKdXfFFVVjcfJDfcrvHjXNLNTnIIWbTDzAYW6hqVYm9eE4GDOIB3eDu2TCH0qtBQrML0W9zfdCDmt85scJIalozGNX6tcVtS8/eXzzAVhMf5K0SG9QXZ+9/D59nqhPikcS5Gusb35Ynfjywe5HoauKjOzvExeWsLCJDaje/gFwdV7Vyy+LmRlXw/MEmtNZ02BoKQkfy2mNBnkujZ2ok/6i9Stmom4XJgdwZVyhBPQ/XtQsjIlm3hZR4b3Sw89a+cBmy8fBeq+OzZqFwB4yEsqshnCW85NlJnFpf5xZHH7OgzQect5/v6KEbDmEzXrXLAkNoJMJdA1SaOdYqvvfkL3yPAafdH5uYvw/YlKZPe2UBu9393XsLj5Jm7CTyziTlRfA5JjYry3GH6vnsYBJ6MWuIDvA+Mb/mmn4QUBadagLokmC24YPM/JOc6/Jbp+vdvkrMNstFvJxA44Di7vkPhInYMpI4io8loRw+rk/AzCSQ+azfLBeRvN2lD1OHVq1jVV2OCciLO0/kybcPX3jlXGzcHCy7mZZQ+cnAaFhnNvSm0tNYQs/B2Lh7CcKuWNmlS2T6PdA8jZhZhTsG9wbkEotR1doXMYtHa0oBy//kIm1vHtALTfdJ7URSc/mrjppMTRlHPsclXVUiZiYnMwa/z8P2ri7P+uvPLhA6X2Y= X-Forefront-Antispam-Report: CIP:198.47.21.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:flwvzet200.ext.ti.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700016)(23010399003)(1800799024)(4143699003)(6133799003)(261009223327099003)(261009221227099003)(261009223027099003)(261009220027099003)(261009221727099003)(3023799007)(13003099007)(22082099003)(18002099003)(56012099006)(10067099003)(261021121427099003)(261102123227099003)(261028144727099003)(261026121527099003)(261026140227099003)(261021123027099003)(261022105027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uz6Of/DZ/gkN//C664K/TdSaonUe8dZHTzjDMAhTlg4WbotHVRrs3xd5D1FsVH0DhRwDOYZA8aP5D0fkPZdQNgg6SGiRWkYllvCJi3G0hlyw7+PLPKC6hHTyRUWw7Z7G6bza9cxl6UOW5PkMDySxoqWZbIcvHSQUAjUXeAFJim2sSivwMRNm08Yw+NZgJS0CL/f7FbSQ/b89TvWaBe6tEy5gRKoKdvNOqpFH2a5g2+V4aSWBt9e2Q4aAyw1sc6UtFzPoA31HShS1lWlq0ESaSzbEwZVe9uhm/Zs+UTCdBCxGnGTHkn5430nJWDLI+iDCztAG2CUjJVQ62OTDjlvctfbs6blWAoUDMVUuyC5j40f76Uw79gnoxuIlrIeeI/r+QkXzM55SIbdmUlf6Op98sGqch8othffB0yytRdeFqYV4vCUPg4C7qKv5d/eyV2De X-Exchange-RoutingPolicyChecked: oyD72JHcPaP3Ez2osVY+DWy1BEsOMsiv/wzOUGAz0YmvdK+RtiYmrB5kuNolCkCkchfc1LORdYJmiHqBOsQsa7GMiD8saGQRb2UhdncsxPD/F1WghVGKRmOYoCrZjx64NgsQbPOpQd1ZSXsCk+dv11tXOTLPVmUiSDz4W1D+DdH5Oc/mBld+BO1rsbFKM2/O51u+BsLugqle0XtMKI5Ke9ziXMT93cHA9L0ckkIphr3uUsvVFx5GBXhv6iUUOqVLHQkd0Vw06vMYeb5Bkv8yjELf2ZSagnxpXT+O5VMgKyHlGjXXg1IRXYCDBv78aKW//E+hBPPF2CeHwTKUe2XfAA== X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 13:49:19.0016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1387e03c-f3d4-46fd-73bc-08df507b101a X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.21.194];Helo=[flwvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: IA0PEPF0000003D.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB5918 X-Proofpoint-ORIG-GUID: 9ZlSmDa00ViqaME1cypuizzIkdP0f8Ej X-Proofpoint-GUID: 9ZlSmDa00ViqaME1cypuizzIkdP0f8Ej X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA1NCBTYWx0ZWRfXyieSsTYUflEH PNyU0AfsIjXZwnczlEtOEk9ncCX0WDdMCSgCbfzUFDBh8baZ+DstLf47Pl1/a8JIjzMgalwNCox 2ByIMD0sbqJplEb4j7CI9zVQlmVyBd/RSWh35QM7Lb4O+RtYz8Dc8o6qVpU1NnRoPoQmVY0o6/M 5+mQdXy4kBImd4ioJeY43pqAeqEhPa7tVZEnvUonPljE+OddooWTgIxnEzvGpVO4jO0ZDmR9kg2 GdxJ4EKYdINgccUmPF9U0mcSTI+ArlzwHFBQrmrdYTfKM0+eZ0O6Ym609xgFPaWTmXNbv3aWV/H gg69zLDEU3OKpMCyFBhoumc4XY80KlTmSdzLd5OnyWfVX7kjdHca5iyWaD3iJuxwPFbVdrd6bhc 6gTgf7phydTe557JVx24mYwsAM6/5yhz0M3dGbm9cDCr3a1aZ5TdLFU+QG7W+uf/P/R+WC9S1hn ZzGKoSHV6c92UNoCVPA== X-Authority-Analysis: v=2.4 cv=SugFe/O0 c=1 sm=1 tr=0 ts=6b1021e5 cx=c_pps a=cGIxddJ9FFYnYBVvYRB3uQ==:117 a=iwqwCZQqcuTv3JOpYdM7/Q==:17 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=AlMIdn_sM9wA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Z8NIEmU8O1QQgoT56wFK:22 a=fPAWb5peG099m5CrUpKH:22 a=VwQbUJbxAAAA:8 a=sozttTNsAAAA:8 a=LLS2iMjnlYPbRVu8J60A:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA1NCBTYWx0ZWRfXxupffBChwKnH 1iI83J70uu+bI2uJG4woUWiAFT+IwnRTdNxBHdhIXwEpDtFNwSI946ue/wD18tqBL6NaLIpb1S6 SWXW6Ca0Vv27YgToIoxCncOOM+0FUM4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 suspectscore=0 clxscore=1015 phishscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020054 Hi Beleswar, On 29/10/26 23:41, Beleswar Padhi wrote: > From: Andrew Davis > > Extract the device operations related functions and services from > ti_sci_core.c into its own file. This breaks down the single large file > into smaller logical files for better readability and maintenance. > > Signed-off-by: Andrew Davis > Signed-off-by: Beleswar Padhi > --- > v3: Changelog: > 1. Update commit message to remove ti_sci_core.c file renaming as that > is already done in [PATCH v3 16/22] now. > > Link to v2: > https://lore.kernel.org/all/20260930160607.2674980-19-b-padhi@ti.com/ > > v2: Changelog: > 1. None to this patch. > > Link to v1: > https://lore.kernel.org/all/20260929201746.4078803-19-b-padhi@ti.com/ > > drivers/firmware/ti/Makefile | 1 + > drivers/firmware/ti/ti_sci.h | 7 + > drivers/firmware/ti/ti_sci_core.c | 378 +-------------------------- > drivers/firmware/ti/ti_sci_device.c | 388 ++++++++++++++++++++++++++++ > 4 files changed, 401 insertions(+), 373 deletions(-) > create mode 100644 drivers/firmware/ti/ti_sci_device.c > > diff --git a/drivers/firmware/ti/Makefile b/drivers/firmware/ti/Makefile > index ca54cd35eaef2..a3a056eedd9a5 100644 > --- a/drivers/firmware/ti/Makefile > +++ b/drivers/firmware/ti/Makefile > @@ -1,4 +1,5 @@ > # SPDX-License-Identifier: GPL-2.0-only > > ti_sci-y := ti_sci_core.o > +ti_sci-y += ti_sci_device.o > obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o > diff --git a/drivers/firmware/ti/ti_sci.h b/drivers/firmware/ti/ti_sci.h > index f2f17bcac39e4..79f56699faf29 100644 > --- a/drivers/firmware/ti/ti_sci.h > +++ b/drivers/firmware/ti/ti_sci.h > @@ -1560,4 +1560,11 @@ struct ti_sci_msg_resp_get_status { > u32 status_flags; > } __packed; > > +int ti_sci_do_xfer(const struct ti_sci_handle *handle, > + u16 msg_type, u32 msg_flags, > + void *tx_message, size_t tx_message_size, > + void *rx_message, size_t rx_message_size); > + > +void ti_sci_setup_device_ops(struct ti_sci_dev_ops *dops); > + > #endif /* __TI_SCI_H */ > diff --git a/drivers/firmware/ti/ti_sci_core.c b/drivers/firmware/ti/ti_sci_core.c > index 5d3151571ac33..e98bf3c5f9dc1 100644 > --- a/drivers/firmware/ti/ti_sci_core.c > +++ b/drivers/firmware/ti/ti_sci_core.c > @@ -444,10 +444,10 @@ static inline bool ti_sci_is_response_ack(void *r) > * corresponding error if transmit fails, or > * return 0, if all goes well. > */ > -static inline int ti_sci_do_xfer(const struct ti_sci_handle *handle, > - u16 msg_type, u32 msg_flags, > - void *tx_message, size_t tx_message_size, > - void *rx_message, size_t rx_message_size) > +int ti_sci_do_xfer(const struct ti_sci_handle *handle, > + u16 msg_type, u32 msg_flags, > + void *tx_message, size_t tx_message_size, > + void *rx_message, size_t rx_message_size) > { > struct ti_sci_info *info; > struct ti_sci_xfer *xfer; > @@ -565,361 +565,6 @@ static int ti_sci_cmd_get_revision(struct ti_sci_info *info) > return 0; > } > > -/** > - * ti_sci_set_device_state() - Set device state helper > - * @handle: pointer to TI SCI handle > - * @id: Device identifier > - * @flags: flags to setup for the device > - * @state: State to move the device to > - * > - * Return: 0 if all went well, else returns appropriate error value. > - */ > -static int ti_sci_set_device_state(const struct ti_sci_handle *handle, > - u32 id, u32 flags, u8 state) > -{ > - struct ti_sci_msg_req_set_device_state req; > - struct ti_sci_msg_hdr resp; > - int ret = 0; > - > - req.id = id; > - req.state = state; > - > - ret = ti_sci_do_xfer(handle, TI_SCI_MSG_SET_DEVICE_STATE, > - flags | TI_SCI_FLAG_REQ_ACK_ON_PROCESSED, > - &req, sizeof(req), > - &resp, sizeof(resp)); > - if (ret) > - return ret; > - > - return 0; > -} > - > -/** > - * ti_sci_get_device_state() - Get device state helper > - * @handle: Handle to the device > - * @id: Device Identifier > - * @clcnt: Pointer to Context Loss Count > - * @resets: pointer to resets > - * @p_state: pointer to p_state > - * @c_state: pointer to c_state > - * > - * Return: 0 if all went fine, else return appropriate error. > - */ > -static int ti_sci_get_device_state(const struct ti_sci_handle *handle, > - u32 id, u32 *clcnt, u32 *resets, > - u8 *p_state, u8 *c_state) Very minor: there is an extra space before c_state, resets Sebin > -{ > - struct ti_sci_msg_req_get_device_state req; > - struct ti_sci_msg_resp_get_device_state resp; > - int ret = 0; > - > - if (!clcnt && !resets && !p_state && !c_state) > - return -EINVAL; --- > +} > + > +/* Minor /** instead of /* Sebin > + * ti_sci_setup_device_ops() - Setup the device operations structures > + * @dops: pointer to TISCI device ops structure > + */ > +void ti_sci_setup_device_ops(struct ti_sci_dev_ops *dops) > +{ > + dops->get_device = ti_sci_cmd_get_device; > + dops->get_device_exclusive = ti_sci_cmd_get_device_exclusive; > + dops->idle_device = ti_sci_cmd_idle_device; > + dops->idle_device_exclusive = ti_sci_cmd_idle_device_exclusive; > + dops->put_device = ti_sci_cmd_put_device; > + > + dops->is_valid = ti_sci_cmd_dev_is_valid; > + dops->get_context_loss_count = ti_sci_cmd_dev_get_clcnt; > + dops->is_idle = ti_sci_cmd_dev_is_idle; > + dops->is_stop = ti_sci_cmd_dev_is_stop; > + dops->is_on = ti_sci_cmd_dev_is_on; > + dops->is_transitioning = ti_sci_cmd_dev_is_trans; > + dops->set_device_resets = ti_sci_cmd_set_device_resets; > + dops->get_device_resets = ti_sci_cmd_get_device_resets; > +}