summaryrefslogtreecommitdiff
path: root/utils
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 /utils
parent9a18ca486cfa9091d4dd7e62581b87ea12fb16a5 (diff)
hwstub: small fixup in rk27xx usb driver
Change-Id: Ibf3b91af11041834ce650f663b213bac0113f721
Diffstat (limited to 'utils')
-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)
/* TODO handle errors */
if (rxstat & RXACK) /* RxACK */
{
- int xfer_size = RX0STAT & 0xffff;
+ int xfer_size = rxstat & 0x7ff;
ctrlep[DIR_OUT].cnt -= xfer_size;
if (ctrlep[DIR_OUT].cnt > 0 && xfer_size == 64)