From patchwork Mon Jan 7 06:41:37 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: 154853 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3170999ljp; Sun, 6 Jan 2019 22:43:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/UUxpAVx70P730cFWolgpXs6RmqKb1xbiF9YCKCb4Fr0NFSJfSkseth1JyM1W1dHmwlCgR6 X-Received: by 2002:aa7:8542:: with SMTP id y2mr62841751pfn.83.1546843407747; Sun, 06 Jan 2019 22:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546843407; cv=none; d=google.com; s=arc-20160816; b=L9P3mZxNSXc8zBHLbZcJaqP+1dEL4C1a/dqkXWbV0Nm1IfspPQwe7aIZQh67mvr1UX p+TypLTv5sP8BOdNixcNGsOOxHzKdm48vfAn83kYg3Y7LvGKVqtDDTQe3/dAstEeOuA0 Htg+FFkFWRMOUL8uKHZlLWPXF9Vj2FKWer1UaiPugw/S4Vhoyo/2QPPyXD2P24Q3uVW4 mlXWQPqGM7mH6/GB3AIG3ry/RmonIeFL7DiU6l3E4tGqyshGqGvB0fSKr4EY1wUFLlzi aCjWPT/TylIpkGvqmAQLw7tDUkXcfXHAdyq/jXk7dNy2+296ZXuX6B4r3PIoxsaggf/b QUVQ== 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=TmIM90if+baASLKYtEih7oqZRQj9lMMND6SlULCYPWw=; b=V3cSQV5S4MEiG/8wtRLvXbp0G68L4jChcxKZTLCbezlCaVnw/PtpIEaDjtJE4NzqDD 8kgKRm/V9rwWiLg5yqiMeOa+bFDrKTcjA6FGBdhHqN/n3GCfrMlbJZAlPpcSPDgcW8uh 5aRiE2G3gEY2M3qhgg9QdflQSEM1MZQ0IHy1wdgqBC3FSoohhNfbzV6dRVhOoroGscb9 oGEMqAznV1Bk8EEmYcL6vzmeDv/c3woa3zwzZRrHpzADwQlbUnWbCiuEhRcTgjRQ4ZDi PEPPXG4KUwc0OCldVDDSOFsePxJRIhkCgBvO9iiQC263kKdrxJrXWqjNLppbkQQaSO+e ucJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s4cGbFeT; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 d36si41530917pla.216.2019.01.06.22.43.27; Sun, 06 Jan 2019 22:43:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=s4cGbFeT; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726504AbfAGGnZ (ORCPT + 5 others); Mon, 7 Jan 2019 01:43:25 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:40946 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbfAGGnZ (ORCPT ); Mon, 7 Jan 2019 01:43:25 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x076h5fY058891; Mon, 7 Jan 2019 00:43:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546843385; bh=TmIM90if+baASLKYtEih7oqZRQj9lMMND6SlULCYPWw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=s4cGbFeTxcmy/RknkLx+VUGLIvRawQJSvkSLFiTGAhUuZYcyABTOXSx8LdfaIpVXE f7fh4+y7fM+H063V63R4/fo0rckjdfqU84ClIb0dOjynSKCngBEPoLBxObLOvuwQBQ FBsFYhg9nYUsqHcqj/JjmuBIlUIvxCAI+W3ef24M= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x076h5XC071098 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Jan 2019 00:43:05 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE106.ent.ti.com (10.64.6.27) 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:05 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE115.ent.ti.com (10.64.6.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, 7 Jan 2019 00:43:04 -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 x076gfo1002672; Mon, 7 Jan 2019 00:43:01 -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 04/15] PCI: pci-dra7xx: Populate ->get_features() dw_pcie_ep_ops Date: Mon, 7 Jan 2019 12:11:37 +0530 Message-ID: <20190107064148.10152-5-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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Populate ->get_features() dw_pcie_ep_ops to return the EPC features supported by DRA7xx PCIe endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/dwc/pci-dra7xx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.17.1 diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c index a32d6dde7a57..15620cfa617b 100644 --- a/drivers/pci/controller/dwc/pci-dra7xx.c +++ b/drivers/pci/controller/dwc/pci-dra7xx.c @@ -389,9 +389,22 @@ static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no, return 0; } +static const struct pci_epc_features dra7xx_pcie_epc_features = { + .linkup_notifier = true, + .msi_capable = true, + .msix_capable = false, +}; + +static const struct pci_epc_features* +dra7xx_pcie_get_features(struct dw_pcie_ep *ep) +{ + return &dra7xx_pcie_epc_features; +} + static struct dw_pcie_ep_ops pcie_ep_ops = { .ep_init = dra7xx_pcie_ep_init, .raise_irq = dra7xx_pcie_raise_irq, + .get_features = dra7xx_pcie_get_features, }; static int __init dra7xx_add_pcie_ep(struct dra7xx_pcie *dra7xx,