Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp471761yba; Thu, 18 Apr 2019 04:35:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz28betJiEBFYASY15ei4Upv3yU2da+tQdo/T2uXIcwxzhy60U14OwuN6nsU0VzBcWSe8OH X-Received: by 2002:aa7:8145:: with SMTP id d5mr94935370pfn.215.1555587341851; Thu, 18 Apr 2019 04:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555587341; cv=none; d=google.com; s=arc-20160816; b=0KYFCW9SJ1lHWJXRvCHuosr0nJv3MipMfoYJ3E6BRrcv/HGAV7Mk/3BBEyIqbrIdUi jsNyOELRera61VN2l3cAImi+dNUTn/9dwfBRT2K+isiGJmRNgbDgZAt4vR+D/CM2WdVk lJ1cWZal0Z3aBGjDFCL4pINoXNNAqGbWCzSZi70+PTnZRYf5jiJIQzwDX6v2YuAYcRCg hH9qhNrh5PQdVrwPXQkSphfSL936e0Puk/+/YqWK876zgdDPpmUD6vG0/MkasG2Yh+nK NkaT2qAQ6nGYPnX3Ze9cW1tfWEWsOs+QEYD6+25s/3AjgoQPLYPe1IJbl9CSUqOgftEe VUew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=0XtjLL/FoCoMOf2i4HsN6YrT+U+pvoK/yS2Fd+WlcmQ=; b=vERW5p5uofmUhANMiEU8iyUlsmaZH188T9qQQXXXHOTeOVt16pUUziKas3uwPJbjwn GLOH0zV/p+ggifaXxnrPH5ntDIBmUjNd6I09QZ/7XFjokrsZo81FbjHaB0kh8lpzCVfj 4XW0Q+FsQ06mHlOfNwKe/u2CbE4MpEC1mkBB3pIIpsjV4i4Rw3aTzknBRCOj6Vu5Ehfm JF1eECYFL9KVdc5wQDQV918GlrsE+wFbwTtHQqUi5vt955HQL10cSgduZQDKvzQx/g5M GrmZLleSiBj/rs4xhiXHw8nhztvxP0GfYUCOjuwKzWjHn2mHvPLrjx6091ws9LhIo0/c bDeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=aFRyuuJ4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si1680199pgc.182.2019.04.18.04.35.25; Thu, 18 Apr 2019 04:35:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=aFRyuuJ4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388703AbfDRLe0 (ORCPT + 99 others); Thu, 18 Apr 2019 07:34:26 -0400 Received: from mail-eopbgr30051.outbound.protection.outlook.com ([40.107.3.51]:64950 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387519AbfDRLeZ (ORCPT ); Thu, 18 Apr 2019 07:34:25 -0400 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=0XtjLL/FoCoMOf2i4HsN6YrT+U+pvoK/yS2Fd+WlcmQ=; b=aFRyuuJ4Ib5YWjjlVffjnYdK4IL0n8lgCtbUbmFGS2LAx3THgmpm89l82KHMEUGnDRr8x678Rsr2mkVivnNH+FWw+wlNidkm6kK4aMogYl2reLeWCP1l9Uzq1DbNf6yYSM3iU5KGz1Ft6pqdFQAYVivP7N78qn9iIwEDtDKhyEI= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6430.eurprd04.prod.outlook.com (20.179.232.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.14; Thu, 18 Apr 2019 11:34:16 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311%7]) with mapi id 15.20.1813.013; Thu, 18 Apr 2019 11:34:16 +0000 From: "S.j. Wang" To: "timur@kernel.org" , "nicoleotsuka@gmail.com" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "broonie@kernel.org" , "alsa-devel@alsa-project.org" CC: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH V2] ASoC: fsl_esai: Add pm runtime function Thread-Topic: [PATCH V2] ASoC: fsl_esai: Add pm runtime function Thread-Index: AQHU9dqnfRTIn2pEfkucFb2lHwaFGA== Date: Thu, 18 Apr 2019 11:34:15 +0000 Message-ID: <8c78be27ef3795e9b870de7789c25454bd3774b3.1555586023.git.shengjiu.wang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 x-clientproxiedby: HK0P153CA0040.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::28) To VE1PR04MB6479.eurprd04.prod.outlook.com (2603:10a6:803:11e::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a393bc8a-f7c2-4934-cd75-08d6c3f1c984 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:VE1PR04MB6430; x-ms-traffictypediagnostic: VE1PR04MB6430: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(396003)(376002)(136003)(39860400002)(366004)(199004)(189003)(71200400001)(71190400001)(256004)(386003)(68736007)(2616005)(14444005)(7736002)(305945005)(99286004)(486006)(476003)(110136005)(25786009)(54906003)(316002)(2201001)(66066001)(86362001)(5660300002)(8676002)(81166006)(3846002)(6436002)(2906002)(2501003)(8936002)(4326008)(97736004)(6486002)(118296001)(478600001)(81156014)(26005)(53936002)(6512007)(14454004)(102836004)(36756003)(6506007)(186003)(50226002)(6116002)(52116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6430;H:VE1PR04MB6479.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: qPkmijrNP1+9fs88WywdJcLN0cINd0R8wEz+FxMIENztgRgRwuO6YOjDOSCBA7X5hTf2Az14sZn6sjooHY3niwwUeQiTl3UrNAl9iFwl17dCXo8fbnG07qAEuhhc3vvEsIJ76SrokhkjqdZ/13OZvnVLJE+mnnnsRESYg8k7NGI5Ndq3ds8qidipaQMhEM9MK1Zax6vaT+7R6Q8m/447s2DRUP0w+x9+eXiluClHKWHnsJyQvZFXIZ7XHlQcUiufXysIsbjUC3zTOt94TKTrOtHR8k1h2I9JOmcm8aE5DYxVMvrjEKKnGVHLqIjE6+cI2Ne8Ld1VjKk6+rMCLq449Wr3VdGNRrwAtYbwd6qM9jzvklArpN0SDOcqBlOF3DtWw/QRmObxteTrc8RD/KI65qR3t9IyFVSYlbWlWAeLd2w= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a393bc8a-f7c2-4934-cd75-08d6c3f1c984 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 11:34:15.9455 (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: VE1PR04MB6430 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIHBtIHJ1bnRpbWUgc3VwcG9ydCBhbmQgbW92ZSBjbG9jayBoYW5kbGluZyB0aGVyZS4NCmZz bF9lc2FpX3N1c3BlbmQgaXMgcmVwbGFjZWQgYnkgcG1fcnVudGltZV9mb3JjZV9zdXNwZW5kLg0K ZnNsX2VzYWlfcmVzdW1lIGlzIHJlcGxhY2VkIGJ5IHBtX3J1bnRpbWVfZm9yY2VfcmVzdW1lLg0K DQpTaWduZWQtb2ZmLWJ5OiBTaGVuZ2ppdSBXYW5nIDxzaGVuZ2ppdS53YW5nQG54cC5jb20+DQot LS0NCkNoYW5nZXMgaW4gdjINCi1yZWZpbmUgdGhlIGNvbW1pdCBjb21tZW50cy4NCi1tb3ZlIHJl Z2NhY2hlX21hcmtfZGlydHkgdG8gcnVudGltZSBzdXNwZW5kLg0KDQogc291bmQvc29jL2ZzbC9m c2xfZXNhaS5jIHwgMTQxICsrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLS0tLS0tLS0tLS0t LS0tLS0tDQogMSBmaWxlIGNoYW5nZWQsIDc3IGluc2VydGlvbnMoKyksIDY0IGRlbGV0a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