From patchwork Fri Apr 26 21:38:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10919741 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 D498892A for ; Fri, 26 Apr 2019 21:38:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C13A8281F9 for ; Fri, 26 Apr 2019 21:38:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4D1B28D7E; Fri, 26 Apr 2019 21:38:29 +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=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 44092281F9 for ; Fri, 26 Apr 2019 21:38: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=QRgl9ztVAjGSpqVRLoW5ZE8duyIaA7TyJSybAgTkNJg=; b=u6ahGvfpIhzqKC m6R4o91tn6dAOBsIzZy5RtOyesBhtWZfAFQN3dyg4mSL9l1Q78pHMJ6zb+H+kdGeR2Ze4mnD+cWc/ GUKbRD2TTl1LdvJDeWGnqJn6ipbVSeh1xbfXFHdhL30MHa1h+dYXmoX3/pBjft/h84XbGgI8HynN2 z4EPHdFl1RhJsZzSqu2W2ZJnkHJdPu2besLCGhZYiJBu57QVKBd5KDx3jEgWYz8fz+0/9fyW/faoW uUsIslC/PN8HgTAWjPznP5gEQRW3iW9DFLivWUQ8BfMGMtP1ouT/1Rbdo5jiGVVofxUBAzhC5gPcx hFxgYr23Rk4h1jL5aXPA==; 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 1hK8Y4-0006jJ-O5; Fri, 26 Apr 2019 21:38:24 +0000 Received: from mail-eopbgr10085.outbound.protection.outlook.com ([40.107.1.85] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hK8Y1-0006iX-6w for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2019 21:38:22 +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=DnZSlAJQF70+Z3BIqbMRMwWqK0AoRgtCnJK8ba44IMA=; b=SpTHT7ycutLYHqRUpce9l7rHg5FUFz1waOl1FoSvGNyqrNTj1nFZO34uX3z5TZU0LnUA/80vy3Ua3XJRY19U+iIDgImPMIRSHHitPGr2x9D4lCwuS/65AKvErKpeH4a0L6DTmvkqLFjhK2mOo5oM4OU+mKBInoZsos6zAA0+074= Received: from AM0PR04MB6434.eurprd04.prod.outlook.com (20.179.252.215) by AM0PR04MB4451.eurprd04.prod.outlook.com (52.135.149.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.13; Fri, 26 Apr 2019 21:38:13 +0000 Received: from AM0PR04MB6434.eurprd04.prod.outlook.com ([fe80::f56b:2fea:d9c0:7c2b]) by AM0PR04MB6434.eurprd04.prod.outlook.com ([fe80::f56b:2fea:d9c0:7c2b%6]) with mapi id 15.20.1835.010; Fri, 26 Apr 2019 21:38:13 +0000 From: Leonard Crestez To: Ulf Hansson , Lucas Stach , Viresh Kumar Subject: [PATCH v4 0/2] Allow imx6qp PU domain off in suspend Thread-Topic: [PATCH v4 0/2] Allow imx6qp PU domain off in suspend Thread-Index: AQHU/HhaZ2nxYQKJjkCUkrpqVUx0Fw== Date: Fri, 26 Apr 2019 21:38:13 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [89.37.124.34] x-mailer: git-send-email 2.17.1 x-clientproxiedby: VI1PR06CA0164.eurprd06.prod.outlook.com (2603:10a6:803:c8::21) To AM0PR04MB6434.eurprd04.prod.outlook.com (2603:10a6:208:16c::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7f4f4c7f-0903-4ffb-d283-08d6ca8f7c5b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB4451; x-ms-traffictypediagnostic: AM0PR04MB4451: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-forefront-prvs: 001968DD50 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(366004)(39860400002)(396003)(346002)(189003)(199004)(8676002)(73956011)(52116002)(81166006)(4744005)(2906002)(66946007)(486006)(66446008)(66556008)(81156014)(44832011)(64756008)(66476007)(478600001)(36756003)(4326008)(966005)(2616005)(50226002)(86362001)(476003)(5660300002)(53936002)(66066001)(102836004)(6436002)(6486002)(6306002)(186003)(256004)(14444005)(26005)(97736004)(68736007)(305945005)(316002)(15650500001)(386003)(6506007)(7736002)(99286004)(8936002)(25786009)(54906003)(3846002)(6116002)(14454004)(6512007)(71190400001)(71200400001)(110136005)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4451; H:AM0PR04MB6434.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: S6N+jlSpdL9St95DNpzDkx1VtR7qL0g3nh4iTGUGxAzxCNdNqTw1Ss+mMp+kMZ1073+F2nwky94upKB/Wgxhrk5zAOP/JJKrc9K2LHEZGApnzc/sxje+p9iwkjhU39rK5+adIbB+FEs3Em5aC3NLJH0bera8fCUl0gOx8g/pmjehv54CyAjniiR9EoTQnnlrW78UO4vRQ0oqMQUASlECVa/drAzdAtYKib2nijRf9u6piKg/FRGe+99Te7ZQsldJGzuYyNAFEL+l00Dcs9pytoSRpRaoCe6Bni2s3lljEYpAsXbOUWia4j+bYVieJaBK+FTfneXyrCITF4Lf9Uqs8auf3yzxaV9hCxI4b2xBsPfTZXjUkDHBut5hq7GlQVORqFZYcsPjhUmvl8Cw0oXyQ2XkxNB/cv6qCXXJWU1PUSc= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f4f4c7f-0903-4ffb-d283-08d6ca8f7c5b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2019 21:38:13.7962 (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: AM0PR04MB4451 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190426_143821_252409_B3BE9AF3 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. 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 , Anson Huang , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Arulpandiyan Vadivel , "kernel@pengutronix.de" , Fabio Estevam , Robin Gong , Shawn Guo , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx 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 On imx6qp power gating on the PU domain is disabled because of errata ERR009619. However power gating during suspend/resume can still be performed. Implemented with a new core flag because otherwise distinguishing between "runtime off" and "suspend off" is very complicated. Link to v3 for previous attempt: https://lkml.org/lkml/2018/7/6/698 The imx vendor tree has been doing this for a many years but it uses direct calls from platform suspend to GPC driver. Link to v1 for similar attempt: https://lkml.org/lkml/2018/7/2/357 Leonard Crestez (2): PM / Domains: Add GENPD_FLAG_NO_RUNTIME_OFF flag soc: imx: gpc: Use GENPD_FLAG_NO_RUNTIME_OFF for ERR009619 drivers/base/power/domain.c | 8 ++++++-- drivers/soc/imx/gpc.c | 13 +++++++++++-- include/linux/pm_domain.h | 4 ++++ 3 files changed, 21 insertions(+), 4 deletions(-)