From patchwork Thu Nov 9 20:46:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 10051867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5AB98601EA for ; Thu, 9 Nov 2017 20:47:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E8AB2B0F7 for ; Thu, 9 Nov 2017 20:47:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 433FD2B115; Thu, 9 Nov 2017 20:47:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE0072B0F7 for ; Thu, 9 Nov 2017 20:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=qb8mfzaLsOoicuz/QBBPHozDG7QJtf+fZprJpkGOJl8=; b=oODnEg6BVjH4xx8t/WxHdBw7g5 EqA3BBsKdQk5lTbx0X4lh63KplhsNcEPbAeAGq/vD/InE2T/x82gVfmGAq6GQpT30vidfSdrNqK6S qMaI6gDgfFVPTKmvo+IAqlXxdcd3kwd3kgVgeeIyRcUmqNep41FbzboB4wWzyuHLrIE7kT+wTy7y2 tsL4KuTwPcf3vOmXd0alvoudTG55nHAu2bgEkJc5F63hRsudnALfdQJh9WbXMNSLF+XkNip2lJwJT XGnBb4YvmFVPQrA1mZrkK3KIhx9kArgDqkFUla8LdO3ywmAgCpA8fsEXWrRqPicrpg1rUW3b8uH1s um7nMDfQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eCtjb-0000wm-5i; Thu, 09 Nov 2017 20:47:35 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eCtjX-0000pp-1j for linux-arm-kernel@lists.infradead.org; Thu, 09 Nov 2017 20:47:33 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AC2EB6081A; Thu, 9 Nov 2017 20:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510260433; bh=UdQaZbQhcV4Uq6Au/WTBX1hDQv/f0G06YMDOSubvpQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wj16VqGsYD0D6ZFO1z/YGZ4cfQq8mYSPs88EPqpOb4d7BhxzWapjzH5Hdm+2DROzB CW2cQRMYtwWUJ9Gc9AGVJuM+FJ4ktaDOzyqdb6iKlqRhs7cjNmeNxGI+56+gUIwj8B m54og3k99kssmigk2bH8rgvH506Ilm2we3r/etgc= Received: from blr-ubuntu-poza.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: poza@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DB39F60807; Thu, 9 Nov 2017 20:47:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510260432; bh=UdQaZbQhcV4Uq6Au/WTBX1hDQv/f0G06YMDOSubvpQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PoojSxY7QNqKjVbNFyzhu7sEx+cH8fh0RubquumlFImCi8HsHABbLh+BZibL0ZacF 7C8jgX4b7dwqd9pl5hnGj7mlhaQJT8JS6C7wyo57bgswfKUo5WPu7tlSWHDGJDpx9i NnVcUQ6d1BxT5sjPWt8JSUuZQfsnwnxXvijjd0+4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DB39F60807 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=poza@codeaurora.org From: Pawandeep Oza To: linux-pci@vger.kernel.org, timur@codeaurora.org Subject: [PATCH 1/4] PCI: Add port service list node for pci_dev. Date: Fri, 10 Nov 2017 02:16:36 +0530 Message-Id: <1510260399-14886-2-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1510260399-14886-1-git-send-email-poza@codeaurora.org> References: <1510260399-14886-1-git-send-email-poza@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171109_124731_158847_98A72738 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Oza Pawandeep , Gabriele Paoloni , Greg Kroah-Hartman , Dongdong Liu , linux-arm-msm@vger.kernel.org, Bjorn Helgaas , Thomas Gleixner , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oza Pawandeep This patch adds the list node to keep track of services registered to pci port driver. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 14e0ea1..f772979 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1931,6 +1931,7 @@ struct pci_dev *pci_alloc_dev(struct pci_bus *bus) return NULL; INIT_LIST_HEAD(&dev->bus_list); + INIT_LIST_HEAD(&dev->service_list); dev->dev.type = &pci_dev_type; dev->bus = pci_bus_get(bus); diff --git a/include/linux/pci.h b/include/linux/pci.h index 96c9498..eb86a4b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -408,6 +408,8 @@ struct pci_dev { struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */ struct bin_attribute *res_attr_wc[DEVICE_COUNT_RESOURCE]; /* sysfs file for WC mapping of resources */ + struct list_head service_list; /* node in per-service list */ + #ifdef CONFIG_PCIE_PTM unsigned int ptm_root:1; unsigned int ptm_enabled:1;