On 8/29/24 6:09 PM, Leon Romanovsky wrote: > On Wed, Aug 28, 2024 at 02:09:41PM +0800, Cheng Xu wrote: >> Driver may probe again while hardware is destroying the internal >> resources allocated for previous probing > > How is it possible? > The resources I mentioned is totally unseen to driver, it's something related to our device management part in hypervisor, so it won't cause host resources leak, and the cleanup/reset process may take a long time. For these reason, we don't wait the completion of the cleanup/reset in the remove routing. Instead, the driver will wait the device status become ready in probe routing (In most cases, the hardware will have enough time to finish the cleanup/reset before the second probe), so that we can boost the remove process. Thanks, Cheng Xu