summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2014-09-11 12:31:52 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2014-09-11 12:31:52 +0200
commitb7e3515a62f4fe520d505b098356d1bc67cf9fd0 (patch)
treeb63b472f3ac5690505844dd05f146f470db0cc2c
parent9a18ca486cfa9091d4dd7e62581b87ea12fb16a5 (diff)
downloadrockbox-b7e3515a62f4fe520d505b098356d1bc67cf9fd0.tar.gz
rockbox-b7e3515a62f4fe520d505b098356d1bc67cf9fd0.zip
hwstub: small fixup in rk27xx usb driver
Change-Id: Ibf3b91af11041834ce650f663b213bac0113f721
-rw-r--r--utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c b/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c
index 3706e76b35..d20b1d2b6b 100644
--- a/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c
+++ b/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c
@@ -310,7 +310,7 @@ void INT_UDC(void)
310 /* TODO handle errors */ 310 /* TODO handle errors */
311 if (rxstat & RXACK) /* RxACK */ 311 if (rxstat & RXACK) /* RxACK */
312 { 312 {
313 int xfer_size = RX0STAT & 0xffff; 313 int xfer_size = rxstat & 0x7ff;
314 ctrlep[DIR_OUT].cnt -= xfer_size; 314 ctrlep[DIR_OUT].cnt -= xfer_size;
315 315
316 if (ctrlep[DIR_OUT].cnt > 0 && xfer_size == 64) 316 if (ctrlep[DIR_OUT].cnt > 0 && xfer_size == 64)