Skip to content

Commit c2fa3ed

Browse files
morimotoFelipe Balbi
authored andcommitted
usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos
__usbhs_for_each_pipe() is the macro which moves around each pipe, but it has a bug which didn't care about 1st pipe's position. Because of this bug, it moves around pipe0, pipe2, pipe3 ... even though it requested pipe1, pipe2, pipe3... This patch modifies it. Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 01b8daf commit c2fa3ed

File tree

1 file changed

+1
-1
lines changed
  • drivers/usb/renesas_usbhs

1 file changed

+1
-1
lines changed

drivers/usb/renesas_usbhs/pipe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct usbhs_pipe_info {
5454
* pipe list
5555
*/
5656
#define __usbhs_for_each_pipe(start, pos, info, i) \
57-
for (i = start, pos = (info)->pipe; \
57+
for (i = start, pos = (info)->pipe + i; \
5858
i < (info)->size; \
5959
i++, pos = (info)->pipe + i)
6060

0 commit comments

Comments
 (0)