From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932511AbcILVI6 (ORCPT ); Mon, 12 Sep 2016 17:08:58 -0400 Received: from mail.kernel.org ([198.145.29.136]:54078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932404AbcILVIw (ORCPT ); Mon, 12 Sep 2016 17:08:52 -0400 Subject: [PATCH v2 0/8] PCI: pciehp: Rework hotplug interrupt routine To: Mayurkumar Patel From: Bjorn Helgaas Cc: Rajat Jain , MikaWesterberg@linux.intel.com, linux-pci@vger.kernel.org, Rafael J Wysocki , linux-kernel@vger.kernel.org, Keith Busch , Luis Antonio Tarazona-Duarte , Andy Shevchenko , mika.westerberg@linux.intel.com Date: Mon, 12 Sep 2016 16:08:47 -0500 Message-ID: <20160912210507.22258.63097.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is mostly Mayurkumar's work from [1] and [2]. I split [2] into two patches and reworked it to keep the enclosing loop around the pciehp ISR. The patches I added are trivial ones to clarify variable names, make dmesg messages consistent, and remove useless code. [1] 1471554479-42083-1-git-send-email-mayurkumar.patel@intel.com [2] 92EBB4272BF81E4089A7126EC1E7B28466598F35@IRSMSX101.ger.corp.intel.com --- Bjorn Helgaas (5): PCI: pciehp: Rename pcie_isr() locals for clarity PCI: pciehp: Return IRQ_NONE when we can't read interrupt status PCI: pciehp: Remove unnecessary guard PCI: pciehp: Clean up dmesg "Slot(%s)" messages PCI: pciehp: Remove useless pciehp_get_latch_status() calls Mayurkumar Patel (3): PCI: pciehp: Process all hotplug events before looking for new ones PCI: pciehp: Don't re-read Slot Status when queuing hotplug event PCI: pciehp: Don't re-read Slot Status when handling surprise event drivers/pci/hotplug/pciehp_ctrl.c | 83 ++++++++++++--------------------- drivers/pci/hotplug/pciehp_hpc.c | 94 ++++++++++++++++++++----------------- 2 files changed, 82 insertions(+), 95 deletions(-)