From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9679EEB64DD for ; Wed, 9 Aug 2023 07:23:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231521AbjHIHXd (ORCPT ); Wed, 9 Aug 2023 03:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbjHIHXc (ORCPT ); Wed, 9 Aug 2023 03:23:32 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6630D172A; Wed, 9 Aug 2023 00:23:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D3A978105; Wed, 9 Aug 2023 07:23:31 +0000 (UTC) Date: Wed, 9 Aug 2023 10:23:30 +0300 From: Tony Lindgren To: Kevin Hilman Cc: Dhruva Gole , Andrew Davis , Nishanth Menon , Tero Kristo , Santosh Shilimkar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Viresh Kumar , Praneeth Bajjuri , Dave Gerlach , Vibhore Vardhan , Georgi Vlaev Subject: Re: [PATCH V6 4/4] firmware: ti_sci: Introduce system suspend resume support Message-ID: <20230809072330.GB11676@atomide.com> References: <20230803064247.503036-1-d-gole@ti.com> <20230803064247.503036-5-d-gole@ti.com> <3882f0ac-b74c-6eb2-197c-34ca233cd7a3@ti.com> <20230803155541.nwsfwobfkbpefoyw@dhruva> <8c330bd9-5f4e-8cd0-ed02-c3a696d7473a@ti.com> <20230803160815.yfpkdfssv75d4inf@dhruva> <7ho7jifrda.fsf@baylibre.com> <20230808115403.dkz6ev5vc6bhcmzh@dhruva> <7httt9dq2x.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7httt9dq2x.fsf@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Kevin Hilman [230809 00:20]: > To me, it sounds like you might want to use ->resume_early() or maybe > ->resume_noirq() in the pinctrl driver for this so that IO isolation can > be disabled sooner? For calls that need to happen just before the SoC is disabled or first thing on resume path, cpu_cluster_pm_enter() and cpu_cluster_pm_exit() notifiers work nice and allow distributing the code across the related SoC specific code and device drivers. See for example the usage in drivers/irqchip/irq-gic.c for CPU_CLUSTER_PM_ENTER. Regards, Tony