> Date: Wed, 27 May 2020 05:28:41 -0700 (PDT) > From: Paul Goyette <p...@whooppee.com> > > Do you also need to decrement the number of busses when one is > detached?
Not really, because we just need to know whether usb_once_init has been run. Now, should we use something other than RUN_ONCE, which can both set up and tear down? Sure, that might be better in principle, but there probably aren't that many systems that have hotpluggable USB in which you might unplug _all_ of the USBs and where you really want to save the cost of a couple kernel threads. So not likely worth much effort.