From patchwork Mon Jan 14 11:15:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 155447 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3537362jaa; Mon, 14 Jan 2019 03:17:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6DK09pgcVDBkw/1SUDqZ2iCtTVLQQbmi/EeoUsO2MgYfjRuZ+nCsqElTLPi+yvTDflz8Mq X-Received: by 2002:a17:902:4464:: with SMTP id k91mr25240740pld.13.1547464648855; Mon, 14 Jan 2019 03:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464648; cv=none; d=google.com; s=arc-20160816; b=VdVFFAfETgEiXH1lM/HyEMU2wJ+bA55NG35c1RRby8CiFL/qzPZtKU1xilBnz5GYAA iC8mndVIYdLGnv2kEDhJ83JG8M3Fo4zLWVtSZxQwRoOfcFo6CHOfCO58yjiUV5zPhe8T 9FNKd6MHxvhZ3tfrgHQUCZFn8nwFFBWPkPwBA2AHlIq8uFj0Al1+khaEJH90lkVGRfLh 6suCUd/dek//cKD5cn9GLfVmMxYgA8wloi7qHrEACrYm4Zom1+YkIg+YBcWFTfkE4Jg9 2Ur6Jjh7vfzr3rlK6WsEZ8/IQzpPQprIbwNkHOKwHSsTUA1UsM4UkObWmYWNRNUz8Mhk Q5aw== 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 s5si113260plr.211.2019.01.14.03.17.28; Mon, 14 Jan 2019 03:17:28 -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 S1726916AbfANLR1 (ORCPT + 31 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 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(-) -- 2.17.1 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) \