From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f172.google.com ([209.85.192.172]:49424 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610Ab3KSWjy (ORCPT ); Tue, 19 Nov 2013 17:39:54 -0500 Message-ID: <528BE8B6.9080007@gmail.com> Date: Tue, 19 Nov 2013 14:39:50 -0800 From: Rajat Jain MIME-Version: 1.0 To: Linux-PCI , Linux-hotplug , linux-kernel@vger.kernel.org CC: Bjorn Helgaas , Guenter Roeck , Kenji Kaneshige , Alex Williamson , Yijing Wang , Paul Bolle , "Eric W. Biederman" , Rajat Jain , Rajat Jain , Guenter Roeck Subject: [RFC PATCH 0/4] Allow Link state changes for Hot-Plug Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-pci-owner@vger.kernel.org List-ID: Hello, This patch set enables the use of PCI Express link up and link down events for Hotplug or Unplug. The requirement of such a feature was originally discussed here: http://www.spinics.net/lists/linux-pci/msg05783.html http://www.spinics.net/lists/hotplug/msg05801.html Patch [1/4]: makes a function non-static for use by patch 2. Patch [2/4]: Contains the bulk logic to allow link events to be used for hotplug and removal. Patch [3/4]: Makes the pciehp_power_thread() lock free by making it look at a work info->req instead of slot->state. Patch [4/4]: Introduce slot->hotplug_lock to serialize the hotplug operations. I'd appreciate if you could please review and provide me with any comments. Thanks, Rajat Rajat Jain (4): pciehp: Make check_link_active() non-static pciehp: Use link state change notifications for hot-plug and removal pciehp: Ensure all hotplug events are processed, even very fast ones. pciehp: Introduce hotplug_lock to serialize HP events on each slot drivers/pci/hotplug/pciehp.h | 6 ++ drivers/pci/hotplug/pciehp_core.c | 10 +- drivers/pci/hotplug/pciehp_ctrl.c | 181 ++++++++++++++++++++++++++++++++++--- drivers/pci/hotplug/pciehp_hpc.c | 63 +++++++++---- 4 files changed, 229 insertions(+), 31 deletions(-) -- 1.7.9.5