Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1030665yba; Thu, 16 May 2019 13:03:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD8pY5GjGYY9uHr2n/LZsoNzmPRF7JZIlG6yY8EZtpe5s8azBNEplGzz38MTWfbg0/TQF7 X-Received: by 2002:a65:4105:: with SMTP id w5mr51939113pgp.260.1558036996618; Thu, 16 May 2019 13:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558036996; cv=none; d=google.com; s=arc-20160816; b=HYjlz6muFurSE/g631cCzmA0tsooLaKifvw2I/ZZYCVztiQqMD2dPRUh2boSJDz2zu +ykpRUhDM0TRkk7wIrziunsV4iPh5n/nt2afzHbjbBfLucmPVgbawhxAHlH3L2/4kXRm vyyFfZHCjmK/912sg6nPDuaG3c0cBt0FR1XmXkHFzQ5DVmEvypwsECDLHyMGhSevwwOV fomteDZveHEC29Z1/mNd76/8vuIbcLR/+xdQkjmULxbjeux9i809HDtp5Jq81OYF6KRv EVZjjsPHoa3HL/m2qhiTA6hD1kbVaumvfUMfhfuJVCRLokkDVmFW2lhs6ur/GPVRVJwM w5Ew== 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-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=uwbbRoSh0N6ERr2bops38ZpOb7iYYwZhzpXKOLnrQ1A=; b=p7DbjLCzj+1MOnnLAQ5Lr+oikwL7hb+JGs5XfdChXXsricZf+aa+0j6vXYf9dJNx5D fk8TXBziS32LlhhQaOJv/M+3Yc6weN0y39UDFu76PA1qsQBtTECZDCDhbHertMdvdb7R Wahkis5A0xTr5iD0Q7g+CQYdEW8nIZ/Cg1KckuBdb4Z1jhQPi3QZvD0EpIVjQ0VrqHsY HkgrGJAMFcLE96NL0mJXlsu6YKOoRHbp2o2YSaBY8MA+4Lgq/3Vq5XnHPXYGGzbXCDXm 2d7lCY50Y6pdtosg/VtrwqLDfF+6SckXGhc0ulowOvFXo37h6VyF/NAfJPzLaToMReUp Tpyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@uwy.onmicrosoft.com header.s=selector1-uwy-onmicrosoft-com header.b=nLi3s2C+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si5712085plp.306.2019.05.16.13.02.59; Thu, 16 May 2019 13:03:16 -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=@uwy.onmicrosoft.com header.s=selector1-uwy-onmicrosoft-com header.b=nLi3s2C+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727248AbfEPQfo (ORCPT + 99 others); Thu, 16 May 2019 12:35:44 -0400 Received: from mail-eopbgr760121.outbound.protection.outlook.com ([40.107.76.121]:19044 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726342AbfEPQfo (ORCPT ); Thu, 16 May 2019 12:35:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwy.onmicrosoft.com; s=selector1-uwy-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uwbbRoSh0N6ERr2bops38ZpOb7iYYwZhzpXKOLnrQ1A=; b=nLi3s2C+g3G42QJwwNg9M4sVR8OjB57PCrb4c5hCvGs8MtPW85UviDRf+X6MPlGsIizZrQCj0LM/7bl/yfLsn7QeIN6KkR9Di75SZDkFdSAeNAjs99MBluEBEWG0dvVuvbnn6JT0Rz0MnMgBGLzsvu1u8z7jzM9jbOs3bEVTQ6E= Received: from DM6PR05MB5259.namprd05.prod.outlook.com (20.177.223.223) by DM6PR05MB5500.namprd05.prod.outlook.com (20.176.122.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.13; Thu, 16 May 2019 16:35:40 +0000 Received: from DM6PR05MB5259.namprd05.prod.outlook.com ([fe80::ec12:ed89:3597:ef2f]) by DM6PR05MB5259.namprd05.prod.outlook.com ([fe80::ec12:ed89:3597:ef2f%5]) with mapi id 15.20.1922.002; Thu, 16 May 2019 16:35:40 +0000 From: "Robert R. Howell" To: "Rafael J. Wysocki" CC: "Rafael J. Wysocki" , Hans de Goede , Kai-Heng Feng , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ACPI / LPSS: Don't skip late system PM ops for hibernate on BYT/CHT Thread-Topic: [PATCH] ACPI / LPSS: Don't skip late system PM ops for hibernate on BYT/CHT Thread-Index: AQHU6eBClqunF/byekqefGejWfaC+aYqIfOAgAcThICAAL18AIAFeNOAgAp38wCAAktGAIAFVH4AgADH4wCAAL1BAIACLkCAgCCltACAAFskAA== Date: Thu, 16 May 2019 16:35:40 +0000 Message-ID: <7eef3905-9c74-7ed8-09e4-a255c8f7d959@uwyo.edu> References: <20190403054352.30120-1-kai.heng.feng@canonical.com> <1588383.bXYZMuyLB9@kreacher> In-Reply-To: <1588383.bXYZMuyLB9@kreacher> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 x-originating-ip: [12.203.174.10] x-clientproxiedby: BYAPR07CA0030.namprd07.prod.outlook.com (2603:10b6:a02:bc::43) To DM6PR05MB5259.namprd05.prod.outlook.com (2603:10b6:5:7f::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=RHowell@uwyo.edu; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 41281787-43b1-4503-786c-08d6da1c886f x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:DM6PR05MB5500; x-ms-traffictypediagnostic: DM6PR05MB5500: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0039C6E5C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39860400002)(376002)(136003)(346002)(396003)(51914003)(189003)(199004)(316002)(6916009)(476003)(11346002)(2616005)(75432002)(6246003)(786003)(73956011)(81166006)(305945005)(68736007)(8676002)(81156014)(229853002)(66066001)(71200400001)(65806001)(53936002)(6512007)(80792005)(66946007)(66476007)(66446008)(66556008)(186003)(5660300002)(25786009)(31696002)(446003)(7736002)(26005)(64756008)(36756003)(71190400001)(65956001)(8936002)(86362001)(31686004)(486006)(6116002)(3846002)(6486002)(14444005)(99286004)(52116002)(72206003)(256004)(5024004)(4326008)(478600001)(54906003)(58126008)(65826007)(88552002)(14454004)(102836004)(53546011)(6436002)(2906002)(6506007)(64126003)(76176011)(386003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR05MB5500;H:DM6PR05MB5259.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: uwyo.edu does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gv/S4lztdzBtzLfhY7INCCa2jvMgyI/4UMAqFUB2Anqu2utQLgL9z73JzV+49oAXAqNAxKrw4D5QVoChhDo/y5tL4hCELMb4Ela6vKyhwwrHNcr+8jNkqmceQ/ybW3UHUwgAjinW2j3kNyRbSm5xDNKfV7vbn8vIgrqg604UYB4fth/zwBPheXvVt9imK/1TJ4QeA7jxUuDCHG/9bF++4AXs6yfygrqp9teT2NpbxPIs04u5E5DLvSrC9UaxJEQXUkkm9XvoVkk8loGnR6WJoDjawL3BaZLqk3LSGF19hMnaOlj+lXQcL0W3aA8801t9M/2Pr6isx1OUmZUieg/7adInPIU2/EeM3vp8Ph9tjlu5yLRK/oEEdSZpQvSB5TP5bHkFbwRwauYInrpyHrv3MaDiijbSyR5LI1B9wRI5az4= Content-Type: text/plain; charset="utf-8" Content-ID: <941E2A32C00C48459CC5F7985805571C@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: uwyo.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 41281787-43b1-4503-786c-08d6da1c886f X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2019 16:35:40.5168 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f9cdd7ad-825d-4601-8e9c-a325e02d52da X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB5500 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUmFmYWVsDQoNCg0KT24gNS8xNi8xOSA1OjExIEFNLCBSYWZhZWwgSi4gV3lzb2NraSB3cm90 ZToNCg0KPiBPbiBUaHVyc2RheSwgQXByaWwgMjUsIDIwMTkgNjozODozNCBQTSBDRVNUIFJvYmVy dCBSLiBIb3dlbGwgd3JvdGU6DQo+PiBPbiA0LzI0LzE5IDE6MjAgQU0sIFJhZmFlbCBKLiBXeXNv Y2tpIHdyb3RlOg0KPj4NCj4+PiBPbiBUdWUsIEFwciAyMywgMjAxOSBhdCAxMDowMyBQTSBSb2Jl cnQg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