mailbox: tegra-hsp: Flush whole channel
The txdone can re-fill the mailbox. Keep polling the mailbox during the flush until all the messages have been delivered. This fixes an issue with the Tegra Combined UART (TCU) where output can get truncated under high traffic load. Signed-off-by: NPekka Pessi <ppessi@nvidia.com> Tested-by: NJon Hunter <jonathanh@nvidia.com> Fixes: 91b1b1c3 ("mailbox: tegra-hsp: Add support for shared mailboxes") Cc: stable@vger.kernel.org Signed-off-by: NThierry Reding <treding@nvidia.com> Reviewed-by: NJon Hunter <jonathanh@nvidia.com> Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
Showing
想要评论请 注册 或 登录