On 27/06/2024 09:10, Sakari Ailus wrote: > On Thu, Jun 27, 2024 at 06:58:03AM +0000, Sakari Ailus wrote: >> Hi Hans, >> >> On Thu, Jun 27, 2024 at 08:43:47AM +0200, Hans Verkuil wrote: >>> On 10/06/2024 12:05, Sakari Ailus wrote: >>>> Clear the media device's minor number reservation at unregister time as >>>> there's no need to keep it reserved for longer. This makes it possible to >>>> reserve the same minor right after unregistration. >>> >>> Have you tested this? >> >> By unbinding and re-binding a device while file handles to the old Media >> device one are still around. > > Also in MC we don't have an array indexed by minor numbers of Media > devices, as we have for V4L2 device nodes. > > How is it for CEC? > It doesn't have such an array either. I think that's V4L2 specific, and I wonder if it is really needed. That code is very old, so it wouldn't surprise me if it can be removed. Regards, Hans