Re: device registration callback for usb-serial

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

 



Am Donnerstag, den 10.08.2017, 07:56 +0100 schrieb Okash Khawaja:
> Hi,
> 
> 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
number.

You cannot make assumptions about driver load. Your driver was loaded.
End of story. Register it with the proper subsystem.

	Regards
		Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux