commit | 4a2e967a873a23a3e12b7afad1a19c95a4322e7d | [log] [tgz] |
---|---|---|
author | Loic Poulain <loic.poulain@linaro.org> | Wed Nov 08 16:36:10 2017 +0100 |
committer | Kumar Gala <kumar.gala@gmail.com> | Thu Nov 09 09:13:14 2017 -0500 |
tree | 94b5a493072c35067736ed473a70cea2abb62477 | |
parent | d63efc3aa11d102c0e8932aecf60b46a76fb0ab1 [diff] |
usb: stm32: Fix TX FIFO overwrite In the same way as dw driver, check that FIFO is empty before writing any new data. This patch introduces a boolean semaphore which is requested before any new TX transfer and released on transfer completion. This fixes usb-ecm support on 96b_carbon board. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>