devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Lin <shawn.lin@rock-chips.com>
To: Bjorn Helgaas <bhelgaas@google.com>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>,
	devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
	Heiko Stuebner <heiko@sntech.de>,
	linux-pci@vger.kernel.org, Shawn Lin <shawn.lin@rock-chips.com>
Subject: [PATCH 0/6] Add endpoint driver for Rockchip PCIe controller
Date: Wed,  7 Feb 2018 10:47:24 +0800	[thread overview]
Message-ID: <1517971650-61555-1-git-send-email-shawn.lin@rock-chips.com> (raw)


Patch 1 firstly moves the whole Rockchip PCIe host driver from
drivers/pci/host to a new folder, driver/pci/rockchip/, and renames
pcie-rockchip.c to pcie-rockchip-host.c. It also updates the
Kconfig/Makefile etc, to repect this change.

Then patch 2 and patch 3 are trying to spilt out some common code in
preparation for adding endponit controller driver support.

Patch 4 rename rockchip-pcie.txt to rockchip-pcie-host.txt and update
the compatible of_device_id. To keep the backward compatibility for
old dtb, we add new "rockchip,rk3399-pcie-host". That means DT uses
"rockchip,rk3399-pcie" would be bound to host controller driver by
default.

Patch 5 adds endpoint controller driver support as well as the new
documentation, rockchip-pcie-ep.txt, introduced by patch 6.



Shawn Lin (6):
  PCI: rockchip: Create individual folder for rockchip drivers
  PCI: rockchip: Split out common function to parse DT
  PCI: rockchip: Spilt out common function to init controller
  PCI: rockchip: Add rockchip,rk3399-pcie-host compatible
  PCI: rockchip: Add Endpoint controller driver for Rockchip PCIe
    controller
  dt-bindings: PCI: rockchip: Add DT bindings for Rockchip PCIe endpoint
    controller

 .../devicetree/bindings/pci/rockchip-pcie-ep.txt   |  60 ++
 .../{rockchip-pcie.txt => rockchip-pcie-host.txt}  |   3 +-
 MAINTAINERS                                        |   4 +-
 drivers/pci/Kconfig                                |   1 +
 drivers/pci/Makefile                               |   2 +
 drivers/pci/host/Kconfig                           |  11 -
 drivers/pci/host/Makefile                          |   1 -
 drivers/pci/rockchip/Kconfig                       |  32 ++
 drivers/pci/rockchip/Makefile                      |   4 +
 drivers/pci/rockchip/pcie-rockchip-ep.c            | 629 +++++++++++++++++++++
 .../pcie-rockchip-host.c}                          | 595 +------------------
 drivers/pci/rockchip/pcie-rockchip.c               | 418 ++++++++++++++
 drivers/pci/rockchip/pcie-rockchip.h               | 343 +++++++++++
 13 files changed, 1507 insertions(+), 596 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pci/rockchip-pcie-ep.txt
 rename Documentation/devicetree/bindings/pci/{rockchip-pcie.txt => rockchip-pcie-host.txt} (98%)
 create mode 100644 drivers/pci/rockchip/Kconfig
 create mode 100644 drivers/pci/rockchip/Makefile
 create mode 100644 drivers/pci/rockchip/pcie-rockchip-ep.c
 rename drivers/pci/{host/pcie-rockchip.c => rockchip/pcie-rockchip-host.c} (61%)
 create mode 100644 drivers/pci/rockchip/pcie-rockchip.c
 create mode 100644 drivers/pci/rockchip/pcie-rockchip.h

-- 
1.9.1

             reply	other threads:[~2018-02-07  2:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07  2:47 Shawn Lin [this message]
2018-02-07  2:47 ` [PATCH 1/6] PCI: rockchip: Create individual folder for rockchip drivers Shawn Lin
2018-02-07  2:47 ` [PATCH 2/6] PCI: rockchip: Split out common function to parse DT Shawn Lin
     [not found] ` <1517971650-61555-1-git-send-email-shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-02-07  2:47   ` [PATCH 3/6] PCI: rockchip: Spilt out common function to init controller Shawn Lin
2018-02-07  2:47 ` [PATCH 4/6] PCI: rockchip: Add rockchip,rk3399-pcie-host compatible Shawn Lin
     [not found]   ` <1517971650-61555-5-git-send-email-shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-02-09 23:38     ` Rob Herring
2018-02-10  8:10       ` Shawn Lin
2018-02-07  2:50 ` [PATCH 5/6] PCI: rockchip: Add Endpoint controller driver for Rockchip PCIe controller Shawn Lin
2018-02-07  2:50 ` [PATCH 6/6] dt-bindings: PCI: rockchip: Add DT bindings for Rockchip PCIe endpoint controller Shawn Lin
     [not found]   ` <1517971826-65350-1-git-send-email-shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-02-12 14:17     ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1517971650-61555-1-git-send-email-shawn.lin@rock-chips.com \
    --to=shawn.lin@rock-chips.com \
    --cc=bhelgaas@google.com \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).