Skip to content
Commit f969b781 authored by Ionut Vicovan's avatar Ionut Vicovan Committed by Zhantao Tang
Browse files

pcie: dw: Allow several attempts to enable R/W access to R/O registers

commit 0b76731696c17e9bae9f61ba568fc73aeaa83244 from
https://source.codeaurora.org/external/autobsps32/linux



On S32G3 it was observed that in some situations (e.g. when both PCIe
controllers are enabled on S32G3), the first attempts to enable R/W access
to DBI R/O registers (from MISC_CONTROL_1) fail. In particular, for S32G3
the first 10 to 30 attempts fail, which cause the configuration of the
affected controller to be incomplete and subsequent probing of some
downstream devices (e.g. SSDs) fail.

Although this change affects driver code for all Designware based
controllers, in fact there is no functional change for those not
affected by the issue, as only one attempt is done to set register
MISC_CONTROL_1 (same in the original code).

Issue: ALB-8914

Signed-off-by: default avatarIonut Vicovan <Ionut.Vicovan@nxp.com>
Signed-off-by: default avatarZhantao Tang <zhantao.tang@windriver.com>
parent e0747fd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment