Loic Poulain efc36d3c34 net: mhi: Fix unexpected queue wake
This patch checks that MHI queue is not full before waking up the net
queue. This fix sporadic MHI queueing issues in xmit. Indeed xmit and
its symmetric complete callback (ul_callback) can run concurently, it
is then not safe to unconditionnaly waking the queue in the callback
without checking queue fullness.

Fixes: 3ffec6a14f24 ("net: Add mhi-net driver")
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1607599507-5879-1-git-send-email-loic.poulain@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-14 17:25:56 -08:00
..
2020-11-27 10:44:59 -08:00
2020-10-30 14:51:01 -07:00
2020-11-12 13:59:04 -07:00
2020-09-10 09:32:31 -06:00
2020-11-15 10:15:17 -08:00
2020-11-20 10:23:49 -08:00
2020-10-15 14:43:29 -07:00
2020-10-12 13:26:49 -07:00
2020-09-10 12:26:43 +09:30
2020-11-16 15:02:33 -08:00
2020-10-13 12:12:44 -07:00
2020-12-03 10:00:23 +01:00
2020-12-09 09:59:14 -08:00
2020-10-16 12:21:15 -07:00
2020-10-24 10:39:22 -07:00
2020-10-24 10:39:22 -07:00
2020-09-28 12:17:36 +02:00
2020-10-14 15:56:58 -07:00
2020-12-14 17:25:56 -08:00
2020-10-25 11:12:31 -07:00
2020-09-25 06:12:15 +02:00
2020-10-27 19:23:04 +01:00
2020-10-24 10:33:08 -07:00
2020-10-22 12:56:33 -07:00
2020-10-24 10:39:22 -07:00
2020-10-22 12:58:21 -07:00
2020-10-21 11:22:08 -07:00
2020-10-01 22:59:55 +02:00
2020-11-20 16:24:28 -08:00
2020-11-27 14:48:03 -08:00
2020-12-04 17:39:58 +01:00
2020-11-23 15:29:03 -08:00
2020-10-23 11:00:57 -07:00
2020-10-24 10:33:08 -07:00