Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3451127imu; Mon, 14 Jan 2019 03:17:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4F0rQndo7bTnwnoiCt/s5t5E8IRcjzTyfB+mLzeyd0zjuQEYDsrAfZJKD+9A2gdYBeAcbj X-Received: by 2002:a62:2b8b:: with SMTP id r133mr24844435pfr.246.1547464658404; Mon, 14 Jan 2019 03:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464658; cv=none; d=google.com; s=arc-20160816; b=vHoYmYQ9/cZreUx9Df7GVM64wdfy4DMyx/BeLRO/mD4bfJKiMoKJpM5reaAiKwqyiY e4YW8upFquAlxMQ1b+iIIXNOj09iY+kLQ0QXgUB/TR9T2MK/8Y3PNO0BbN8z8N9K5sn7 /ipVTL03wmn6mC8co0JyE/utF829O2nfH61FXK55/sZDf3TQCjymKJ/ykXCA4UeK8wkw Ffrje8fQyC0O0zIZBUiKPq8YiJVofrP/UweZW1LY1k95vHg/fEOHH5iGglkujSc7p1Nk hm8HuOpUM6A54EKTB9j2Sd/tDYWE3JqE5gBfX8LV0Ko2gLB94+GurLWYoWj3F34xPgAn 7Ndw== 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=y+FNvirgawTXo0inDdLGBW2UpCK2OQcyU0CMb86fbaWHldhHkQ2nh402Grc7irn1Ko vBiMEYepFRvzARn1WLxdoqj8tuv6AZaoMAcklUU+BxaMw5VPWLm8M6Fn1iUzTkmP8cAO mIgZBqiWOUbcuCLd7HF/fgnpgE3njmQVbvjeDSHpyQE2TVve1f62kmPEJzHZPd1fZI0/ +4f1xLhjvhiXGYcneK1atKdfEBSYMKxCnnPtp+2/PUCXCaY0MX140dCbjSBG96eS3MqD cjyx/cSxhJY/K7SBdxXp5zqadlP5f0dc6spK7hTN1p1L9VJ8NJhjrX/LXw7q+bWK89XN LdJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CPytDNn3; 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 r10si104779pgg.143.2019.01.14.03.17.22; Mon, 14 Jan 2019 03:17:38 -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=CPytDNn3; 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 S1726741AbfANLQO (ORCPT + 99 others); Mon, 14 Jan 2019 06:16:14 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45310 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbfANLQN (ORCPT ); Mon, 14 Jan 2019 06:16:13 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0EBFx5x112680; Mon, 14 Jan 2019 05:15:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547464559; bh=TmIM90if+baASLKYtEih7oqZRQj9lMMND6SlULCYPWw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CPytDNn3xx+IvTTGlU+bZhR6tAguBafWGQ+k85DMhgW8OG02CXCtUPgG+BHjxRyeW BEnifF/fqeF4Ba+1AOUAhst5WR8DHgSzHRrccJOz0wKQOGqXVyjUIhTRq/08tNu5qr YY/AftGdx3hZrSPIZRtx3I24eHxUcGNvVZTrA4Q4= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0EBFxYZ023584 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 05:15:59 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE100.ent.ti.com (10.64.6.21) 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:15:58 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE101.ent.ti.com (10.64.6.22) 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:15:58 -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 x0EBFd1W011560; Mon, 14 Jan 2019 05:15:55 -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 04/15] PCI: pci-dra7xx: Populate ->get_features() dw_pcie_ep_ops Date: Mon, 14 Jan 2019 16:45:02 +0530 Message-ID: <20190114111513.21618-5-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 Content-Type: text/plain 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 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(+) 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, -- 2.17.1