From patchwork Wed Mar 6 13:35:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 10841137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DE5F1669 for ; Wed, 6 Mar 2019 13:35:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 558B92D95F for ; Wed, 6 Mar 2019 13:35:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 497E62D9DD; Wed, 6 Mar 2019 13:35:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F19042D95F for ; Wed, 6 Mar 2019 13:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jnmwtnIFNI2lShQ6w5gOQRvXR5RjnQilR9pGI9tn4xc=; b=X0EAKeSi6LFwv6 495Z8wo3j9B9mXDYYWGp4EGeTs8I+k/f/fI8+SbImJWOqs3kVAP0/znf7CDEgAHvJJ6tODj6BuXqo CIdP3idmPC4QihguvKk/BZldNXUxrwO3lEbJWlqfqZfhFeYZsdDMNZCCJY4sW6nWV1KfZrvoKQJaz Mq10+GbWysz/dv/e4Z/eljRViNCJ/5GMODAjXFZOVoCqrws5rnMJoNOUP7g0bsbzIkjvjbCW/e0OY H4kngVgWHg2LmSMGuyV62558QLGX+J72LQ4YYWVfubGmNRt+//jbXgciuOjIZCWHDVRhlNtpgiZy/ 5N5tn5s9sAlgW0WKDHFg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1Whe-0002kn-Ua; Wed, 06 Mar 2019 13:35:22 +0000 Received: from mail-eopbgr40062.outbound.protection.outlook.com ([40.107.4.62] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1Whb-0002kI-SE for linux-arm-kernel@lists.infradead.org; Wed, 06 Mar 2019 13:35:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u4AWxEfbCNuwXMQtv+qabsCDmma0RBdaJOcQinv3KfI=; b=dCMKfM8ZIr01rnPHhjBawv8EiuAsbaPxG6D3FYez4s88lEVKjaMi5FJ0ZUmF05ssi+I/5ircstJjSsj49PNhbk1gw+sni5cIjKqQQ/y8FtQFpMCt2G8cpUArLQ2A8UWTqTB/j5fY/XAZGcOVUY/m1VnwB1LRgxejqDFAoHasnEg= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.92.158) by AM0PR04MB5553.eurprd04.prod.outlook.com (20.178.114.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Wed, 6 Mar 2019 13:35:16 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::50ed:d1b5:c043:3b79]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::50ed:d1b5:c043:3b79%2]) with mapi id 15.20.1686.016; Wed, 6 Mar 2019 13:35:16 +0000 From: Aisheng Dong To: "linux-pm@vger.kernel.org" Subject: [PATCH 0/2] PM / Domains: Support enter deepest state during suspend and probe failure Thread-Topic: [PATCH 0/2] PM / Domains: Support enter deepest state during suspend and probe failure Thread-Index: AQHU1CFvfsZ7WdIE3USv/6OsS06YHw== Date: Wed, 6 Mar 2019 13:35:16 +0000 Message-ID: <1551878926-8455-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR04CA0052.apcprd04.prod.outlook.com (2603:1096:202:14::20) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:5b::30) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f429ed68-b1b1-4ce7-92c2-08d6a2389196 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB5553; x-ms-traffictypediagnostic: AM0PR04MB5553: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR04MB5553; 23:tqBMuFwPnyJp75sllqgUcCx8Cd4+OTekNq93i2q?= =?iso-8859-1?q?BVNvK08ChdyzbbS?= =?iso-8859-1?q?JXvMgSxGvgoKAufNv4q2D003rSfmLAGWeOxHKlpAJCMwlsDEjwQstBwbeL5/?= =?iso-8859-1?q?hx9fCNdbQ2beciAvf3pwg4dLWPzgLFpSSyie/j7U374u4fcJNORQI9s5Bl9V?= =?iso-8859-1?q?H9stWC9brzcRK3L1Wubm5IvysHyfzhobSiEMBqTiUOXo9RT3krjlst/1fH+S?= =?iso-8859-1?q?cVfzxe+2v3y0qQp0h2omb+xFVGpxko/K5eBEHPfk0P4/hszxpOLqQoAhsKCG?= =?iso-8859-1?q?wOAIanH3WTc6pPycos2ki8aa71P49mDKFQDyR0Zm2AyYDNpbn+/NyUQDSX7s?= =?iso-8859-1?q?IWlQCMcmEOgRgir9gB69ph+tgUdio779kFg0mTeY7a+qc6pkwMkDRx6wfXy1?= =?iso-8859-1?q?J5srxjZzR+qsN23A78yt04Ar25pm9e4mJrBojTZ4P56Uyz5e/IdrEAR6U8Tb?= =?iso-8859-1?q?I2Cv7DArucpQkD7TQS3rVkym/eetcC1V/HMN0lYVH5x1tQ4AGHDyrnwX/eVJ?= =?iso-8859-1?q?idEofp2Q+7k0k2NpPVztnEhjDg9hop/j0fU9dR/2mxmn7s4KcJZPKocGO79U?= =?iso-8859-1?q?yamwOVWHC0UPTdFxmjSAGrXA62s6gKXw5+edxsJWsM7Zajla68+upCB2jtdV?= =?iso-8859-1?q?hoiLhcsBCOjCzN0wzSEcKqM2TNciQ+rtf0Zf8YySZ4TpxzzaDclImQatJ5oM?= =?iso-8859-1?q?z7F1CyNh0sF/7SCtD7r+T6Dag3LnBk34dgBIksFQXgsreP2x48ICWvscpaO4?= =?iso-8859-1?q?m+AVgejUeWvLbOeA2zqCpSAdfEFsa2l/3bs1wKLgK4e6zDpSrn900O7Mk2GT?= =?iso-8859-1?q?+kFZSovcNtZtVYKkSjreadG2knXxoKEUCv3B5EWb4IndY55d6TN2F1C5D4tD?= =?iso-8859-1?q?l2RQ+i9qmSqXxiTo/skBpIyqGperx+DP9m9uiBXkhv0xEyhJhbc4beY33tZB?= =?iso-8859-1?q?ibbWv8GgGlY5l0SZ3FEi4oE2XYHsjM/13J/qBcSNLF1PXmyhPp1zh1D1Xd6Q?= =?iso-8859-1?q?dGTjnBZQC9IzEdxoI80/CReZ2feZO3M9UyRqLKPQsbhZ7/O6py0b4BNYGUjM?= =?iso-8859-1?q?s8sDXV4NNGczU2KKSy5bWJ/4lhDkCbOAkuoX1pNtyUG/dMTD2ab2T5V9kor8?= =?iso-8859-1?q?6qBeWIBP6OCWzCcKXLqmmCVVA8zC7fZFfezIvyBuWl0gWh5AEvo4Ya0zKEs9?= =?iso-8859-1?q?wsYTpk9SfnGveR1/+DLY2erHPoA8K1cI9uOdn9QF4PcbNR15qlraIeJp8IkL?= =?iso-8859-1?q?QgU8dMd+O9tE9u6LxaSs3bG8nl?= x-microsoft-antispam-prvs: x-forefront-prvs: 0968D37274 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(376002)(39860400002)(346002)(396003)(199004)(189003)(36756003)(386003)(6506007)(102836004)(26005)(486006)(44832011)(53936002)(99286004)(54906003)(71200400001)(71190400001)(476003)(6116002)(3846002)(6512007)(68736007)(2501003)(52116002)(4326008)(6486002)(97736004)(5640700003)(25786009)(50226002)(256004)(6436002)(2616005)(106356001)(8676002)(7736002)(6916009)(478600001)(2906002)(316002)(81156014)(81166006)(15650500001)(86362001)(186003)(14444005)(5660300002)(66066001)(2351001)(8936002)(105586002)(305945005)(14454004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5553; H:AM0PR04MB4211.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: uVaFa/LDcBPlmfGbcEzusOiUuo14UBP04GunbBkYX7qcqouHjA0c8k3sM9gIpShSKHwWvYkp7Oxkx4S52lTj/ifxD5XLAxEVeDiczkgPCovGkmv9fcQvPVkAuA52QQj7II/cvLvs8NgfSFWy/oErB9a7AKaGOnmZqhKk2LcGVOrmq4pnrGQv/4Nq1UCINOIdX5HGZ1IUXTYkqwuNmb2IxDMB2VcrD5rZ/RfZ+sklr9UAaXxZGL9Q/PAITH3vsylrVk7LsZIR+5n1gmG0U4q4FeHSrRgNjmQl6oqjikTfYqJyf7yxWOmdbZXDSdJeTY6q7m+DMkg6qTaza41U8Ll6zQIlFZa2SmxhGOlNBZ4VNFTlOx37sA+O7aOwfGKXi+akbbWxow7F8pZzU4q8TLXRjhJ0TSTcytmVqo8z42tZ6FY= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f429ed68-b1b1-4ce7-92c2-08d6a2389196 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2019 13:35:16.8549 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5553 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_053519_924610_F6BBEAFF X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aisheng Dong , "ulf.hansson@linaro.org" , "dongas86@gmail.com" , "khilman@kernel.org" , "rjw@rjwysocki.net" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the generic power domain will power off the domain if all devices in it have been stopped during system suspend. It is done by checking if the domain is active in genpd_sync_power_off, then disable it. However, for power domains supporting multiple low power states, it may have already entered an intermediate low power state by runtime PM before system suspend and the status is already GPD_STATE_POWER_OFF which results in then the power domain stay at an intermediate low power state during system suspend. Then genpd_sync_power_off will keep it at the low power state instead of completely gate off it. And for the probe failture case, if there's no devices using it, we can fully gate off the domain instead of enter an intermediate state. Dong Aisheng (2): PM / Domains: Support enter deepest state for multiple states domains PM / Domains: Choose the deepest state to enter if no devices using it drivers/base/power/domain.c | 22 +++++++++++++++++++++- include/linux/pm_domain.h | 1 + 2 files changed, 22 insertions(+), 1 deletion(-)