On Wed, Jan 22, 2020 at 11:15:29AM +0100, Johan Hovold wrote: > Use a synchronous usb_bulk_msg() when switching link speed in > set_termios(). This way we do not need to keep track of outstanding URBs > in order to be able to stop them at close. > > Note that there's no need to set URB_ZERO_PACKET as the one-byte > transfer will always be short. > > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx> > --- > drivers/usb/serial/ir-usb.c | 50 ++++++++----------------------------- > 1 file changed, 11 insertions(+), 39 deletions(-) > Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>