From patchwork Mon Jan 7 06:41:47 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: 154863 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3171544ljp; Sun, 6 Jan 2019 22:44:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN6xbpsxwXi83S3Q4yQu/5j1eNm1voaJ51izA/1iKwz9w82yX97MGRkzxAqEDVGT0Zwwxx2a X-Received: by 2002:a63:3d1:: with SMTP id 200mr10009877pgd.68.1546843458412; Sun, 06 Jan 2019 22:44:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546843458; cv=none; d=google.com; s=arc-20160816; b=OM6nLEfmqDeiYdgPbwtH127O7WnhtlsjdFcGOWtmkVngdaNwn5j4Sy8h+bZsmBCGDx 6JTdPH51uOELMk+2NJMpU0InWmpiexhMDz2ynaqSzpxCibANLLq7ojSU5jndZicf+xTN efhPPP1VRQ6UZ3TrM/TJcwJXf4UfR2H2EzPArT7r5bg5ibbV7vdIyfIvyBaTkNsnMgEl Ba3nYWZFE9UQVRRD1QG+9eKyw9R3Sd28p5+4t0AmZe5vd5yNmrO+dqhxtOu4hk7dl7OU jzz67c9nIlXC65gA8aTr8V5SvBb4h1TgAJpRF5ScvgyddBCG3DAPQNQSyOLnSoCpHGcW S5CA== 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=f30RSmXMqhsV1n1NfMeTlD3ATOBh5scl1ryG7fV6mJI=; b=uOyRIP8FJyWqRrcfAqiMA/x6YCZrdiqgDG04747rnAldEbMOD5YBfF40tNTRwdukcL tJTNOBgi0I5C4iS72AGSY+n3Xi3Fgk8rcCB3sj0TEavCowk+OTGofyKsCwgUFcatk+2C tcrI1ye/0QgGXGiZnwkk2pqH/xaHcA8xxEEp5rsBfUkEmGWCcvrQWZTJfGj7IS2Fr4/4 EfJVrGetiqg916yHS8ZYbqZ2pxDAJip8XksCt1vNOiMrAW4jxJo03bFi8eBTlwScCpnW io5w3U12bLrkCcNtBb0YpKo9UiFC1fzenng49A8vlzIB6uW0iAaTcpgDSRzPxYAH6pls +4cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cPMWIu4+; 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 d2si62933960pla.81.2019.01.06.22.44.18; Sun, 06 Jan 2019 22:44:18 -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=cPMWIu4+; 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 S1726709AbfAGGoR (ORCPT + 31 others); Mon, 7 Jan 2019 01:44:17 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:39084 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbfAGGoF (ORCPT ); Mon, 7 Jan 2019 01:44:05 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x076hmMG055443; Mon, 7 Jan 2019 00:43:48 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546843428; bh=f30RSmXMqhsV1n1NfMeTlD3ATOBh5scl1ryG7fV6mJI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cPMWIu4+7qq27qo54hUDefYDXUDaThbqVdSejCnoCYNyp/VdX9nYYY4mbrDvvoQPW 5jWsckn+8lCbRJxAyDHPOk7tHlEf8nYih9zxDiwZcan9qiJJFm9KMxh1tbZha6EhKW hHz/1HhhZ6rugky0oM9w2OHDqskQScOC+ThLX6/4= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x076hm5j021466 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Jan 2019 00:43:48 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE106.ent.ti.com (157.170.170.36) 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:47 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE115.ent.ti.com (157.170.170.26) 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:48 -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 x076gfoB002672; Mon, 7 Jan 2019 00:43:43 -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 14/15] PCI: designware-plat: Remove setting epc->features in Designware plat EP driver Date: Mon, 7 Jan 2019 12:11:47 +0530 Message-ID: <20190107064148.10152-15-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 Now that pci-epf-test uses get_features callback and dw_plat_pcie_epc_features in Designware plat EP driver already indicates it doesn't support linkup notification and is MSIX capable, remove setting epc->features which is not used anymore by the endpoint function driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/dwc/pcie-designware-plat.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.17.1 diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index bd0516afc86f..3be87126aef3 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c @@ -70,14 +70,10 @@ static const struct dw_pcie_ops dw_pcie_ops = { static void dw_plat_pcie_ep_init(struct dw_pcie_ep *ep) { struct dw_pcie *pci = to_dw_pcie_from_ep(ep); - struct pci_epc *epc = ep->epc; enum pci_barno bar; for (bar = BAR_0; bar <= BAR_5; bar++) dw_pcie_ep_reset_bar(pci, bar); - - epc->features |= EPC_FEATURE_NO_LINKUP_NOTIFIER; - epc->features |= EPC_FEATURE_MSIX_AVAILABLE; } static int dw_plat_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,