Skip to content

Commit 95e3832

Browse files
emuslnkuba-moo
authored andcommitted
pds_core: no reset command for VF
The VF doesn't need to send a reset command, and in a PCI reset scenario it might not have a valid IO space to write to anyway. Fixes: 523847d ("pds_core: add devcmd device interfaces") Signed-off-by: Shannon Nelson <[email protected]> Reviewed-by: Brett Creeley <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e48b894 commit 95e3832

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/amd/pds_core

1 file changed

+2
-1
lines changed

drivers/net/ethernet/amd/pds_core/core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ void pdsc_teardown(struct pdsc *pdsc, bool removing)
464464
{
465465
int i;
466466

467-
pdsc_devcmd_reset(pdsc);
467+
if (!pdsc->pdev->is_virtfn)
468+
pdsc_devcmd_reset(pdsc);
468469
pdsc_qcq_free(pdsc, &pdsc->notifyqcq);
469470
pdsc_qcq_free(pdsc, &pdsc->adminqcq);
470471

0 commit comments

Comments
 (0)