|
@@ -105,7 +105,7 @@ static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir)
|
|
|
|
|
|
do {
|
|
do {
|
|
/* flush any pending transfer */
|
|
/* flush any pending transfer */
|
|
- hw_write(ci, OP_ENDPTFLUSH, BIT(n), BIT(n));
|
|
|
|
|
|
+ hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n));
|
|
while (hw_read(ci, OP_ENDPTFLUSH, BIT(n)))
|
|
while (hw_read(ci, OP_ENDPTFLUSH, BIT(n)))
|
|
cpu_relax();
|
|
cpu_relax();
|
|
} while (hw_read(ci, OP_ENDPTSTAT, BIT(n)));
|
|
} while (hw_read(ci, OP_ENDPTSTAT, BIT(n)));
|
|
@@ -205,7 +205,7 @@ static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl)
|
|
if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num)))
|
|
if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num)))
|
|
return -EAGAIN;
|
|
return -EAGAIN;
|
|
|
|
|
|
- hw_write(ci, OP_ENDPTPRIME, BIT(n), BIT(n));
|
|
|
|
|
|
+ hw_write(ci, OP_ENDPTPRIME, ~0, BIT(n));
|
|
|
|
|
|
while (hw_read(ci, OP_ENDPTPRIME, BIT(n)))
|
|
while (hw_read(ci, OP_ENDPTPRIME, BIT(n)))
|
|
cpu_relax();
|
|
cpu_relax();
|