From patchwork Mon Nov 30 08:13:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1408056 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CkyfM5MBYz9sTv; Mon, 30 Nov 2020 19:13:15 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kjeJ2-00010d-Uw; Mon, 30 Nov 2020 08:13:08 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kjeJ0-00010X-UK for kernel-team@lists.ubuntu.com; Mon, 30 Nov 2020 08:13:06 +0000 Received: from 220-133-187-190.hinet-ip.hinet.net ([220.133.187.190] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kjeJ0-0005lR-2h for kernel-team@lists.ubuntu.com; Mon, 30 Nov 2020 08:13:06 +0000 From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [SRU] [F/G/Unstable/OEM-5.6] [PATCH 0/2] Refresh ACPI wakeup power to make Thunderbolt hotplug detection work Date: Mon, 30 Nov 2020 16:13:00 +0800 Message-Id: <20201130081302.372240-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1906229 [Impact] Dell Precision 5550 cannot detect Thunderbolt device hotplug. [Fix] Refresh ACPI wakeup power if it's already enabled to make GPE work. [Test] Make sure the root port of TBT hierachy is in D3cold. Plug a Thunderbolt Dock or Thunderbolt Disk, the system cannot detect anything. With the patch applied, OS can always detect hotplugged Thunderbolt devices. [Where problems could occur] Though we refresh the wakeup device power, we didn't disable/enable ACPI GPEs, so we won't miss any GPE event from this fix. Rafael J. Wysocki (2): PM: ACPI: PCI: Drop acpi_pm_set_bridge_wakeup() PM: ACPI: Refresh wakeup device power configuration every time drivers/acpi/device_pm.c | 62 +++++++++++++++++++--------------------- drivers/pci/pci-acpi.c | 4 +-- include/acpi/acpi_bus.h | 5 ---- 3 files changed, 31 insertions(+), 40 deletions(-) Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza