From patchwork Mon Jan 7 06:41:38 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: 154857 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3171279ljp; Sun, 6 Jan 2019 22:43:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/VVEhg93W7KqnLz78LEWP8UDU/JP0G+A/mHdBrPcWfWekMNbAQiCDE7YNwrsFcj1Emm76cV X-Received: by 2002:a62:1542:: with SMTP id 63mr62334513pfv.230.1546843435267; Sun, 06 Jan 2019 22:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546843435; cv=none; d=google.com; s=arc-20160816; b=G1kxBBSaUUk8XjxMGIPH7wWVSq/r7t4ofrnUNYAZnwFdJpYyVF8p16wg2ig0SzVFpj w3UvWzG2eaXuaXP4exDBHESiv0u1b7TaNfC2T5wbkUaAFpj/gPfwvCP94CmIoSFK/GHo P3BsdF1XhIpf+JGwPgMTCLj9u+4Ko79tN92hn+h2y2QEXaoLn2FwcIIbdjee/liw79wI ZaoavZHuOhlAlLjFBi6RZYWhuL58/j/THrvew03ZNqDcn+rX6bYkoUBaZqRnbVEaRYv2 BaPLw7/eV84JAQ9VK0IzTdVxxXeS4WKV2fBM1KfcN1UnNURU4tgHpzYCIqaBlYr3bKBU f0eQ== 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=B87URmk8FxmkzbOiUN33pM2ksJFStfqzKpKRhu9JNSU=; b=INtd+QgqriiOtGYPlq+z5q6X6D6UlwW2jmegJkJWMnbtGVViWtsZgRr5Jqec3B+2EB Adq0KNVJldqteMVZzZo+Ok1RELNvtdUA1g0RHBGDxIQDmeOwZ2RF6H1CiX7hkxIpPjjW gzFLxvkaze7Z6U09j2LNoRXOa4L6deSgx9RZsGAeZhA8w+qXjLn9/F3RmBf1SkqvK7kV Zvbai3cOrMM2jbuKt6f4Re87TfCg/mx5Enb9ZAgWh0jkKrbeojYI8bxWE1NotjHBn6OO 2JOEkaqXGia2u0FOeKZEn6VCGSZ3cDRp86FRxte/IXK9AJXltSdq7ghpecMrHRx8vXqC Je0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oo2kszdB; 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 i12si40331805plt.213.2019.01.06.22.43.55; Sun, 06 Jan 2019 22:43:55 -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=oo2kszdB; 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 S1726579AbfAGGny (ORCPT + 5 others); Mon, 7 Jan 2019 01:43:54 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:39026 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbfAGGny (ORCPT ); Mon, 7 Jan 2019 01:43:54 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x076h9P6055205; Mon, 7 Jan 2019 00:43:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546843389; bh=B87URmk8FxmkzbOiUN33pM2ksJFStfqzKpKRhu9JNSU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oo2kszdBwPqlwhPG4KleDRQm6FGyLLBKHdbj86Lru+uQIeFfDSLk4kPqTXBJfT+Gy F2hvfWDI2ZOd0GmCO2b+wclg7SDMeWBQHv6BLZOb8sKTtbCYg7+lREaj33Gp/Hzz2y i7cOAuqGlVFYKHSQSPV458uL9N9iY62k7JdSevos= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x076h9oK038338 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Jan 2019 00:43:09 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE104.ent.ti.com (10.64.6.25) 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:09 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE106.ent.ti.com (10.64.6.27) 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:09 -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 x076gfo2002672; Mon, 7 Jan 2019 00:43:05 -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 05/15] PCI: rockchip: Populate ->get_features() dw_pcie_ep_ops Date: Mon, 7 Jan 2019 12:11:38 +0530 Message-ID: <20190107064148.10152-6-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 Rockchip PCIe endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/pcie-rockchip-ep.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.17.1 diff --git a/drivers/pci/controller/pcie-rockchip-ep.c b/drivers/pci/controller/pcie-rockchip-ep.c index b8163c56a142..9b60ad323ac7 100644 --- a/drivers/pci/controller/pcie-rockchip-ep.c +++ b/drivers/pci/controller/pcie-rockchip-ep.c @@ -505,6 +505,18 @@ static int rockchip_pcie_ep_start(struct pci_epc *epc) return 0; } +static const struct pci_epc_features rockchip_pcie_epc_features = { + .linkup_notifier = false, + .msi_capable = true, + .msix_capable = false, +}; + +static const struct pci_epc_features* +rockchip_pcie_ep_get_features(struct pci_epc *epc, u8 func_no) +{ + return &rockchip_pcie_epc_features; +} + static const struct pci_epc_ops rockchip_pcie_epc_ops = { .write_header = rockchip_pcie_ep_write_header, .set_bar = rockchip_pcie_ep_set_bar, @@ -515,6 +527,7 @@ static const struct pci_epc_ops rockchip_pcie_epc_ops = { .get_msi = rockchip_pcie_ep_get_msi, .raise_irq = rockchip_pcie_ep_raise_irq, .start = rockchip_pcie_ep_start, + .get_features = rockchip_pcie_ep_get_features, }; static int rockchip_pcie_parse_ep_dt(struct rockchip_pcie *rockchip,