OSDN Git Service

usb: gadget: function: printer: Interface is disabled and returns error
authorZqiang <qiang.zhang@windriver.com>
Tue, 30 Jun 2020 05:23:31 +0000 (13:23 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 24 Jul 2020 13:45:15 +0000 (16:45 +0300)
commit7f2ca14d2f9b99e1579c8148dbabf92374ffc69a
treeee6250fdf178677726d1b0f7bfe279fd09ed916f
parenta9cf8715180b18c62addbfe6f6267b8101903119
usb: gadget: function: printer: Interface is disabled and returns error

After the device is disconnected from the host side, the interface of
the device is reset. If the userspace operates the device again,
an error code should be returned.

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_printer.c