mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
bnxt_en: Re-enable SRIOV during resume.
[ Upstream commit59ae210173] If VFs are enabled, we need to re-configure them during resume because firmware has been reset while resuming. Otherwise, the VFs won't work after resume. Fixes:c16d4ee0e3("bnxt_en: Refactor logic to re-enable SRIOV after firmware reset detected.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3c8cf20c47
commit
a88141f15a
@@ -12115,6 +12115,8 @@ static int bnxt_resume(struct device *device)
|
||||
|
||||
resume_exit:
|
||||
bnxt_ulp_start(bp, rc);
|
||||
if (!rc)
|
||||
bnxt_reenable_sriov(bp);
|
||||
rtnl_unlock();
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user