USB: serial: drop obsolete open-race workaround
authorJohan Hovold <johan@kernel.org>
Thu, 30 Mar 2017 13:46:30 +0000 (15:46 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 31 Mar 2017 11:14:39 +0000 (13:14 +0200)
commite1fdd5b2620198979b23abb679848a78461481e6
tree040c81712c513d444187246ba8a3cb03ff0ec216
parentbc242fc107c71354181ba82bd9e539de8d088ae9
USB: serial: drop obsolete open-race workaround

Commit a65a6f14dc24 ("USB: serial: fix race between probe and open")
fixed a race between probe and open, which could lead to crashes when a
not yet fully initialised port was being opened.

This race was later incidentally closed by commit 7e73eca6a7b2 ("TTY:
move cdev_add to tty_register_device") which moved character-device
registration from tty_register_driver to tty_register_device, which
isn't called until the port has been fully set up.

Remove the now redundant workaround which had the negative side effect
of not allowing a port to be opened immediately after user space had
been notified of a new tty device.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/usb-serial.c