提交 108be95f 编写于 作者: Y Yusuke Goda 提交者: Greg Kroah-Hartman

usb: m66592-udc: Fixed bufnum of Bulk

Signed-off-by: NYusuke Goda <yusuke.goda.sx@renesas.com>
Acked-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 294d95f2
...@@ -258,7 +258,7 @@ static int pipe_buffer_setting(struct m66592 *m66592, ...@@ -258,7 +258,7 @@ static int pipe_buffer_setting(struct m66592 *m66592,
break; break;
case M66592_BULK: case M66592_BULK:
/* isochronous pipes may be used as bulk pipes */ /* isochronous pipes may be used as bulk pipes */
if (info->pipe > M66592_BASE_PIPENUM_BULK) if (info->pipe >= M66592_BASE_PIPENUM_BULK)
bufnum = info->pipe - M66592_BASE_PIPENUM_BULK; bufnum = info->pipe - M66592_BASE_PIPENUM_BULK;
else else
bufnum = info->pipe - M66592_BASE_PIPENUM_ISOC; bufnum = info->pipe - M66592_BASE_PIPENUM_ISOC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册