mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
bnx2x: Force fundamental reset for EEH recovery
commit da293700568ed3d96fcf062ac15d7d7c41377f11 upstream. EEH recovery for bnx2x based adapters is not reliable on all Power systems using the default hot reset, which can result in an unrecoverable EEH error. Forcing the use of fundamental reset during EEH recovery fixes this. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net> [lizf: Backported to 3.4: adjust context] Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
ec3be97f93
commit
89cd766595
1 changed files with 4 additions and 0 deletions
|
@ -10934,6 +10934,10 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
|
|||
/* clean indirect addresses */
|
||||
pci_write_config_dword(bp->pdev, PCICFG_GRC_ADDRESS,
|
||||
PCICFG_VENDOR_ID_OFFSET);
|
||||
|
||||
/* Set PCIe reset type to fundamental for EEH recovery */
|
||||
pdev->needs_freset = 1;
|
||||
|
||||
/*
|
||||
* Clean the following indirect addresses for all functions since it
|
||||
* is not used by the driver.
|
||||
|
|
Loading…
Reference in a new issue