On Thu, Aug 16, 2018 at 05:43:56PM +0800, linzhecheng wrote: > According to the comment of usb_host_post_load_bh, after removing the > usb device passed through, we will kick host to scan it again, but the > emulated > usb device is not added to global list hostdevs, so it can never be > discovered then. > So just do it before usb_host_auto_check. What's more, it's futile to walk > devs in > usb_host_auto_check periodically if hostdevs is empty, so let's delete the > usb_auto_timer.
Hmm, needs_autoscan is a fixed property of the device (depending on configuration), it should not be switched on and off. What problem you are trying to solve? cheers, Gerd