Page MenuHomeFreeBSD

Make Marvell mv_pci.c driver generic
ClosedPublic

Authored by mkm_semihalf.com on Mar 19 2018, 5:28 PM.
Tags
Referenced Files
Unknown Object (File)
Mon, Apr 21, 11:41 AM
Unknown Object (File)
Sun, Apr 20, 10:52 AM
Unknown Object (File)
Fri, Apr 18, 9:28 AM
Unknown Object (File)
Mar 10 2025, 1:11 AM
Unknown Object (File)
Mar 10 2025, 12:10 AM
Unknown Object (File)
Mar 9 2025, 10:39 PM
Unknown Object (File)
Feb 22 2025, 2:19 PM
Unknown Object (File)
Feb 22 2025, 2:08 PM
Subscribers

Details

Summary

PCI ports differ between Marvell SoCs, but have the same compatible in FDT.
Identification is made based on parent compatible during attach.
For ArmadaXP skipping enable procedure is necessary. To achieve it
sc_skip_enable_procedure flag is used.
For Armada38x find root procedure is necessary. For other SoCs root link is
always at slot 0. sc_enable_find_root_slot flag is used to select proper
behaviour.
Marvell armv5 platforms does not support msi.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/arm/mv/mv_pci.c
558 ↗(On Diff #40445)

Why a goto here when there's already an if statement you could add this check to?

1060 ↗(On Diff #40445)

This comment should be indented

mkm_semihalf.com marked 2 inline comments as done.
This revision is now accepted and ready to land.Mar 21 2018, 1:50 PM
This revision was automatically updated to reflect the committed changes.