[PATCH 0/9] usb-serial: new driver-registration API

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

 



Greg:

This series of patches adds a new, simpler API to the usb-serial core
for registering drivers, and changes all the existing drivers to use
it.  Instead of making separate calls to register the usb_driver and
one or more usb_serial drivers, everything can be done with a single
function call.  Likewise for deregistration.

In addition, the order of registration is changed; the new routine will
register the usb_driver first.  Currently each of the serial drivers
registers its usb_driver last, which leaves a window for a bug: If a
new dynamic-ID is added to the usb_serial driver before its usb_driver
is registered (say by a udev script), it causes an oops.

This doesn't seem to be a very serious problem; so far there has been
only one complaint about it.  For that reason, and because this is a
somewhat lengthy set of changes, I'm not going to submit it for the
stable kernels.

I have been able to test this only with the pl2303 driver.  All the 
other drivers are merely compile-tested.

Alan Stern

--
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