From patchwork Mon Jul 1 10:42:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 11025497 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 F31E8138B for ; Mon, 1 Jul 2019 10:43:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7F4428641 for ; Mon, 1 Jul 2019 10:43:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC1FC28647; Mon, 1 Jul 2019 10:43:44 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92BC628641 for ; Mon, 1 Jul 2019 10:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727661AbfGAKnj (ORCPT ); Mon, 1 Jul 2019 06:43:39 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:56119 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbfGAKnj (ORCPT ); Mon, 1 Jul 2019 06:43:39 -0400 Received: from 79.184.254.216.ipv4.supernova.orange.pl (79.184.254.216) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.267) id c2c9cab37650c19c; Mon, 1 Jul 2019 12:43:36 +0200 From: "Rafael J. Wysocki" To: Linux PM Cc: Linux PCI , Linux ACPI , LKML , Bjorn Helgaas , Andy Shevchenko , Mika Westerberg , Hans De Goede , "Robert R. Howell" Subject: [PATCH v2 0/5] PM: PCI/ACPI: Hibernation handling fixes Date: Mon, 01 Jul 2019 12:42:14 +0200 Message-ID: <4976412.ihyb9sT5jY@kreacher> MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi All, This series of patches addresses a few issues related to the handling of hibernation in the PCI bus type and the ACPI PM domain and ACPI LPSS driver. The v2 addresses Hans' concerns regarding the LPSS changes. First of all, all of the runtime-suspended PCI devices and devices in the ACPI PM and LPSS PM domains will be resumed during hibernation (first patch). This appears to be the only way to avoid weird corner cases and the benefit from avoiding to resume those devices during hibernation is questionable. That change allows the the hibernation callbacks in all of the involved subsystems to be simplified (patches 2 and 3). Moreover, reusing bus-level suspend callbacks for the "poweroff" transition during hibernation (which is the case for the ACPI PM domain and LPSS) is incorrect, so patch 4 fixes that. Finally, there are some leftover items in linux/acpi.h that can be dropped (patch 5). Thanks, Rafael Reviewed-by: Hans de Goede Reviewed-by: Mika Westerberg