From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from CH4PR04CU002.outbound.protection.outlook.com (mail-northcentralusazhn15013047.outbound.protection.outlook.com [52.102.146.47]) (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 6FA2747DD46 for ; Mon, 2 Mar 2026 19:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.102.146.47 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772480156; cv=fail; b=uUNK5vkMMxb5H73bGBBlVv6zfqlTv/H1COaHcHldwmP7hJzLKxla0NtyOxEHxAQShy5bkCKz3syE5nMaRhMJ7iYEJtF5Mo60uGHyIPR/UQh5iTAMtXdviRPsrtGQmSH5B9YqrUYcftVx+mUNrYTN/JAHp148mj3o7q2AgC9lrFo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772480156; c=relaxed/simple; bh=LMbXu+w/AqhBX7CClgttd5VXeFJPDjcd/bBHjr39od4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=uVamIaL9obFl+x2oKH7LVDSqj33VM8FfR1rhQ8IzI59t4Rs76ZRoDup2XAPKlpBh8i7QCrbFAbrTwPA1PccLE8S/gkl6hAgrlD11YqjJYqNz5njN+OWjAVmys8smJ2b9ILvL06QJUxKBGi5EbOUtyIXtMMN+VhQnL9Hp1qGpL8w= ARC-Authentication-Results:i=2; 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=lXNgTOWE; arc=fail smtp.client-ip=52.102.146.47 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="lXNgTOWE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IHU+wFHEWgqyTjGLmJSWUMLt5/DhLmR+1vMMkcbURRtkudWEgZ1tEEi/LxUx4Mpie4DwCymg3j2Y+4JSY7k4LxbrhE3PXWr9aslEObSRF5kgZ4d36/l8f9wVUQA5hTUhIcDh8kGivV1bXN/0WA82HO65AAx5mDwvvVrhUH2js5n2nTdRYiHyhYbHoDiwgPfHRUgTjNJfGUv/s0L/uEKxeAwrII69YSBzeLQtON0vCitYERkTIBQuSgh+QIpCuXvIq2gB9floKkwgZGXJU2mbtmyhaJjDYKI9qkGoKGqEXBQAeDOkASn6mdglIxsdKQGyhnIMI7A95f8CRRBAq1D68A== 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=qJ2rmt3BM2iUTI0tSoGaXwNcGvAdyFXkvXU+b9dyQLw=; b=VT10f44+dMkUeHqJ0agwBR7lkUc+PJWAiREBi4IgLUGoclzzzokPwT5Q/b4Za0UWDOoSM0Xp1cVIxW95j1RwP55Ma0+BfYjbRjgD/E3J0AerVOIY/w5YnjcrKs5tRtvlq19HCYLHx2O86jaELm5KR4d9lSRB8mqtWN2YtdWZO936OteAtdyZNxEll9eNyY/6jLyjLU3WU2AsO+kVqzPBcHbJ4QWPlARgnAWlwU69A60M4uyRpFxIu56LqccsB+yjRtpHhu90xK5HzIIYwaIxMYtMG1Z5BVO6PAU4g/hauA7G/VPQJFilFTy+q5KPXmUDekXjN0GFNSTkmOVYEAv3pQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.194) smtp.rcpttodomain=vger.kernel.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=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qJ2rmt3BM2iUTI0tSoGaXwNcGvAdyFXkvXU+b9dyQLw=; b=lXNgTOWE/OygrCpDZLG5bogwzFahiYdnOfjW8k/tNoNYzK/0MEEbA3ZiWP5dSWRwFE6J8nG6ZEnC9WbTq48+iRnmo86J50RtKyaYqtnaDDK64bawLWfLgk8XgOtQ2OkGTVhROyEFj44J9rYjiB3TzY5FpZOj5ftdkSTsZLzs8SI= Received: from BLAPR03CA0036.namprd03.prod.outlook.com (2603:10b6:208:32d::11) by SA1PR10MB5822.namprd10.prod.outlook.com (2603:10b6:806:231::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9654.18; Mon, 2 Mar 2026 19:35:50 +0000 Received: from BL6PEPF0002256F.namprd02.prod.outlook.com (2603:10b6:208:32d:cafe::de) by BLAPR03CA0036.outlook.office365.com (2603:10b6:208:32d::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9654.21 via Frontend Transport; Mon, 2 Mar 2026 19:35:37 +0000 X-MS-Exchange-Authentication-Results: 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 BL6PEPF0002256F.mail.protection.outlook.com (10.167.249.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9654.16 via Frontend Transport; Mon, 2 Mar 2026 19:35:49 +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.20; Mon, 2 Mar 2026 13:35:45 -0600 Received: from DFLE211.ent.ti.com (10.64.6.69) 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.20; Mon, 2 Mar 2026 13:35:45 -0600 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE211.ent.ti.com (10.64.6.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Mon, 2 Mar 2026 13:35:45 -0600 Received: from fllvem-mr08.itg.ti.com ([10.249.42.149]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 622JZitU835791; Mon, 2 Mar 2026 13:35:45 -0600 From: Andrew Davis To: Chris Zankel , Max Filippov CC: , Andrew Davis Subject: [PATCH 1/3] xtensa: ISS: Use register_sys_off_handler(SYS_OFF_MODE_RESTART) Date: Mon, 2 Mar 2026 13:35:41 -0600 Message-ID: <20260302193543.275197-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0002256F:EE_|SA1PR10MB5822:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b94c199-71e8-4b10-6d4e-08de7892e8a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|34020700016|82310400026|376014|12100799066; X-Microsoft-Antispam-Message-Info: YBlAPl5iHqEHRapgdb6QhAeQJ/IGApfljZdiTVqB9XzBYUtgjC0p//rAAxIDEmltcrOCahF+E1kjw4Ub2BC5WYBKcVLvhXqh592Iq9oIBD7BHd+Y7SmNpoMT1krYssyEmVjkUTzfMuMUTLwj4xAdP6RrZ9hXXQqgpJReUmNChZN3G8Cj+gjKE8Bon0G24BfHpz+AOFNsPb9zvf1Ia38OwTpnH1bJp0zwy5/kU/pjbOwecaoT/7CbMKyiEfPAzCt3oqRYxItBuZ6+V/neIqFMljc+w3pKzfFbl+X/z/UIzHCax+ksvUYUcApK8qt5T8vOKvjlTZ4c4IwMKPpJ/Aod4MMVV+6OA9kDaPPRUF4uIJuwyxFimekGeUbGVh4Uus/IPa0TWmSEXuggsdZotBaRpLTgosJXfQaNPvVJ09nhKnRr5ixCIiOKD4toi5ZBffbL8zuJeOcPtGEVpoXnM2/e+zYhFrnIv5fmc4zp61Hp6kBbbqkSOS6kwnt8tXNPaIfFN5I7ISf/DTp9X+M69z9YcJi6yR+enelSltNDkcGqcILPSUELwGVyTpJ/2V3WoRtAesS0RC8/IpaJduySv6wpiP+o0YxQr4lSU7eO8cT/vZgBxmGyLY2wreOaQ7wioTW6DNu1ycbuJrACVQAJWiUJ0OtMADjTCeYhOryW0EBNrPYrfTLIa/i0r/fe89lGfNXYdpRNA2nL0EBbWG93XBOqXUXej7NchaV19ET1P/RcIiSz+X8rqGu8q6kcZzKfixVvS2qYP6Lcg+IFk0P74zK3M1rqLLJYhcgDs0mUpL3sOchnAFkuSZVnu++74sb+1VxXq/s+jNBSigZ2C+frIGZWEg== 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)(1800799024)(36860700013)(34020700016)(82310400026)(376014)(12100799066);DIR:OUT;SFP:1501; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MP7MrJYO3s9sWexyoF/x3dNIrmajzwHHFUsTCSFsgy0Oc/DdAmwbyyGqiJa51LA2DcrnscrUCFR4xq1desd3L0Qvp2n46YuAGKKGGJNkekflrAv5U08KYXzW2EJYbCC/hAAFE18tPQ4RWaB4LdkGtMu6YGYGQrEUIGZ6E0xnbZM3KjPy3YkNATyh090/ha5A4X3kuTOvcxxiwyl83o0LcoyFb4AvS8clII6TykHLFY5KQKhbkaJM+LyQaMPzMmW/uUs1het13bTvu0yTXgC0kP/i6Vu8U6ehuuX7BvJPqip+gUSVFF19E9PhAerxR180L3mZHQF+bis4+9CwOroSMctxkOtDqrxyvhgAGiyssw4J5UUlB/Zbgd7D6WPbF1X1OBUwJhSmpv6duDoIE4RVJR8ve1u/hgP3eYZmbvVInRMaQFy5j40OV4ku+qItOFhf X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2026 19:35:49.5780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b94c199-71e8-4b10-6d4e-08de7892e8a5 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: BL6PEPF0002256F.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB5822 Function register_restart_handler() is deprecated. Using this new API removes our need to keep and manage a struct notifier_block. Signed-off-by: Andrew Davis --- arch/xtensa/platforms/iss/setup.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/xtensa/platforms/iss/setup.c b/arch/xtensa/platforms/iss/setup.c index 0f1fe132691e2..21283acab1a89 100644 --- a/arch/xtensa/platforms/iss/setup.c +++ b/arch/xtensa/platforms/iss/setup.c @@ -32,8 +32,7 @@ static int iss_power_off(struct sys_off_data *unused) return NOTIFY_DONE; } -static int iss_restart(struct notifier_block *this, - unsigned long event, void *ptr) +static int iss_restart(struct sys_off_data *unused) { /* Flush and reset the mmu, simulate a processor reset, and * jump to the reset vector. */ @@ -42,10 +41,6 @@ static int iss_restart(struct notifier_block *this, return NOTIFY_DONE; } -static struct notifier_block iss_restart_block = { - .notifier_call = iss_restart, -}; - static int iss_panic_event(struct notifier_block *this, unsigned long event, void *ptr) { @@ -84,7 +79,9 @@ void __init platform_setup(char **p_cmdline) } atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block); - register_restart_handler(&iss_restart_block); + register_sys_off_handler(SYS_OFF_MODE_RESTART, + SYS_OFF_PRIO_PLATFORM, + iss_restart, NULL); register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_PLATFORM, iss_power_off, NULL); -- 2.39.2