[PATCH 2/5] drm/debugfs: disallow debugfs access when device isn't registered
Andi Shyti
andi.shyti at linux.intel.com
Tue Aug 29 11:38:00 UTC 2023
> > > 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
More information about the dri-devel
mailing list