From patchwork Fri Sep 12 18:04:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 4897341 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 C6A659F430 for ; Fri, 12 Sep 2014 18:00:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 46E662021B for ; Fri, 12 Sep 2014 18:05:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B4CD20200 for ; Fri, 12 Sep 2014 18:05:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752494AbaILSEH (ORCPT ); Fri, 12 Sep 2014 14:04:07 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:42702 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752490AbaILSEE (ORCPT ); Fri, 12 Sep 2014 14:04:04 -0400 Received: by mail-ie0-f176.google.com with SMTP id ar1so1341701iec.7 for ; Fri, 12 Sep 2014 11:04:04 -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=F4b3s1ENDOXvoHqt9Ak5KO0bx7bzLlnmxW/a/iTVmDk=; b=SzHDUit+Rp/MjLSKP3x7vMKvcAT4Yb2tuvx92LcTGf8F5ghb2UcWssCsrNDeM0cQfE 46I3O3xXy+CgiIXtyEtFjH7w8CGStKTGeVqgpdytDCxxzi65oIPVJ8vHNKkXql4vAADP 8xTrBm+ldwqao+tfS8dJKhx0GgO4pzE9y5PEskfSc32IA/y99UOJmlQ/DR75Pr852WNd 8Bk+MiYJveNEENNa7STcs0/EUNZhpzF7YOG2VU+Lie8eZkaAeU4YRwjbXjgKVl/srAAJ S9McdrJkFw7spb4omO6joQSsS334MMUGKpW1QiDUGv9nSQQkGQI4L/Opl7Gu998gCP8s cBnQ== 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=F4b3s1ENDOXvoHqt9Ak5KO0bx7bzLlnmxW/a/iTVmDk=; b=ZFgHzqG0n69XsDWaxD034/C0BmCWjKF6alBLL8w1XAmFq1x6TioY3N8D6T5zg55ljl gYZdZYx3NzAOKU6vm6U7B5dXVnsQmTTMGSiIz3QPXrWUn/fbKCDlj1aacaaPNXqFCDj4 sZnufmJl0YOfrvRuEBHQnTpqY8yM7acZrp+/SibGZXHV6jBiwRMzFoWcF5dgrPgxdERO JiMimRzhni5xJX6UVplAz46q1+G8J3qYDIMCcbccrL1ModFzMgAa2q8kzxVmZYRSYtwl G/Kbkxpeqp6MtPr5miA1zWSY1+gJK34hAo4Y9PDanizllIAr7wkAaLbKcZBtQvTZKxwi 4scg== X-Gm-Message-State: ALoCoQkRq36ABmvBrrjo8QgPdmF0sPcgH37jqatdz1gVgMU0gFD5C4evKMBsOk+qnUoJS9an31jp X-Received: by 10.50.79.132 with SMTP id j4mr4375826igx.9.1410545044326; Fri, 12 Sep 2014 11:04:04 -0700 (PDT) Received: from localhost ([172.16.49.108]) by mx.google.com with ESMTPSA id a4sm2106787igv.1.2014.09.12.11.04.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Sep 2014 11:04:03 -0700 (PDT) Subject: [PATCH v1 11/13] PCI: Apply _HPP settings to all hot-added PCI 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:04:03 -0600 Message-ID: <20140912180403.1630.49400.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=unavailable 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 currently apply _HPP settings only to: - non-bridge devices, and - PCI-to-PCI bridges i.e., we do not apply them to PCI-to-ISA bridges and the like. It has been that way since _HPP support was added by 40abb96c51bb ("pciehp: Fix programming hotplug parameters"), but I don't think there's any reason to exclude these other bridges. Apply _HPP settings to hot-added PCI devices of any type. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 5 ----- 1 file changed, 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/probe.c b/drivers/pci/probe.c index a16b3472b70d..1ff2105ba401 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1351,11 +1351,6 @@ static void pci_configure_device(struct pci_dev *dev) if (system_state == SYSTEM_BOOTING) return; - if (!(dev->hdr_type == PCI_HEADER_TYPE_NORMAL || - (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE && - (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI))) - return; - memset(&hpp, 0, sizeof(hpp)); ret = pci_get_hp_params(dev, &hpp); if (ret)