From patchwork Mon Jan 14 11:15:12 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: 155448 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3537400jaa; Mon, 14 Jan 2019 03:17:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN72PovaPGc/+SzbtADsKNDTDgg/gcoIK4lWGBxcT9wqU0PJRFZGA11CjiMgwyHg3ehGh6Tx X-Received: by 2002:a63:42c1:: with SMTP id p184mr22275733pga.202.1547464652086; Mon, 14 Jan 2019 03:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464652; cv=none; d=google.com; s=arc-20160816; b=UHR0GMalPpdEvb1y0neX56VJLijO1L5raFUGwyxz35IpYB333rpvBHqdP5MIwK4N6q DXgq17scYB/6ZwUmDFKo4tU/j1wRoIHVHgHgB3TR3N3IepfjhH9PeXj+Z+LpCJ2dF/Zb HYDNDxGvHMzJZNPVZM1FKIr4EMlnS6CcgHVrJa4wkiMWa7qhIpajmPDUUIEULaoAjJv0 hAmrWESVQU2EZFyIdhfzvOse1EH90ve4CUuHu1+1r4JqjNLAJ3r/mFYUEmhMd38UUzcZ c/327MEs2oc7QaEtltQVNLrJcNxeqFyv+i33daPc7L3Sa5HIPsL/HBmzvACU/lyktquc komA== 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=eHNrbRBkbh6QxV/CscfRDyYimBKoc8NEh7Yg5WrD6eAHwVOuRhpSHJnNwbQv31xwTi 6NTqg17DxptuIzI+ptCym0x8ceLMEOIxggnCyP2mGlXxyilJwNNJXYKkmNMeBJhYkAL8 FzofRYa34TKrxi1RKUP9+ZubMdDTGgiZ7YNUsBeV07y1xgxnQ+zQPOO/Iai2ppuE4oOw gA+UACfCrTlY2y4yvde5Xz7ApMhZoQ2nmuZy7cmRD670mPibJxb0+zSeFHVqJCNQz0Ot beEPvnXdK/JYFXI1jrZ628jEImfstZd0aVGuKOBOVTfhFsGYLsGpQ4XyrmM+nXvjrfeb EC/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SE0tiVNd; 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 g184si107412pfb.288.2019.01.14.03.17.31; Mon, 14 Jan 2019 03:17:32 -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=SE0tiVNd; 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 S1726919AbfANLRa (ORCPT + 31 others); Mon, 14 Jan 2019 06:17:30 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45784 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbfANLR1 (ORCPT ); Mon, 14 Jan 2019 06:17:27 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0EBGblh003669; Mon, 14 Jan 2019 05:16:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547464597; bh=f30RSmXMqhsV1n1NfMeTlD3ATOBh5scl1ryG7fV6mJI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SE0tiVNds2+gqS/c938UfuIh4RziUQlz0qIL3A7BOUs4UPPVZsTUrInYOZLGKCRPA AhXMi31NfnwdASFvt8lRbTqLHuaXkMHtz76Sm1Tvsif4QBxMde/Rwz4dL5w0zX7/t/ 8QLsTIPUM4k4wtzNWwAtCXOv0zfW582SCAxJnS6c= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0EBGbdY068044 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 05:16:37 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE105.ent.ti.com (10.64.6.26) 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:37 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE111.ent.ti.com (10.64.6.32) 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:37 -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 x0EBFd1g011560; Mon, 14 Jan 2019 05:16:33 -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 14/15] PCI: designware-plat: Remove setting epc->features in Designware plat EP driver Date: Mon, 14 Jan 2019 16:45:12 +0530 Message-ID: <20190114111513.21618-15-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 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,