Re: [Intel-wired-lan] [PATCH] ice: wait for reset completion in ice_resume()

Kohei Enju
2026-04-05T18:48:56Z

On 04/02 10:42, Aaron Ma via Intel-wired-lan wrote:
> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
> index 3c36e3641b9e9..a029c247510fd 100644
> --- a/drivers/net/ethernet/intel/ice/ice_main.c
> +++ b/drivers/net/ethernet/intel/ice/ice_main.c
> @@ -5702,6 +5702,16 @@ static int ice_resume(struct device *dev)
> /* Restart the service task */
> mod_timer(&pf->serv_tmr, round_jiffies(jiffies + pf->serv_tmr_period));
>
> + /* Wait for the scheduled reset to finish so that the device is fully
> + * operational before returning. Without this, userspace (e.g.
> + * NetworkManager) may try to open the net device while the
> + * asynchronous reset and rebuild is still in progress, resulting in
> + * "can't open net device while reset is in progress" errors.
> + */

nit:
IIUC, this change is best-effort, since ice_resume() still returns
success even if ice_wait_for_reset() fails. If so, the new comment may
be better phrased to reflect that.

Otherwise, it looks good to me.