linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v4 0/7] Reconstruct rockchip's PCIe and PCIe-PHY driver for per-lane PHY model
@ 2017-07-19  7:22 Shawn Lin
  2017-07-19  7:22 ` [RFC PATCH v4 1/7] PCI: rockchip: split out rockchip_pcie_get_phys Shawn Lin
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Shawn Lin @ 2017-07-19  7:22 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Bjorn Helgaas
  Cc: Rob Herring, Heiko Stuebner, linux-pci, linux-rockchip,
	Brian Norris, Jeffy Chen, Shawn Lin


Hi Kishon,

Could you kindly have a look at this patchset and give a 'yes' or 'no'
to this solution? Your opinion is the most important ont for it, otherwise
we should invent other bits to implement it.

This patchset is trying to reconstruct PCIe and PCIe-PHY driver
for rockchip platform in order to support per-lane PHY mode. And
we could idle the inactive lane(s) finally.

We deprecate the legacy PHY mode but the code could still
support it in order not to break backware compatibility of DTB. And I
organize the patches carefully so that we don't introduce git-bisect
issue.

Patchset was reviewed by Brian and fully tested by Jeffy. Rob acked
patch 6 & 7. Patch 5 for DTS changes for Rockchip part still need
ack from Heiko, and it would be fine for Heiko to pick it up after
pcie and pcie-phy changes got merged.


Changes in v4:
- use err variable to check return value of
  rockchip_pcie_get_phys
- add Brian's tag
- move rockchip_pcie_get_phys to where it stands in
  patch 1.
- print PHY index in err output log
- return u8 for rockchip_pcie_lane_map

Changes in v3:
- kill rockchip_pcie_manipulate_phys and related stuff
- use phys array
- improve the commit msg
- remove unnecessary forward declaration
- keep mutex inside struct rockchip_pcie_phy
- fix wrong check of args number
- move de-idle lanes after deasserting the reset
- use cached lanes_map to avoid powering off inactive
  lanes twice
- rename the commit tile

Changes in v2:
- deprecate legacy PHY model
- improve rockchip_pcie_phy_of_xlate
- fix wrong calculation of pwr_cnt and add new init_cnt
- add internal locking
- introduce per-lane data to simply the code

Shawn Lin (7):
  PCI: rockchip: split out rockchip_pcie_get_phys
  PCI: rockchip: introduce per-lanes PHYs support
  phy: rockcip-pcie: reconstruct driver to support per-lane PHYs
  PCI: rockchip: idle the inactive PHY(s)
  arm64: dts: rockchip: convert PCIe to use per-lane PHYs for rk3339
  dt-bindings: PCI: rockchip: convert to use per-lane PHY model
  dt-bindings: phy: convert to use per-lane Rockchip PCIe PHY

 .../devicetree/bindings/pci/rockchip-pcie.txt      |  25 ++++-
 .../devicetree/bindings/phy/rockchip-pcie-phy.txt  |   7 +-
 arch/arm64/boot/dts/rockchip/rk3399.dtsi           |   8 +-
 drivers/pci/host/pcie-rockchip.c                   | 122 ++++++++++++++++----
 drivers/phy/rockchip/phy-rockchip-pcie.c           | 124 ++++++++++++++++++---
 5 files changed, 245 insertions(+), 41 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-07-19  9:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-19  7:22 [RFC PATCH v4 0/7] Reconstruct rockchip's PCIe and PCIe-PHY driver for per-lane PHY model Shawn Lin
2017-07-19  7:22 ` [RFC PATCH v4 1/7] PCI: rockchip: split out rockchip_pcie_get_phys Shawn Lin
2017-07-19  7:47   ` Kishon Vijay Abraham I
2017-07-19  7:22 ` [RFC PATCH v4 2/7] PCI: rockchip: introduce per-lanes PHYs support Shawn Lin
2017-07-19  7:48   ` Kishon Vijay Abraham I
2017-07-19  7:22 ` [RFC PATCH v4 3/7] phy: rockcip-pcie: reconstruct driver to support per-lane PHYs Shawn Lin
2017-07-19  7:50   ` Kishon Vijay Abraham I
2017-07-19  7:54     ` Shawn Lin
2017-07-19  8:08   ` Kishon Vijay Abraham I
2017-07-19  9:36     ` Shawn Lin
2017-07-19  9:37       ` Kishon Vijay Abraham I
2017-07-19  7:22 ` [RFC PATCH v4 4/7] PCI: rockchip: idle the inactive PHY(s) Shawn Lin
2017-07-19  7:50   ` Kishon Vijay Abraham I
2017-07-19  7:27 ` [RFC PATCH v4 5/7] arm64: dts: rockchip: convert PCIe to use per-lane PHYs for rk3339 Shawn Lin
2017-07-19  7:27   ` [RFC PATCH v4 6/7] dt-bindings: PCI: rockchip: convert to use per-lane PHY model Shawn Lin
2017-07-19  7:27   ` [RFC PATCH v4 7/7] dt-bindings: phy: convert to use per-lane Rockchip PCIe PHY Shawn Lin

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).