From: Andrew Bresticker Date: Thu, 30 Oct 2014 20:01:07 +0000 (-0700) Subject: mailbox: Don't unnecessarily re-arm the polling timer X-Git-Tag: omap-for-v3.19/fixes-rc1~130^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a49306d7d19ef127e6d6f4fd92f84d4864296f;p=pandora-kernel.git mailbox: Don't unnecessarily re-arm the polling timer poll_txdone() will unconditionally re-arm the polling timer if there was an active request, even if the active request completed and no other requests were submitted. This is fixed by: - only re-arming the timer if the controller reported that the current transmission has not completed, and, - moving the call to poll_txdone() into msg_submit() so that the controller gets polled (and the timer re-armed, if necessary) whenever a new message is submitted. Signed-off-by: Andrew Bresticker Reviewed-by: Thierry Reding Signed-off-by: Jassi Brar --- Reading git-diff-tree failed