From patchwork Mon Apr 1 09:22:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 2369731 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B50FF3FD40 for ; Mon, 1 Apr 2013 09:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757969Ab3DAJX1 (ORCPT ); Mon, 1 Apr 2013 05:23:27 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:27879 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757408Ab3DAJX0 (ORCPT ); Mon, 1 Apr 2013 05:23:26 -0400 Received: from 172.24.2.119 (EHLO szxeml205-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AZK43872; Mon, 01 Apr 2013 17:23:24 +0800 (CST) Received: from SZXEML407-HUB.china.huawei.com (10.82.67.94) by szxeml205-edg.china.huawei.com (172.24.2.58) with Microsoft SMTP Server (TLS) id 14.1.323.7; Mon, 1 Apr 2013 17:22:36 +0800 Received: from localhost (10.135.76.69) by szxeml407-hub.china.huawei.com (10.82.67.94) with Microsoft SMTP Server id 14.1.323.7; Mon, 1 Apr 2013 17:22:28 +0800 From: Yijing Wang To: Bjorn Helgaas , Yinghai Lu CC: Kenji Kaneshige , , , Rafael , Hanjun Guo , , Yijing Wang Subject: [PATCH 3/3] PCI, pciehp: remove check for configure display devices Date: Mon, 1 Apr 2013 17:22:08 +0800 Message-ID: <1364808128-12792-3-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.11.msysgit.1 In-Reply-To: <1364808128-12792-1-git-send-email-wangyijing@huawei.com> References: <1364808128-12792-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.135.76.69] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Commit ac81860 removed unnecessary check for hotplug of display device. Currently pciehp is allowd to hotplug display device, So we also configure display device when hot added. Signed-off-by: Yijing Wang --- drivers/pci/hotplug/pciehp_pci.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index aac7a40..c9d2df3 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c @@ -64,12 +64,8 @@ int pciehp_configure_device(struct slot *p_slot) pci_assign_unassigned_bridge_resources(bridge); - list_for_each_entry(dev, &parent->devices, bus_list) { - if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) - continue; - + list_for_each_entry(dev, &parent->devices, bus_list) pci_configure_slot(dev); - } pci_bus_add_devices(parent);