Skip to content

Armada 3720 comphy native implementation

Marek Behún linux-phy 4 versions – Applied

Status from this message: Applied all, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 10 repliesApplied
  2. v35 patches 4 repliesSuperseded
  3. v26 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches11 repliesSuperseded

Changes in v4 from the cover letter

- addressed Vinod's comments, see
https://lore.kernel.org/linux-phy/20220203223913.41e9f375@thinkpad/T/#u
- changed comment of step 12 in mvebu_a3700_comphy_ethernet_power_on() a little

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/5phy: marvell: phy-mvebu-a3700-comphy: Remove port from driver configurationdrivers/phy/marvell/phy-mvebu-a3700-comphy.c+29 -330 replies
2/5phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementationdrivers/phy/marvell/phy-mvebu-a3700-comphy.c+1215 -1170 replies
3/5Revert "ata: ahci: mvebu: Make SATA PHY optional for Armada 3720"drivers/ata/ahci.h drivers/ata/ahci_mvebu.c drivers/ata/libahci_platform.c+2 -46 replies
4/5Revert "usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada 3720"drivers/usb/host/xhci-mvebu.c drivers/usb/host/xhci-mvebu.h drivers/usb/host/xhci-plat.c +1 more+1 -682 replies
5/5Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware"drivers/pci/controller/pci-aardvark.c+1 -30 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMiquel RaynalDamien Le MoalGreg Kroah-Hartman
1/5R-b
2/5A-b
3/5A-b A-b
4/5A-b A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH phy v4 0/5] Armada 3720 comphy native implementation

Hello Vinod,

this is v4 of series converting A3720 comphy to native kernel implementation.

Tested on Turris MOX and ESPRESSObin (tested all supported PHY modes:
ethernet, PCIe, USB3, SATA).

Changes since v3:
- addressed Vinod's comments, see
https://lore.kernel.org/linux-phy/20220203223913.41e9f375@thinkpad/T/#u
- changed comment of step 12 in mvebu_a3700_comphy_ethernet_power_on() a little

Changes since v2:
- removed device-tree changing patch, Gregory applied it on mvebu/dt64
- changed raw spin lock to ordinary spin lock
- fixed indentation of gbe_phy_init_fix
- use FIELD_PREP() macro

Changes since v1 (all changes in patch 2/6):
- refactored to use GENMASK()
- fixed various register names to conform to Functional Specification
- refactored various register names to have uniform naming
- refactored register access into one function, which decides whether the access should be direct or indirect, so as to not have all these checks done everywhere in the code
- moved around one register definition to have the registers sorted according to their offset
- added comments to some register definitions
- added support for PHY reset() method
- when changing PHY mode, the driver now resets the PHY and its registers to put the PHY in known state
- fixed the power_off() method
- added spinlock guard when accessing PHY Selector register, since it is shared between the PHYs and so the PHY mutex is insufficient
- upon driver probe changed the calls to power_off() to reset()

The original cover letter said:

The RPC calling to ARM Trusted Firmware implementation of Armada 3720 comphy driver caused quite a number of issues (explained more in patch 2).

This series fixes those issues by reimplementing the driver to native kernel implementation.

The last 3 commits revert commits in AHCI, USB, and PCI drivers, that were introduced there because of those issues.

Pali Rohár (5):
phy: marvell: phy-mvebu-a3700-comphy: Remove port from driver
configuration
phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementation Revert "ata: ahci: mvebu: Make SATA PHY optional for Armada 3720" Revert "usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada

    3720"

Revert "PCI: aardvark: Fix initialization with old Marvell's Arm
Trusted Firmware"

 drivers/ata/ahci.h                           |    2 -
 drivers/ata/ahci_mvebu.c                     |    2 +-
 drivers/ata/libahci_platform.c               |    2 +-
 drivers/pci/controller/pci-aardvark.c        |    4 +-
 drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 1350 ++++++++++++++++--
 drivers/usb/host/xhci-mvebu.c                |   42 -
 drivers/usb/host/xhci-mvebu.h                |    6 -
 drivers/usb/host/xhci-plat.c                 |   20 +-
 drivers/usb/host/xhci-plat.h                 |    1 -
 9 files changed, 1226 insertions(+), 203 deletions(-)
Signature · 7 lines
2.34.1


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy