summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/u_serial.h
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2019-08-10 10:42:50 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-10-22 09:27:09 +0200
commitb417343c6a0f50487d59aef975da0a6c7b69d348 (patch)
tree3ca8d4342237823b0d7fc87c67fb4515519d54e8 /drivers/usb/gadget/function/u_serial.h
parentusb: gadget: u_serial: reimplement console support (diff)
downloadlinux-b417343c6a0f50487d59aef975da0a6c7b69d348.tar.xz
linux-b417343c6a0f50487d59aef975da0a6c7b69d348.zip
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>
Diffstat (limited to 'drivers/usb/gadget/function/u_serial.h')
-rw-r--r--drivers/usb/gadget/function/u_serial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_serial.h b/drivers/usb/gadget/function/u_serial.h
index 9acaac1cbb75..8b472b0c8cb4 100644
--- a/drivers/usb/gadget/function/u_serial.h
+++ b/drivers/usb/gadget/function/u_serial.h
@@ -54,6 +54,7 @@ struct usb_request *gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t flags);
void gs_free_req(struct usb_ep *, struct usb_request *req);
/* management of individual TTY ports */
+int gserial_alloc_line_no_console(unsigned char *port_line);
int gserial_alloc_line(unsigned char *port_line);
void gserial_free_line(unsigned char port_line);