From patchwork Wed Feb 15 13:18:09 2017 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: 94011 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2025922qgi; Wed, 15 Feb 2017 05:20:34 -0800 (PST) X-Received: by 10.98.15.21 with SMTP id x21mr36794838pfi.93.1487164834637; Wed, 15 Feb 2017 05:20:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si3742061pli.233.2017.02.15.05.20.34; Wed, 15 Feb 2017 05:20:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751651AbdBONUZ (ORCPT + 25 others); Wed, 15 Feb 2017 08:20:25 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:34807 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbdBONUW (ORCPT ); Wed, 15 Feb 2017 08:20:22 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v1FDIbA8010078; Wed, 15 Feb 2017 07:18:37 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v1FDIV22014652; Wed, 15 Feb 2017 07:18:31 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Wed, 15 Feb 2017 07:18:31 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v1FDIRHK019326; Wed, 15 Feb 2017 07:18:28 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Jingoo Han , , , , , , , CC: , Kishon Vijay Abraham I Subject: [PATCH 00/10] PCI: dwc: Rework and cleanup designware driver Date: Wed, 15 Feb 2017 18:48:09 +0530 Message-ID: <1487164699-30708-1-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series reworks designware driver in preparation for adding endpoint mode support to designware driver. This series was previously sent as part of endpoint support series https://lkml.org/lkml/2017/1/13/562 Validate pci host only in pci-dra7xx. Any help in validating other platforms would be highly appreciated. This series is created after cherrypicking the following patch and then applying pci/host-designware. commit a782b5f986c3fa1cfa7f2b57941200c6a5809242 Author: Murali Karicheri Date: Wed Jan 4 14:32:30 2017 -0500 PCI: designware: Check for iATU unroll only on platforms that use ATU The patches has been pushed to git://git.ti.com/linux-phy/linux-phy.git dwc-rework Kishon Vijay Abraham I (10): PCI: dwc: designware: Move the register defines to designware header file PCI: dwc: *all*: Add platform_set_drvdata PCI: dwc: *all*: Rename cfg_read/cfg_write to read/write PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init PCI: dwc: *all*: Split *struct pcie_port* into host only and core structures PCI: dwc: designware: Parse *num-lanes* property in dw_pcie_setup_rc PCI: dwc: designware: Fix style errors in pcie-designware.c PCI: dwc: Split pcie-designware.c into host and core files PCI: dwc: Create a new config symbol to enable pci dwc host PCI: dwc: Remove dependency of designware to CONFIG_PCI drivers/Makefile | 3 + drivers/pci/Makefile | 3 - drivers/pci/dwc/Kconfig | 39 +- drivers/pci/dwc/Makefile | 1 + drivers/pci/dwc/pci-dra7xx.c | 91 ++-- drivers/pci/dwc/pci-exynos.c | 81 ++-- drivers/pci/dwc/pci-imx6.c | 131 ++--- drivers/pci/dwc/pci-keystone-dw.c | 87 ++-- drivers/pci/dwc/pci-keystone.c | 56 ++- drivers/pci/dwc/pci-keystone.h | 4 +- drivers/pci/dwc/pci-layerscape.c | 93 ++-- drivers/pci/dwc/pcie-armada8k.c | 87 ++-- drivers/pci/dwc/pcie-artpec6.c | 50 +- drivers/pci/dwc/pcie-designware-host.c | 635 ++++++++++++++++++++++++ drivers/pci/dwc/pcie-designware-plat.c | 29 +- drivers/pci/dwc/pcie-designware.c | 823 +++----------------------------- drivers/pci/dwc/pcie-designware.h | 170 +++++-- drivers/pci/dwc/pcie-hisi.c | 57 ++- drivers/pci/dwc/pcie-qcom.c | 72 ++- drivers/pci/dwc/pcie-spear13xx.c | 85 ++-- 20 files changed, 1434 insertions(+), 1163 deletions(-) create mode 100644 drivers/pci/dwc/pcie-designware-host.c -- 1.7.9.5