Am Donnerstag, den 10.08.2017, 07:56 +0100 schrieb Okash Khawaja:
> struct usb_serial_device has probe and attach callbacks. After attach
> is invoked, device minor numbers are allocated and then registered with
> driver core. So attach callback doesn't know minor number.
> Can a usb-serial driver know about device minor number as soon as it is
> registered with driver core?
Merely registering a driver does not allocate a minor. And is the order
of device enumeration is unknown at that time, it cannot know a minor
You cannot make assumptions about driver load. Your driver was loaded.
End of story. Register it with the proper subsystem.
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html