From patchwork Mon Jan 7 06:41:48 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: 154862 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3171463ljp; Sun, 6 Jan 2019 22:44:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Rgk5x6P63+VwrHkkUpLY0I1Wri320veh/s2qIjN7ulD0lag0ZE6zFF+f3GhaDwqJ55t7O X-Received: by 2002:a63:bd1a:: with SMTP id a26mr9799841pgf.121.1546843450880; Sun, 06 Jan 2019 22:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546843450; cv=none; d=google.com; s=arc-20160816; b=1JdxVOmeJX/5yVTdvX+omLGb1HBzgC1w00YVu9CmIGhUhQaTaHvLHwv8+y2U1O241R HLZeYyGJqJA2lniqdzJr1SgUs46SkjwRNsLf/5OCyjRYxHwNCD1yQm5QwIocYu4Y1MZC 34+BJah0/LIOM6NuRdp8iMnl5W68v22hUmM8rv3+EiNYp+pquqa0WSObFiRpFQ5JvpV1 AZMOLSnVFM+VqD/EQVNGYG3fCc0goyoL+ATcWo+9hhvcoGWBVTQdUGM2holKF+gc/XJz uyF3QMXFaeQ/V/gEl4H0yIIxr+0KAO0ZDAb+6L5A1iD7HFa10uWQwDn7zplOpZwoU9NW enwQ== 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=hINSWO+j0rnQzGXlYYmcVdxAz+2sDdsG0d8LALea1i4=; b=WyoxbfueAAV56Kf1n8OXo0a9Zv1j460BI7EIMkCo/FgKRSqHu4K+gwks3Nf0dfQMLj e1xR2mLWAQ9Lmu7MsYnpNAnV+ZMVJ1++CQmkxpeWPEuUnlNw/csQmtgGRme71xJeYJ0Q Ac0uybTSmjM/yI6rWZIcnVDBCVZXzyDkWvGhhtEviCta/l5CkItFhTYHkyt2HwH37/ML e/gjEUFqDJ2+NtghnTxWS7+KOLmWPyspjXAukvz6InHWfoIub6/L2EFBd58XEYN3H0Xw gYcKRH8b07W76thVMZ6CQ3MnVxp0vUV31aSb/jl1r4nVHp2N7eqdaK4P7EyI8p2reiW8 eZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nniCUJBv; 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 z9si6608397pgf.54.2019.01.06.22.44.10; Sun, 06 Jan 2019 22:44:10 -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=nniCUJBv; 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 S1726691AbfAGGoJ (ORCPT + 31 others); Mon, 7 Jan 2019 01:44:09 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36804 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbfAGGoH (ORCPT ); Mon, 7 Jan 2019 01:44:07 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x076hqdv021825; Mon, 7 Jan 2019 00:43:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546843432; bh=hINSWO+j0rnQzGXlYYmcVdxAz+2sDdsG0d8LALea1i4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nniCUJBvEVBJFmbm+Imj/1XZcd98HetidQUV8VJAtd1Ip6qIKbYak0xCpLH48OkRo HvIITVDCq41KlmmkKwK1T8DA5bUEktUYdp7KYmmfYuJ5D0Wx242JUIlGIJ0oHclGUh QsScUts3AvasiX0xUb+Ko0kjpSGLNVhBVhJg1M2I= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x076hqhN071741 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Jan 2019 00:43:52 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) 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, 7 Jan 2019 00:43:51 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 7 Jan 2019 00:43:51 -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 x076gfoC002672; Mon, 7 Jan 2019 00:43:48 -0600 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Bjorn Helgaas , Gustavo Pimentel , Alan Douglas , Shawn Lin CC: Jingoo Han , Heiko Stuebner , Cyrille Pitchen , Jia-Ju Bai , , , , , , Subject: [PATCH 15/15] PCI: endpoint: Remove features member in struct pci_epc Date: Mon, 7 Jan 2019 12:11:48 +0530 Message-ID: <20190107064148.10152-16-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190107064148.10152-1-kishon@ti.com> References: <20190107064148.10152-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 dc3513a2f88a..4870ad5a6ca2 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) \