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

Apply the FLR reset quirk before calling the reset too #1008

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 568410e64ce6..9b77e6182500 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -4194,6 +4194,70 @@ static int reset_hinic_vf_dev(struct pci_dev *pdev, bool probe)
@@ -4194,6 +4194,74 @@ static int reset_hinic_vf_dev(struct pci_dev *pdev, bool probe)
return 0;
}

Expand Down Expand Up @@ -108,6 +108,10 @@ index 568410e64ce6..9b77e6182500 100644
+{
+ int ret;
+
+ /* Ensure AF FLR is visible before using it */
+ if (!probe)
+ fixup_intel_i219lm_flr(dev);
+
+ /* Call normal FLR, but re-apply fixup_intel_i219lm_flr() afterwards. */
+ ret = pci_af_flr(dev, probe);
+ if (ret)
Expand Down