Question about dynamic minor number of misc device

From: Zhenzhong Duan
Date: Mon Jan 20 2020 - 03:34:08 EST


Hi Maintainers,

I see there are 64 free slots(0-63) used for misc devices with dynamic
minor number. But PSMOUSE_MINOR(1) overlaps with that dynamic range.

So if the dynamic minor number exhaust, psaux driver will fail with
"could not register psaux device, error: -16", is this expected?
Should we preserve a slot for psaux and serio_raw which use static
minor number PSMOUSE_MINOR?

Thanks
Zhenzhong