Re: Provide information: All connected USB devices are enumerated at boot time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 15 Oct 2015, Stefan Reichör wrote:

> My idea is now to have a fixed and known set of USB hubs.
> This should be doable with my hardware configurations.
> 
> Each of these hubs provide the information that "all devices attached to
> this hub have been probed".
> 
> The test program waits for this information to be delivered from all known USB hubs.
> Then it starts with the tests.
> 
> Would you be so kind and give a short idea where to put the code in
> drivers/usb/core/hub.c that emits this information for me?

You're better off following Greg's advice.  Still, if you want to
pursue doing this in the kernel, here's the answer.

The routine you're interested in is hub_event() in
drivers/usb/core/hub.c.  When that routine ends, all the devices
attached to the hub it was handling should have been detected and
enumerated.

> Would this kind of patch be useful for the mainline kernel?
> Or is it too specific for my problem?

It's probably too specific for the mainline kernel.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux