Re: [PATCH 2/5] drm/debugfs: disallow debugfs access when device isn't registered

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

 



> > > 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



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux