From: Thomas Gleixner Date: Tue, 18 Mar 2014 17:19:09 +0000 (+0000) Subject: can: c_can: Make it SMP safe X-Git-Tag: v3.15-rc1~113^2~2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640916db2bf7de7c5ac13a1f470fa959459ccf6d;p=pandora-kernel.git can: c_can: Make it SMP safe The hardware has two message control interfaces, but the code only uses the first one. So on SMP the following can be observed: CPU0 CPU1 rx_poll() write IF1 xmit() write IF1 write IF1 That results in corrupted message object configurations. The TX/RX is not globally serialized it's only serialized on a core. Simple solution: Let RX use IF1 and TX use IF2 and all is good. Signed-off-by: Thomas Gleixner Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed