usb: dwc3: gadget: fix skip LINK_TRB on ISOC
authorPratyush Anand <pratyush.anand@st.com>
Mon, 14 Jan 2013 10:29:35 +0000 (15:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:32 +0000 (06:03 +0800)
commitd7c430bd3285dcdbdbe3c0d71a42b6fde442733e
tree1eaa1447fdb165954349cdd3a5e0b23e6dce428c
parent3f08ff607d29c29c63e90bc650356aa476e5054d
usb: dwc3: gadget: fix skip LINK_TRB on ISOC

commit 915e202aeeb59e272992a6364c910aaef3073544 upstream.

When we reach to link trb, we just need to increase free_slot and then
calculate TRB. Return is not correct, as it will cause wrong TRB DMA
address to fetch in case of update transfer.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c