Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Kuninori Morimoto and committed by
Felipe Balbi
c2fa3edc 01b8daf7

+1 -1
+1 -1
drivers/usb/renesas_usbhs/pipe.h
··· 54 54 * pipe list 55 55 */ 56 56 #define __usbhs_for_each_pipe(start, pos, info, i) \ 57 - for (i = start, pos = (info)->pipe; \ 57 + for (i = start, pos = (info)->pipe + i; \ 58 58 i < (info)->size; \ 59 59 i++, pos = (info)->pipe + i) 60 60