From patchwork Mon Jan 14 11:15:02 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: 155438 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3536256jaa; Mon, 14 Jan 2019 03:16:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN63ZNgY546x3K/+G1vZhPWxOCkIjWyQtkQLwTYG1RoVe8+9uI6wPDPns7ieKPmkj9p6+U+2 X-Received: by 2002:a62:5910:: with SMTP id n16mr24565147pfb.128.1547464575547; Mon, 14 Jan 2019 03:16:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464575; cv=none; d=google.com; s=arc-20160816; b=dXyqnPTdNlwoOn72YbWPN5b4GcmtsxQLkziA12yTBFF4CjiFk8wjdb2A9vFn5/vU1v uoKRHS4Ghl7gwBHXW0TWGkPQXlnIs/j123Sof41cEsMFxUHiHW1ZGHPgWNINrcXJAQ+S 3uh2VrRJBD7HOR/wJTbMkc5hJTK5KMIe1vsdMxrIsw48OSf9u6ry9KWB554cgTq7ZnbN 8lFNKJDq+jpPEljqegSaAxEt9q39YSSdFbHyLpVVvcpi2Uwelw/CzRSMuA+f/heujE8/ GC+OxONpD6rIboXHJB15lbEi4xzCWiK76XFEUzVVVy6+c8/uW0lDbNNEUhF5HhwHaokG omzA== 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 n4si99599pgm.487.2019.01.14.03.16.15; Mon, 14 Jan 2019 03:16:15 -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 S1726745AbfANLQO (ORCPT + 31 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 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(+) -- 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,