mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 11:36:53 +07:00
765e0ba626
This patch (as1522) adds two new routines to the usb-serial core, for registering and unregistering serial drivers. Instead of registering the usb_driver and usb_serial_drivers separately, with error checking for each one, the drivers can all be registered and unregistered by a single function call. This reduces duplicated code. More importantly, the new core routines change the order in which the drivers are registered. Currently the usb-serial drivers are all registered first and the usb_driver is done last, which leaves a window for problems. A udev script may quickly add a new dynamic-ID for a usb-serial driver, causing the corresponding usb_driver to be probed. If the usb_driver hasn't been registered yet then an oops will occur. The new routine prevents such problems by registering the usb_driver first. To insure that it gets probed properly for already-attached serial devices, we call driver_attach() after all the usb-serial drivers have been registered. Along with adding the new routines, the patch modifies the "generic" serial driver to use them. Further patches will similarly modify all the other in-tree USB serial drivers. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
association.h | ||
atmel_usba_udc.h | ||
audio-v2.h | ||
audio.h | ||
c67x00.h | ||
cdc.h | ||
ch9.h | ||
ch11.h | ||
composite.h | ||
ehci_def.h | ||
functionfs.h | ||
g_hid.h | ||
g_printer.h | ||
gadget.h | ||
gadgetfs.h | ||
gpio_vbus.h | ||
hcd.h | ||
input.h | ||
intel_mid_otg.h | ||
iowarrior.h | ||
irda.h | ||
isp116x.h | ||
isp1362.h | ||
isp1760.h | ||
Kbuild | ||
langwell_udc.h | ||
m66592.h | ||
midi.h | ||
msm_hsusb_hw.h | ||
msm_hsusb.h | ||
musb.h | ||
net2280.h | ||
otg.h | ||
quirks.h | ||
r8a66597.h | ||
renesas_usbhs.h | ||
rndis_host.h | ||
serial.h | ||
sl811.h | ||
storage.h | ||
tmc.h | ||
uas.h | ||
ulpi.h | ||
usbnet.h | ||
video.h | ||
wusb-wa.h | ||
wusb.h |