From patchwork Sun Aug 19 14:29:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Wunner X-Patchwork-Id: 10569731 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 B82FF15E2 for ; Sun, 19 Aug 2018 14:35:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A92AD2959A for ; Sun, 19 Aug 2018 14:35:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C17F29629; Sun, 19 Aug 2018 14:35:24 +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 42CCF295A0 for ; Sun, 19 Aug 2018 14:35:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbeHSRrE (ORCPT ); Sun, 19 Aug 2018 13:47:04 -0400 Received: from mailout3.hostsharing.net ([176.9.242.54]:34509 "EHLO mailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbeHSRrD (ORCPT ); Sun, 19 Aug 2018 13:47:03 -0400 X-Greylist: delayed 377 seconds by postgrey-1.27 at vger.kernel.org; Sun, 19 Aug 2018 13:47:01 EDT Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by mailout3.hostsharing.net (Postfix) with ESMTPS id E4615101E6B11; Sun, 19 Aug 2018 16:29:02 +0200 (CEST) Received: from localhost (unknown [89.246.108.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h08.hostsharing.net (Postfix) with ESMTPSA id 688F1609B163; Sun, 19 Aug 2018 16:29:02 +0200 (CEST) X-Mailbox-Line: From 3805ffe4d30d931084394b5eb3f1967be967d332 Mon Sep 17 00:00:00 2001 Message-Id: From: Lukas Wunner Date: Sun, 19 Aug 2018 16:29:00 +0200 Subject: [PATCH 0/9] PCI hotplug diet To: Bjorn Helgaas , linux-pci@vger.kernel.org, Sinan Kaya , Mika Westerberg Cc: Keith Busch , Oza Pawandeep , Benjamin Herrenschmidt , "Rafael J. Wysocki" , Len Brown , Scott Murray , Paul Mackerras , Michael Ellerman , Gavin Shan , Sebastian Ott , Gerald Schaefer , Corentin Chary , Darren Hart , Andy Shevchenko , Greg Kroah-Hartman , Scott Murray , Dan Zink , Jyoti Shah , Irene Zubarev , Prarit Bhargava , linux-acpi@vger.kernel.org, linux-s390@vger.kernel.org, platform-driver-x86@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, linuxppc-dev@lists.ozlabs.org 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 Here's PCI hotplug material I've prepared for v4.20: Patches [1/9] to [8/9] reduce the code by 488 lines. There should be no loss of functionality and no new features, just less and simpler code. Patch [9/9] collects TODOs for hotplug drivers to spur contributions. I've assumed that my patch "PCI: pciehp: Differentiate between surprise and safe removal" (submitted July 31) gets merged before this series: https://patchwork.ozlabs.org/patch/951386/ If that patch is not accepted or other pciehp-related patches are merged before this series, I'll have to rebase patch [4/9] ("PCI: pciehp: Unify controller and slot structs"). No big deal, just a heads-up. Thanks, Lukas Lukas Wunner (9): PCI: Simplify disconnected marking PCI: pciehp: Drop unnecessary includes PCI: pciehp: Drop hotplug_slot_ops wrappers PCI: pciehp: Unify controller and slot structs PCI: pciehp: Reshuffle controller struct for clarity PCI: hotplug: Constify hotplug_slot_ops PCI: hotplug: Drop hotplug_slot_info PCI: hotplug: Embed hotplug_slot PCI: hotplug: Document TODOs arch/powerpc/include/asm/pnv-pci.h | 2 +- drivers/pci/hotplug/TODO | 74 +++++++ drivers/pci/hotplug/acpiphp.h | 10 +- drivers/pci/hotplug/acpiphp_core.c | 36 +--- drivers/pci/hotplug/acpiphp_ibm.c | 2 +- drivers/pci/hotplug/cpci_hotplug.h | 11 +- drivers/pci/hotplug/cpci_hotplug_core.c | 105 +++------- drivers/pci/hotplug/cpci_hotplug_pci.c | 6 +- drivers/pci/hotplug/cpqphp.h | 9 +- drivers/pci/hotplug/cpqphp_core.c | 59 ++---- drivers/pci/hotplug/cpqphp_ctrl.c | 31 +-- drivers/pci/hotplug/ibmphp.h | 9 +- drivers/pci/hotplug/ibmphp_core.c | 121 ++++------- drivers/pci/hotplug/ibmphp_ebda.c | 70 +------ drivers/pci/hotplug/pci_hotplug_core.c | 53 ++--- drivers/pci/hotplug/pciehp.h | 138 ++++++------- drivers/pci/hotplug/pciehp_core.c | 127 +++--------- drivers/pci/hotplug/pciehp_ctrl.c | 255 +++++++++++------------- drivers/pci/hotplug/pciehp_hpc.c | 127 ++++-------- drivers/pci/hotplug/pciehp_pci.c | 24 +-- drivers/pci/hotplug/pnv_php.c | 35 ++-- drivers/pci/hotplug/rpaphp.h | 10 +- drivers/pci/hotplug/rpaphp_core.c | 20 +- drivers/pci/hotplug/rpaphp_pci.c | 11 +- drivers/pci/hotplug/rpaphp_slot.c | 22 +- drivers/pci/hotplug/s390_pci_hpc.c | 44 ++-- drivers/pci/hotplug/sgi_hotplug.c | 63 +++--- drivers/pci/hotplug/shpchp.h | 8 +- drivers/pci/hotplug/shpchp_core.c | 48 ++--- drivers/pci/hotplug/shpchp_ctrl.c | 21 +- drivers/pci/pci.c | 4 +- drivers/pci/pcie/err.c | 8 +- drivers/pci/slot.c | 2 +- drivers/platform/x86/asus-wmi.c | 39 +--- drivers/platform/x86/eeepc-laptop.c | 43 ++-- include/linux/pci_hotplug.h | 43 +--- 36 files changed, 638 insertions(+), 1052 deletions(-) create mode 100644 drivers/pci/hotplug/TODO Acked-by: Andy Shevchenko