device registration callback for usb-serial

2017-08-10 Thread 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

Re: device registration callback for usb-serial

2017-08-11 Thread Okash Khawaja
On Thu, Aug 10, 2017 at 10:27:31AM +0200, Samuel Thibault wrote: > Oliver Neukum, on jeu. 10 ao??t 2017 10:03:51 +0200, wrote: > > You cannot make assumptions about driver load. Your driver was loaded. > > End of story. Register it with the proper subsystem. > > The subsystem in question is a

Re: device registration callback for usb-serial

2017-08-12 Thread Okash Khawaja
On Fri, Aug 11, 2017 at 11:47:35PM +0200, Samuel Thibault wrote: > Okash Khawaja, on ven. 11 ao??t 2017 22:38:14 +0100, wrote: > > On Thu, Aug 10, 2017 at 10:27:31AM +0200, Samuel Thibault wrote: > > > Oliver Neukum, on jeu. 10 ao??t 2017 10:03:51 +0200, wrote: > > > &g