From patchwork Mon May 14 16:17:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 913079 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@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=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="jFzJWfG5"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40l5Tv5MJsz9rxs for ; Tue, 15 May 2018 02:18:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932278AbeENQRl (ORCPT ); Mon, 14 May 2018 12:17:41 -0400 Received: from smtprelay6.synopsys.com ([198.182.37.59]:38184 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932668AbeENQRj (ORCPT ); Mon, 14 May 2018 12:17:39 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 37DF31E073A; Mon, 14 May 2018 18:17:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1526314658; bh=zbAixt2vAqBiADHc6PvSCwR2zk1n7MQlDVhyeUJ94Uk=; h=From:To:Cc:Subject:Date:From; b=jFzJWfG5eVj+fgokGbM/pGL1IyF22bi+fkl5t2hK3J6K3L4KxsjxXJDM4phXd7FvG 6WoJd3r/fL6p4SnhX6NL6mxqYtYsYwbCH7OAvr6TDQix2110ZQBQguJntmdNI7CCq1 snt1RiCwuvCBQ0MWA1ih5nr2Dcu9ZkCcC4AwaimUXgxtSXhugEosc+ij1GIY3VnioB nEpRcq4u90sk8FS03Iaw9JFraqiDkbNI+JRo7L/AaLrccMIuBItA8hFA+Fn+NbFQdO AK3whMB6mrUbQInHUo15q96NGkGQtjxJnRw5y2X+iZuSxuwOkpunSMXEXZyKSfpycn 9WQwLS0oYDJyg== Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 540B83F3B; Mon, 14 May 2018 09:17:37 -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 A0F453D378; Mon, 14 May 2018 17:17:36 +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: Mon, 14 May 2018 17:17:24 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@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(-)