usb: gadget: u_serial: make OBEX port not a console
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 10 Aug 2019 08:42:50 +0000 (10:42 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 22 Oct 2019 07:27:09 +0000 (10:27 +0300)
commitb417343c6a0f50487d59aef975da0a6c7b69d348
tree3ca8d4342237823b0d7fc87c67fb4515519d54e8
parentfe1ea63ad8064d8518b5e3fd1a6869b4463b5c73
usb: gadget: u_serial: make OBEX port not a console

Prevent OBEX serial port from ever becoming a console. Console messages
will definitely break the protocol, and since you have to instantiate
the port making it explicitly for OBEX, there is no point in allowing
console to break it by mistake.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_obex.c
drivers/usb/gadget/function/u_serial.c
drivers/usb/gadget/function/u_serial.h