提交 a8779ee9 编写于 作者: S Sven Schnelle 提交者: Greg Kroah-Hartman

USB: dbpg gadget: dont mask out direction bit

Stripping the direction bit off will produce an
invalid descriptor.
Signed-off-by: NSven Schnelle <svens@stackframe.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 83b72019
......@@ -261,8 +261,8 @@ static int __init dbgp_configure_endpoints(struct usb_gadget *gadget)
o_desc.wMaxPacketSize =
__constant_cpu_to_le16(USB_DEBUG_MAX_PACKET_SIZE);
dbg_desc.bDebugInEndpoint = i_desc.bEndpointAddress & 0x7f;
dbg_desc.bDebugOutEndpoint = o_desc.bEndpointAddress & 0x7f;
dbg_desc.bDebugInEndpoint = i_desc.bEndpointAddress;
dbg_desc.bDebugOutEndpoint = o_desc.bEndpointAddress;
#ifdef CONFIG_USB_G_DBGP_SERIAL
dbgp.serial->in = dbgp.i_ep;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册