From patchwork Fri Sep 12 18:03:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 4897461 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1668A9F430 for ; Fri, 12 Sep 2014 18:02:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75B5A20254 for ; Fri, 12 Sep 2014 18:06:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51AEA2024C for ; Fri, 12 Sep 2014 18:06:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752127AbaILSDU (ORCPT ); Fri, 12 Sep 2014 14:03:20 -0400 Received: from mail-ie0-f178.google.com ([209.85.223.178]:51593 "EHLO mail-ie0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbaILSDQ (ORCPT ); Fri, 12 Sep 2014 14:03:16 -0400 Received: by mail-ie0-f178.google.com with SMTP id tp5so1399898ieb.37 for ; Fri, 12 Sep 2014 11:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=RVhOd7Rztxt5By9DP7EzrfCB0ivZTIfX40TKllriND8=; b=h52dVsop5dlj2iKO5JJihrv1bvXipbfcCxzhP64mZrPdT6zF5iEkrY0+oyfensWgsu SFtJkizrOl2nn/6UUtdut8/ei0DT07L/+LBrw5fcOeYvENdnTera37bZtMehSYu1XGfp Tl/iYY19QTHZD32iEx2Y8JPVayNySVHMDasBP5mlQtZFCMVqPZJPlm35OEn46wZnmCHm Se+sbt5r2TK5JoHFIHgyYX6VBi7l30nD7qlNZmwBJZIqko0M3nJMGJTN8JloR+0fdDh+ 8/ACOIzCaR/L2x/03AnaNfXZ9rm3eA0DGq88MtR38jsM36X+R+i3ZgE0CXB+IjCG7566 aiAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=RVhOd7Rztxt5By9DP7EzrfCB0ivZTIfX40TKllriND8=; b=M5UZgpJZwjxmqLHOOX8nG1dRPqAYa8AJEP6FM0D6uFFoozT0dNgidT06M3YMGO9e9C ui/R5Oe/PfCU6zNLOLEKZyP4pBCHUJ8ifI8th4SIjdbD+Ria6gBL/hV4y9fUr1EgKsqp Ft5N/39/vpIweN1N6HhK/9/nOqNlUlvMbbs/bL4yMjfArlTwuPoQXAtsQMlv7hjRDkiw i7COc4gIFBcirJzdYr5binc4ViHP4G3wB8CF+J0VZe79PrsNoo6JoYwzyp/sX9gIZd9a 82rpYypyCOvRO7La9ck8TcNkO/18JegAgi0oQjkJb7XlfJhQhJyMobViEiiXLWwms6JJ 3FrQ== X-Gm-Message-State: ALoCoQktU5h254i7gAWrmk6483zFvUPXP+SNVZKLQ04GsL8+XgmA/ooP8soFbZM+Edv8UojuOCdq X-Received: by 10.42.4.136 with SMTP id 8mr10890561ics.57.1410544996071; Fri, 12 Sep 2014 11:03:16 -0700 (PDT) Received: from localhost ([172.16.49.108]) by mx.google.com with ESMTPSA id j2sm2069202igm.21.2014.09.12.11.03.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Sep 2014 11:03:15 -0700 (PDT) Subject: [PATCH v1 04/13] PCI: pciehp: Configure hot-added display devices To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: Rajat Jain , Linus Torvalds , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Yinghai Lu Date: Fri, 12 Sep 2014 12:03:14 -0600 Message-ID: <20140912180314.1630.94483.stgit@bhelgaas-glaptop2.roam.corp.google.com> In-Reply-To: <20140912180141.1630.17120.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20140912180141.1630.17120.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We configure cache line size and other settings of hot-added devices, e.g., based on ACPI _HPP or _HPX methods. Previously we skipped this configuration for display devices, but there is no spec requirement for that. Remove the check so we configure display devices the same way we configure other devices. See also ac81860ea073 ("PCI: hotplug: pciehp: Removed check for hotplug of display devices"). Signed-off-by: Bjorn Helgaas --- drivers/pci/hotplug/pciehp_pci.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 5f871f4c4af1..b66812703415 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c @@ -66,12 +66,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);