Commit 6d86d52a authored by Yusuke Goda's avatar Yusuke Goda Committed by Greg Kroah-Hartman

usb: r8a66597-udc: Fixed bufnum of Bulk

Signed-off-by: default avatarYusuke Goda <yusuke.goda.sx@renesas.com>
Acked-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6ec2f46c
...@@ -258,7 +258,7 @@ static int pipe_buffer_setting(struct r8a66597 *r8a66597, ...@@ -258,7 +258,7 @@ static int pipe_buffer_setting(struct r8a66597 *r8a66597,
break; break;
case R8A66597_BULK: case R8A66597_BULK:
/* isochronous pipes may be used as bulk pipes */ /* isochronous pipes may be used as bulk pipes */
if (info->pipe > R8A66597_BASE_PIPENUM_BULK) if (info->pipe >= R8A66597_BASE_PIPENUM_BULK)
bufnum = info->pipe - R8A66597_BASE_PIPENUM_BULK; bufnum = info->pipe - R8A66597_BASE_PIPENUM_BULK;
else else
bufnum = info->pipe - R8A66597_BASE_PIPENUM_ISOC; bufnum = info->pipe - R8A66597_BASE_PIPENUM_ISOC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment