HomeFreeBSD

qoriq_dw_pci: Fix typo in link status checking code

Description

qoriq_dw_pci: Fix typo in link status checking code

On some DesignWare PCIe controllers accessing config registers of slots
whose link is down triggers a SError. Because of that we need to check the
link status before any acceses config space.
Due to a typo link was always reported up.
This fixes a SError that occured during boot on LS1028A-RDB.

Obtained from: Semihalf
Reviewed by: wma
Differential revision: https://reviews.freebsd.org/D31509

Details

Provenance
bag_semihalf.comAuthored on Aug 31 2021, 4:22 AM
wmaCommitted on Aug 31 2021, 4:22 AM
Reviewer
wma
Differential Revision
D31509: qoriq_dw_pci: Fix typo in link status checking code
Parents
rG315bca194a14: Fix an early return in ctld UCL parser
Branches
Unknown
Tags
Unknown