From patchwork Tue Oct 8 09:34:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Richard X-Patchwork-Id: 13826111 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9BEBBCEF148 for ; Tue, 8 Oct 2024 09:39:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=k6pUgjetX71AkeSNcjihdWO8cWqAN+2fklEFHWBBZho=; b=XPTj94px9qDrUHh5VZIhxQ+oQT qZ0SvIgLIhJ3UlbneQJDsUM6ntHh3aLg3T5lfELi/6wXw5gYmhrPjR9pcMoukiXd74Z8tYxePt/lp e0EQ3zyy/AnayA4Wo5LiJVK1vkKvutNlkrX3VIx8Ry1pxVvpzej9Tf2Vd4SmQ7ZOrBmSCriGwdFdR TdaZU+FVDGuvKr0y940IdBSMvR01X91rrDyaCfmlvnEh+wxPSHB0OpT3UIWV0G5bOeSPSppqK0+Y1 0FxKGA3bWtXEGZ2RkVWPXjVhVyR0A6vxu50vIdKrVOn7LbwJHwjx5AELNVEu83iCU/JQB0lYa+r4H IKAS+yYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy6gO-00000005Kug-3x0s; Tue, 08 Oct 2024 09:39:09 +0000 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy6cO-00000005KOm-1ZsW for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 09:35:01 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 76E9AFF805; Tue, 8 Oct 2024 09:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728380097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k6pUgjetX71AkeSNcjihdWO8cWqAN+2fklEFHWBBZho=; b=VvJwCWOS3HqYCL/UdfU0NyI05aguQMiqPO9D7kyZlyr2h6hDa40yHt1I0XYdtySg59s8J5 uhqzv9KfRlXb9EEA39Qd2tnXJTxHtKDssyBYSqKGUp6cv5TR697+BQImUoCm88t9aYWN8h 9rOtFT2UyucyqajoGnh763HOIv1IKPo0QIQUvCjlw+MKMpKMBI4UVgEEJrYT/U9Q4pixVy U7X9wv50VXpzez8EhArLYf0go/uu5KWZTF4WglVrzRVWHyYhr8NcV6zBzBaJcCiGtnfsUv 4+ZUzDKUqZz2G5KEkidAPGrwb5GlGzihm9PmTjbBY+cuguTrDvi12KB2cpbOtA== From: Thomas Richard Date: Tue, 08 Oct 2024 11:34:16 +0200 Subject: [PATCH 1/2] pmdomain: ti-sci: set the GENPD_FLAG_ACTIVE_WAKEUP flag for all PM domains MIME-Version: 1.0 Message-Id: <20241008-8250-omap-no-console-suspend-v1-1-e7f0365c02f0@bootlin.com> References: <20241008-8250-omap-no-console-suspend-v1-0-e7f0365c02f0@bootlin.com> In-Reply-To: <20241008-8250-omap-no-console-suspend-v1-0-e7f0365c02f0@bootlin.com> To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Ulf Hansson , Greg Kroah-Hartman , Jiri Slaby Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, u-kumar1@ti.com, tony@atomide.com, khilman@kernel.org, gregory.clement@bootlin.com, thomas.petazzoni@bootlin.com, theo.lebrun@bootlin.com, richard.genoud@bootlin.com, Thomas Richard X-Mailer: b4 0.14.1 X-GND-Sasl: thomas.richard@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_023500_581970_C4107D9E X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With this flag, if a device is marked on the wakeup path, the corresponding PM domain is kept powered on. Suggested-by: Théo Lebrun Signed-off-by: Thomas Richard --- drivers/pmdomain/ti/ti_sci_pm_domains.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pmdomain/ti/ti_sci_pm_domains.c b/drivers/pmdomain/ti/ti_sci_pm_domains.c index 1510d5ddae3d..38448b4a035a 100644 --- a/drivers/pmdomain/ti/ti_sci_pm_domains.c +++ b/drivers/pmdomain/ti/ti_sci_pm_domains.c @@ -186,6 +186,7 @@ static int ti_sci_pm_domain_probe(struct platform_device *pdev) pd->pd.power_off = ti_sci_pd_power_off; pd->pd.power_on = ti_sci_pd_power_on; + pd->pd.flags |= GENPD_FLAG_ACTIVE_WAKEUP; pd->idx = args.args[0]; pd->parent = pd_provider;