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: 10051851 X-Patchwork-Delegate: agross@codeaurora.org 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 7D125601EA for ; Thu, 9 Nov 2017 20:47:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 701602B0DA for ; Thu, 9 Nov 2017 20:47:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 635A22B112; Thu, 9 Nov 2017 20:47:16 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15AD22B0DA for ; Thu, 9 Nov 2017 20:47:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752361AbdKIUrP (ORCPT ); Thu, 9 Nov 2017 15:47:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:60684 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbdKIUrO (ORCPT ); Thu, 9 Nov 2017 15:47:14 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E47E6607A4; 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 Cc: Bjorn Helgaas , Dongdong Liu , Gabriele Paoloni , Thomas Gleixner , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Oza Pawandeep 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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;