> > > During device bringup it might be that we can't access the debugfs files. > > > Return -ENODEV until the registration is completed on access. > > just wondering, if the device is not registered, how do we get > > there? > > The workflow is: > 1. Creation (DRM) > 2. Initialization (Driver) > 3. Registration (DRM) > ... > 4. Unregistration (DRM) > 5. Deinitialization (Driver) > 6. Destruction (DRM) > > It is possible that debugfs files are created during driver initialization, > but Daniel insisted that they should not be accessible until the > registration is done (which makes the other UAPI accessible as well). makes sense, but then why not -EAGAIN, or -EBUSY? Thanks, Andi