On Wed, Apr 28, 2021 at 12:58:29PM -0700, Dan Williams wrote: > I have an ulterior motive / additional use case in mind here which is > the work-in-progress cleanup of the DSA driver. Well, I worked on it for a while, please take a look at this: https://github.com/jgunthorpe/linux/commits/device_driver_attach It makes device_driver_attach() into what this mdev stuff needs, and I think improves the sysfs bind file as a side effect. Is it what you need for DSA? Thanks, Jason