> Your talk was interesting at Linux Plumbers.
> 
> https://www.youtube.com/watch?v=oE73eVSyFXQ [time +2:35]
> 
> This is probably a stupid question, but why not just add something to
> call_driver_probe() which creates a sysfs directory tree with all the
> driver information?
> 

Thanks for the feedback! 

Improving the device driver model to publish driver and devices info was indeed 
another option we considered. We could have a debugfs entry storing this kind 
of information, similar to what devices_deferred does and in a standardized 
format. This would provide an interface that is easier to query at runtime for 
getting a list of devices that were probed correctly.
This would cover devices with a driver that's built into the kernel or as a 
module; in view of catching also those cases where a device is not probed 
because the relevant config is not enabled, I think we'd still need another way 
of building a list of devices present on the platform to be used as reference.

The solution proposed in this RFC follows the same approach used for dt
based platforms for simplicity. But if adding a new sysfs entry storing devices 
and driver info proves to be a viable option for upstream, we can surely 
explore it and improve the probe test to leverage that.

Best,

Laura

Reply via email to