Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5267306rwb; Wed, 9 Aug 2023 01:02:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4k44bLDXQeaS+quZBh9VKWGHwCA0+RikOoKUR5awJe9S1tn3aNdyA4W/0mQh/mg9X7Vj9 X-Received: by 2002:a17:907:7757:b0:99c:d05d:4aa with SMTP id kx23-20020a170907775700b0099cd05d04aamr1470637ejc.16.1691568121900; Wed, 09 Aug 2023 01:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691568121; cv=none; d=google.com; s=arc-20160816; b=fIpSy/hck6O9jq8h4SkeOJbrlnMSpJr5vxGNcyFyutitR1zJ7qfcD+2i4FvHAW51z+ qvpBuI0Xb2xCplRTB9r9ScnpLYwHQdF8E+JutYSkNrZPZxj0StGsIAkPL48S/A+H/5Xu 2teaSs2ellTm8hYOrnIJff/gJVQdcVS8m8MsS7/CmG51BxkvzrtWf5eukqjfFSFYn5xG Z9aO7wb7StXd9Vx3BdhWGlpO7/r4DzAAhVN+zIZURDPYgc41vVXGIyfqPdKsgwqLPyZA /mJkCZMTq0CcF2vEr2xiXMqfCKTszBFs8WAGSakhMNMSwiKGyp2/f1hyiq1NrJhNRoKo 4OxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=U7Gk1hL7ageODZSq+anzOZN+gvLertH9FMTTgSQKkcA=; fh=ZZDkKGO5hUdubi6H5Jhix+GQP9F4U0OYUDmbDeWyVqE=; b=iLSa1Ap5dOFHrmV06AWMzJy7y6T55/gcAVbCB4g2nYUj44OpexEvHwEz0QjEQQf4Wq 4GShzIkpZvukjxQFZ6vEwRloS0OA3sjKm96q8/yh2TXYxEGRzpMF0ByRnsnEGSol+FY4 /RmKlqGwCTHlCLcnn5jn20AhiC3asEk+rsnBNShKVH8LLaWwJax60jlX61fkZAVpKACs uoVHvB8FYODtLuih+XVtWgc38SkJrYHLZDsWzo8rVUqrS1/KKRr5BNvO6iFUUHm70mND I+0fXlTpScGeaKuZbKdPkyTUJCZ/G1KWYEAjeE6sJw5hiJZYoGAQrlZNfI9NIYE1YAgF TlXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a1709063b0700b0099bc8c2fbcfsi8352078ejf.718.2023.08.09.01.01.37; Wed, 09 Aug 2023 01:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjHIHXd (ORCPT + 99 others); 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> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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