mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
i40evf: enable bus master after reset
If the VF is reset via VFLR, the device will be knocked out of bus master mode, and the driver will fail to recover from the reset. Fix this by enabling bus mastering after every reset. In a non-VFLR case, the bus master bit will not be disabled, and this call will have no effect. Change-ID: Id515859ac7a691db478222228add6d149e96801a Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
1d73b2db4b
commit
509a447ae8
@ -1837,6 +1837,7 @@ static void i40evf_reset_task(struct work_struct *work)
|
||||
break;
|
||||
msleep(I40EVF_RESET_WAIT_MS);
|
||||
}
|
||||
pci_set_master(adapter->pdev);
|
||||
/* extra wait to make sure minimum wait is met */
|
||||
msleep(I40EVF_RESET_WAIT_MS);
|
||||
if (i == I40EVF_RESET_WAIT_COUNT) {
|
||||
|
Loading…
Reference in New Issue
Block a user