Received: by 10.223.185.111 with SMTP id b44csp650388wrg; Fri, 9 Mar 2018 11:01:32 -0800 (PST) X-Google-Smtp-Source: AG47ELs4VtAmTMZ1Xh6KSasOd9Cx6XSq483feqkT0e2+9+uQs12WFYKzh5wLRVbjj4mHmLix5fIj X-Received: by 10.101.70.10 with SMTP id v10mr25221504pgq.327.1520622092058; Fri, 09 Mar 2018 11:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520622092; cv=none; d=google.com; s=arc-20160816; b=tk2kprHa7sdIn1PasEeYTqjqGgx3QDNiRk+NljCy+YSSdVJHbWb55rQaPUHRuS7PsQ b3HUYPQ1w4saO/Go3U8kolPqk4SzquirTWwjGA1BTeH627uyLhB94ZA5oxr13pYVJnbV r2bmjew5GUpqKi3AXPE/iHUfsJ9gH2R5LRF6xy3tH3unf9+5omcG4vR6AE7S/6ZaWR+u U+i7UH/IxJ3BcnWb8s5yVE0/XvuY8sDbCoTcqxqqPXahePP7TWuIdy+BtTsLCPYTa85N TBUvf71xSCrhqy5+YhdrMmfNaJOdFovgrP9IQmTFqLRjqYtgPjLWb81DCVx+pYJ2CD3N VNAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dmarc-filter :arc-authentication-results; bh=BaxDP+ZAyF5LCGy0laZnWrqzcQ2FSvkLtmUE8ps3L2o=; b=GUspU9K3PO/GWhkCY9w3ZP40w8bKGkndWKjX/MTkVGQqKVslJI8YjICCMfYlhDfROL WVKimbTs9U6Xs/3nUYIk5IkoXMsJvo+EwejH2Judt71orLyUl/oIenpVzU/2CIv9rLK+ hdpzmSvg89TrPQUhUaZIb+ZBG0TQmsbJB8jMWU2DmDy9S3Rlw90NUU0H1W42yysMnf6A 5951izLSHnxOA/IGb9vkcsCEfbF+lvZbYe4T0wSVepIZnXhnseCUmvaqhzd46NqXkzkg DKXUDLT7yR962l6m4d3oAkuixultJdcxJLe7wrloxetCaHlT3SvfjskRyYGSYExnbv+8 pqTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t71si1094089pgc.793.2018.03.09.11.01.17; Fri, 09 Mar 2018 11:01:32 -0800 (PST) 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; 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 S932529AbeCIS7v (ORCPT + 99 others); Fri, 9 Mar 2018 13:59:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:40572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932124AbeCIS7u (ORCPT ); Fri, 9 Mar 2018 13:59:50 -0500 Received: from localhost (unknown [104.132.51.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8729E2133D; Fri, 9 Mar 2018 18:59:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8729E2133D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Subject: [PATCH v2 00/13] PCI: Simplify PCIe port driver From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Keith Busch , Sinan Kaya , Lukas Wunner , Frederick Lawler Date: Fri, 09 Mar 2018 12:59:49 -0600 Message-ID: <152062141493.77693.9630397416694091342.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an attempt to move a few things out of the port driver. I added these new patches since v1: Merge pcieport_if.h into portdrv.h Merge pcieport_if.h and portdrv.h to reduce clutter Remove unnecessary "pcie_ports=auto" parameter This is the default setting anyway, so specifying the parameter doesn't do anything. Encapsulate pcie_ports_auto inside the port driver "pcie_ports_auto" was declared in linux/pci.h even though nobody outside the port driver used it. Rename and reverse sense of pcie_ports_auto "pcie_ports_auto" is connected with the "pcie_ports=native" parameter, so rename it to match. Other changes since v1: - Rebase onto my pci/portdrv branch. - Rename pcie_resume_early() to pcie_pme_root_status_cleanup() as suggested by Rafael. - Add Rafael's Reviewed-by tags. v1: https://lkml.kernel.org/r/152040297576.240786.1532465558381209070.stgit@bhelgaas-glaptop.roam.corp.google.com --- Bjorn Helgaas (13): PCI/portdrv: Merge pcieport_if.h into portdrv.h PCI/PM: Move pcie_clear_root_pme_status() to core PCI/PM: Clear PCIe PME Status bit in core, not PCIe port driver PCI/PM: Clear PCIe PME Status bit for Root Complex Event Collectors PCI/portdrv: Disable port driver in compat mode PCI/portdrv: Remove pcie_port_bus_type link order dependency PCI/portdrv: Remove unused PCIE_PORT_SERVICE_VC PCI/portdrv: Simplify PCIe feature permission checking PCI/portdrv: Remove unnecessary include of PCI/portdrv: Remove "pcie_hp=nomsi" kernel parameter PCI/portdrv: Remove unnecessary "pcie_ports=auto" parameter PCI/portdrv: Encapsulate pcie_ports_auto inside the port driver PCI/portdrv: Rename and reverse sense of pcie_ports_auto Documentation/admin-guide/kernel-parameters.txt | 19 ++--- drivers/acpi/pci_root.c | 13 +++ drivers/pci/hotplug/pciehp.h | 2 - drivers/pci/pci-driver.c | 59 +++++++++++++++ drivers/pci/pci.c | 9 ++ drivers/pci/pci.h | 1 drivers/pci/pcie/Makefile | 3 - drivers/pci/pcie/aer/aerdrv.h | 2 - drivers/pci/pcie/pcie-dpc.c | 2 - drivers/pci/pcie/pcieport_if.h | 71 ------------------- drivers/pci/pcie/pme.c | 1 drivers/pci/pcie/portdrv.h | 88 ++++++++++++++++------- drivers/pci/pcie/portdrv_acpi.c | 3 - drivers/pci/pcie/portdrv_bus.c | 56 --------------- drivers/pci/pcie/portdrv_core.c | 73 +++++++------------ drivers/pci/pcie/portdrv_pci.c | 54 ++------------ drivers/pci/probe.c | 10 +++ include/linux/pci.h | 5 + 18 files changed, 198 insertions(+), 273 deletions(-) delete mode 100644 drivers/pci/pcie/pcieport_if.h delete mode 100644 drivers/pci/pcie/portdrv_bus.c