pds_core: delete VF dev on reset
authorShannon Nelson <shannon.nelson@amd.com>
Fri, 16 Feb 2024 22:29:51 +0000 (14:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2024 10:29:07 +0000 (10:29 +0000)
commit2dac60e062340c1e5c975ad6465192d11c40d47a
treee53ec59fa95a5f642beb8182d2fee275f329d7b6
parentd740f4be7cf0faded598fe43e2f472c47230c298
pds_core: delete VF dev on reset

When the VF is hit with a reset, remove the aux device in
the prepare for reset and try to restore it after the reset.
The userland mechanics will need to recover and rebuild whatever
uses the device afterwards.

Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/pds_core/auxbus.c
drivers/net/ethernet/amd/pds_core/main.c