Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3453164imu; Mon, 14 Jan 2019 03:20:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN66/HSKyBrrkxokA7Xzn2Z8cW4SJTNlkP2zdPTsLpWZVqBzHnB+ImFmfVWHgvMKUAwFJmUl X-Received: by 2002:a65:520a:: with SMTP id o10mr23008713pgp.276.1547464809992; Mon, 14 Jan 2019 03:20:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464809; cv=none; d=google.com; s=arc-20160816; b=AXzIjRWK2qcnp1XsCUMmEgCgEEAkEAOZ+i2fjDEk9IFjvceYPe0imd62LXPn9A44Wi jaoJT7VSoBlzPBPam6+oGFXEq5OA704Fw7fhSepsO8CU3YFsqwU85AqnEE9RfNixH5T+ 4Y0EpQam70iRyPl2jr3eWaHmrtCge0PpRqCa16Pm0FocEvufoJ7mZY483UFmyQnLTczw oefFYgZsdoYrsiIvwFM0+VGy6DapX1Lk5Y7JUMlrWAAnlpOk798PVfRk8t2sOZ4sKRcq Z7Qd5Lr75iHjwsc8B49KPaWh9uEdP9HZf6z/4em8HLUbKj757tJV1sRrJ/io/NGckB62 ARng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=4YRXaHedTxJwSOCNaAmkVolcFGYRNrTlux25tJuWNNM=; b=dDFuvs1c2iR6a1JtjQYeN2JZK3tHhD7kVNs59eu29pw979C8Y276XIM2e01Ku7KPLj OaV628cJwK4jTUfCAVCVeEBtubhlWMWQgM9/NoG2hhG+9Ws4M7nxcrmUjKvoLatG16V2 k0FpvL7RZTujFlQXeMKCJgbXKUp+NjTbL2gQAXN6+WEfs+ZliFcOl9pAUUf5TM+Jxu/T C4CTIQkrg3s7pZU4F+OONQZEn9sXLYmJWATrJEgeooqDtF12PIdqHx1aOADqkCTmlue7 E2hnfd6hNPbICdSSW79RAeanRTYAYu2N2pmtD76UPz2RZByTT8UGPbBejibrln21NrYb c8xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gcveBGTe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si136355pgj.56.2019.01.14.03.19.53; Mon, 14 Jan 2019 03:20:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gcveBGTe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbfANLR1 (ORCPT + 99 others); Mon, 14 Jan 2019 06:17:27 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47014 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726649AbfANLR0 (ORCPT ); Mon, 14 Jan 2019 06:17:26 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0EBGfgq065583; Mon, 14 Jan 2019 05:16:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547464601; bh=4YRXaHedTxJwSOCNaAmkVolcFGYRNrTlux25tJuWNNM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gcveBGTey529UvNcaC9o3tW3u84kkBK4wU+/DXm2dF9gdk3xF06eCWxhlGKJ1FcEG dwFPRC2IO9lnYOIeXeEps8RFrbNKJJIFjgm0OXvcA0HalC2TgGyQmaklEj8VoX8JZT Q1iENKeugJ4Wz+NbfxFxV2B3JUen4U23hQP27fwM= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0EBGfiD068063 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 05:16:41 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 14 Jan 2019 05:16:41 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 14 Jan 2019 05:16:40 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0EBFd1h011560; Mon, 14 Jan 2019 05:16:37 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Gustavo Pimentel , Alan Douglas , Shawn Lin , Heiko Stuebner CC: Bjorn Helgaas , Jingoo Han , , , , , Subject: [PATCH v2 15/15] PCI: endpoint: Remove features member in struct pci_epc Date: Mon, 14 Jan 2019 16:45:13 +0530 Message-ID: <20190114111513.21618-16-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190114111513.21618-1-kishon@ti.com> References: <20190114111513.21618-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since EPC features are now implemented using pci_epc_features and all the EPC drivers are moved to using pci_epc_features, remove features member in struct pci_epc and all the helper macros for configuring the features. Signed-off-by: Kishon Vijay Abraham I --- include/linux/pci-epc.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/pci-epc.h b/include/linux/pci-epc.h index 94e1ecff98ce..c3ffa3917f88 100644 --- a/include/linux/pci-epc.h +++ b/include/linux/pci-epc.h @@ -99,7 +99,6 @@ struct pci_epc { struct config_group *group; /* spinlock to protect against concurrent access of EP controller */ spinlock_t lock; - unsigned int features; }; /** @@ -120,14 +119,6 @@ struct pci_epc_features { u64 bar_fixed_size[BAR_5 + 1]; }; -#define EPC_FEATURE_NO_LINKUP_NOTIFIER BIT(0) -#define EPC_FEATURE_BAR_MASK (BIT(1) | BIT(2) | BIT(3)) -#define EPC_FEATURE_MSIX_AVAILABLE BIT(4) -#define EPC_FEATURE_SET_BAR(features, bar) \ - (features |= (EPC_FEATURE_BAR_MASK & (bar << 1))) -#define EPC_FEATURE_GET_BAR(features) \ - ((features & EPC_FEATURE_BAR_MASK) >> 1) - #define to_pci_epc(device) container_of((device), struct pci_epc, dev) #define pci_epc_create(dev, ops) \ -- 2.17.1