Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set pcie link speed before unreset, not after #6487

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

P33M
Copy link
Contributor

@P33M P33M commented Nov 22, 2024

Trial fix for #6484

If autonomous speed negotiation is unreliable then brcm_pcie_set_gen()
can be used to override/limit this behaviour. However, setting the limit
after the linkup poll means the link can temporarily enter a bad speed
which may result in link failure. Move the speed setup to just prior to
releasing perst_n.

Fixes: 0693b42 ("PCI: brcmstb: Split post-link up initialization to brcm_pcie_start_link()")

Signed-off-by: Jonathan Bell <[email protected]>
@ElDavoo
Copy link

ElDavoo commented Nov 22, 2024

Works perfectly, many thanks.

@pelwell pelwell merged commit 91df66d into raspberrypi:rpi-6.12.y Nov 22, 2024
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 25, 2024
kernel: Set pcie link speed before unreset, not after
See: raspberrypi/linux#6487

kernel: vc4 / HDMI fixes for 6.12
See: raspberrypi/linux#6485
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 25, 2024
kernel: Set pcie link speed before unreset, not after
See: raspberrypi/linux#6487

kernel: vc4 / HDMI fixes for 6.12
See: raspberrypi/linux#6485
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants