From patchwork Tue May 15 07:13:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 913458 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="PncrYDEz"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40lTMr5PYCz9s1w for ; Tue, 15 May 2018 17:14:32 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbeEOHNh (ORCPT ); Tue, 15 May 2018 03:13:37 -0400 Received: from smtprelay6.synopsys.com ([198.182.37.59]:41328 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbeEOHNg (ORCPT ); Tue, 15 May 2018 03:13:36 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 676251E073A; Tue, 15 May 2018 09:13:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1526368414; bh=zbAixt2vAqBiADHc6PvSCwR2zk1n7MQlDVhyeUJ94Uk=; h=From:To:Cc:Subject:Date:From; b=PncrYDEzGZOUqE5D6TjiOppmUMrJxRyhEideig9kkMcjWRp/SMe6QWyH50qoRR0eM SzwP9s6KhzZBGrRGmt+LzZBba5LH4ZCdM531r6T19BNzq1eqbf/xiG5wtnTnQgGS0K aj0ytZmYfXZb7zux5q+c0c/Lo/LFdCB7HlZLDX2tPbG8KYGao5KFmiM1Ur3jbDbtqH nKrKXMPQtID32wFm6QAlkBh4SCbifpkIZMwyvD2JEXhzu7zbsn5+qOA4yu0ijjlK/6 xITNkMcCt546BGK5K9Qv+11SDuEAkKA2YCKot2St0h7cX+X9jnfjX79nIfew6RRBR3 ME5wMRqjyu6hQ== Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 7E4AC3C69; Tue, 15 May 2018 00:13:33 -0700 (PDT) Received: from UbuntuMate-64Bits.internal.synopsys.com (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id D3ED38741; Tue, 15 May 2018 08:13:32 +0100 (WEST) From: Gustavo Pimentel To: bhelgaas@google.com, lorenzo.pieralisi@arm.com, Joao.Pinto@synopsys.com, jingoohan1@gmail.com, kishon@ti.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Gustavo Pimentel Subject: [PATCH 0/4] Add DesignWare EP support Date: Tue, 15 May 2018 08:13:25 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The PCIe controller dual mode is capable of operating in RC mode as well as EP mode by configuration option. Till now only RC mode was supported, with this patch is add EP support to the DesignWare driver. Gustavo Pimentel (4): bindings: PCI: designware: Example update PCI: dwc: Add support for EP mode bindings: PCI: designware: Add support for EP in DesignWare driver misc: pci_endpoint_test: Add DesignWare EP entry .../devicetree/bindings/pci/designware-pcie.txt | 24 +++- drivers/misc/pci_endpoint_test.c | 1 + drivers/pci/dwc/Kconfig | 41 ++++-- drivers/pci/dwc/pcie-designware-ep.c | 3 + drivers/pci/dwc/pcie-designware-plat.c | 149 +++++++++++++++++++-- drivers/pci/endpoint/functions/pci-epf-test.c | 7 + include/linux/pci-epc.h | 8 ++ 7 files changed, 206 insertions(+), 27 deletions(-) Reviewed-by: Joao Pinto