]> asedeno.scripts.mit.edu Git - linux.git/commit
soundwire: intel: add link_list to handle interrupts with a single thread
authorBard Liao <yung-chuan.liao@linux.intel.com>
Thu, 12 Dec 2019 01:45:04 +0000 (19:45 -0600)
committerVinod Koul <vkoul@kernel.org>
Thu, 12 Dec 2019 03:47:07 +0000 (09:17 +0530)
commiteae0b60d64834c75a460d96b1d1e0e187381e341
tree97819f02ffdc7e42fe11a4dfc878b548c7f65f96
parent6cd1d670bee641d5d10b11d58c7c99ac1ddf8068
soundwire: intel: add link_list to handle interrupts with a single thread

In MSI mode, the use of separate handlers and threads for the Intel
IPC, stream and SoundWire shared interrupt leads to timeouts and lost
interrupts.

The solution is to merge all interrupt handling across all links with
a single thread function. The use of a linked list enables this thread
function to walk through all contexts and figure out which link needs
attention.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191212014507.28050-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw_intel.h