From patchwork Wed Jun 12 10:57:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Westerberg X-Patchwork-Id: 10989409 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 1C3991708 for ; Wed, 12 Jun 2019 10:57:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BC3526222 for ; Wed, 12 Jun 2019 10:57:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0BAC285CC; Wed, 12 Jun 2019 10:57:45 +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 A1E97285CC for ; Wed, 12 Jun 2019 10:57:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438096AbfFLK5o (ORCPT ); Wed, 12 Jun 2019 06:57:44 -0400 Received: from mga02.intel.com ([134.134.136.20]:8996 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438095AbfFLK5o (ORCPT ); Wed, 12 Jun 2019 06:57:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2019 03:57:43 -0700 X-ExtLoop1: 1 Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 12 Jun 2019 03:57:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id D5D41141; Wed, 12 Jun 2019 13:57:39 +0300 (EEST) From: Mika Westerberg To: Bjorn Helgaas , "Rafael J. Wysocki" Cc: Len Brown , Lukas Wunner , Keith Busch , Alex Williamson , Alexandru Gagniuc , Mika Westerberg , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v2 0/2] PCI: Power management improvements Date: Wed, 12 Jun 2019 13:57:37 +0300 Message-Id: <20190612105739.88578-1-mika.westerberg@linux.intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This series includes a couple of changes to the PCI power management that should make Linux follow the PCIe spec better. The issues this series aims to solve came up with Intel Ice Lake Thunderbolt enabling where the controller is first time integrated into the SoC but I think these issues are generic to any platform having similar configuration. Changes from v1 * I dropped the last patch as it requires bit more work and not dependent on the other two. I will send it out separately. * Re-arranged conditionals in wait_for_downstream_link() * Moved comments to be part of kernel-doc * Added tags from Rafael and Lukas Previous version is here: https://www.spinics.net/lists/linux-pci/msg83582.html Mika Westerberg (2): PCI: Add missing link delays required by the PCIe spec PCI: Do not poll for PME if the device is in D3cold drivers/pci/pci.c | 36 +++++++++++++----- drivers/pci/pci.h | 1 + drivers/pci/pcie/portdrv_core.c | 66 +++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 10 deletions(-)