Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3561491imu; Mon, 17 Dec 2018 23:58:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/UirRMg95yqK45jZDOJDh/KjPIyNbdIWrZHHg4eznf9g1ksSZU6TbyQC6/fgQXyImv+B9oc X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr15565351plm.313.1545119888422; Mon, 17 Dec 2018 23:58:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545119888; cv=none; d=google.com; s=arc-20160816; b=U9Dok6AcRWZsLNKjJWawbgoiKzA5dcrVSdW0eXWele5PBevTKuis/lYc3/Xywb4ATD yg0+SZNbrJ23Q9WduQPKihfvyU3zZnwBHB68FT4lfX8BNWORoLGZr/pPQHy4ELLU2f5K v078XtTgaEozZE1iqqqbYFYgQCEJMKZxvu0IzKcUKf2rSE1oa+afGxOZB9uQVQA9j1bN dL8JgDePQ5TRGWpzTogAjIt4s26AaxAydTp1d9A9ZUzk/QefV+bCoOgaGvV4JBCUKZCb /tuXCQKtS2xofUtMg0mMBqWGB5RQiPReRyZt6jz5nHwLhOcAUvVGOD3VBbo/W8hZZ6/r j9IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=KAz/s2JGRWFNtIB3sUVGvHeOzFFEoprPDckr0R/wRBQ=; b=IkNjW19Hpt9pCF/CUzNJc7cHIwjov+azSNBIS9zn94XavH2Jo56aVcC4c17QpK/vHo TU2QM6bPQCF4bI1K99GTYhD6unAhw7CipwzEDyRmIPb2hQa8U90FBGtTqGQTZlYS3+5M tjO5zonqgZWc2zICqi6bIWXuOlYS0GfaZgEVlrsVRk82Z4Du9MHlqySgZ/rSEpRz7AYZ ZQSG3iToHxD5K3U/4nwTZ+J9v2WCJmofs2c0d0vsy0t/mpzQq9OpNoRy1qmfD2fz/2CT bnxMEw6vp1g4Ck8OddwuYdBJoGbTzl5wwN4IiS0HCwVuEALdoDKGzFg3yxL/kNHZKLCi Gmlg== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si12276988plp.147.2018.12.17.23.57.52; Mon, 17 Dec 2018 23:58:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbeLRH47 (ORCPT + 99 others); Tue, 18 Dec 2018 02:56:59 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:34324 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbeLRH46 (ORCPT ); Tue, 18 Dec 2018 02:56:58 -0500 Received: from droid10.amlogic.com (10.18.11.213) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Tue, 18 Dec 2018 15:57:13 +0800 From: Hanjie Lin To: Lorenzo Pieralisi , Bjorn Helgaas CC: Hanjie Lin , Kevin Hilman , Carlo Caione , Jerome Brunet , Rob Herring , Gustavo Pimentel , Shawn Lin , Philippe Ombredanne , Cyrille Pitchen , , , , , Yixun Lan , Liang Yang , Jianxin Pan , Qiufang Dai , Jian Hu , Subject: [PATCH v7 0/2] add the Amlogic Meson PCIe controller driver Date: Tue, 18 Dec 2018 15:56:48 +0800 Message-ID: <1545119811-26911-1-git-send-email-hanjie.lin@amlogic.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.11.213] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. This patchset add the driver and dt-bindings of the controller. Changes since v7: [6] - include files in alphabetical order - get rid of unused MACROs and variables - optimize meson_pcie_link_up() while loop Changes since v6: [5] - fix bad usage of ERR_PTR(ENXIO) - fix meson_pcie_rd_own_conf() when read PCI_CLASS_DEVICE reg Changes since v5: [4] - update MAINTAINER file in alphabetical order - remove meaningless comment - use ERR_PTR function instead of (void *) cast - use is_power_of_2(size) instead of size & (size - 1) - add comment for PCI_CLASS_REVISION register operation Changes since v4: [3] - fix kbuild test robot and compile warnings Changes since v3: [2] - modify subject format - update Kconfig - update MAINTAINER file - add comment and error handle for meson_pcie_get_mem_shared() - drop useless initialization code - add comment for meson_size_to_payload() - optimize meson_pcie_establish_link() return code - optimize meson_pcie_enable_interrupts() redundant function - drop device_attch related code - drop dw_pcie_ops read_dbi and write_dbi function - add error handle for meson_add_pcie_port() when probe Changes since v2: [1] - abandon phy driver, move reset to the controller - use devm_add_action_or_reset() to use clock res - format correcting Changes since v1: [0] - use gpio lib instead open code - move 'apb' and 'port' reset from phy driver - format correcting [0] : https://lkml.kernel.org/r/1534227522-186798-1-git-send-email-hanjie.lin@amlogic.com [1] : https://lkml.kernel.org/r/1535096165-45827-1-git-send-email-hanjie.lin@amlogic.com [2] : https://lkml.kernel.org/r/1537509820-52040-1-git-send-email-hanjie.lin@amlogic.com [3] : https://lkml.kernel.org/r/1538999834-156423-3-git-send-email-hanjie.lin@amlogic.com [4] : https://lkml.kernel.org/r/1539049990-30810-1-git-send-email-hanjie.lin@amlogic.com [5] : https://lkml.kernel.org/r/1542876836-191355-1-git-send-email-hanjie.lin@amlogic.com Yue Wang (2): dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller PCI: amlogic: Add the Amlogic Meson PCIe controller driver .../devicetree/bindings/pci/amlogic,meson-pcie.txt | 70 +++ MAINTAINERS | 7 + drivers/pci/controller/dwc/Kconfig | 10 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pci-meson.c | 595 +++++++++++++++++++++ 5 files changed, 683 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt create mode 100644 drivers/pci/controller/dwc/pci-meson.c -- 2.7.4