]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mvebu: Fix coherency bus notifiers by using separate notifiers
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 8 Jul 2014 13:37:37 +0000 (10:37 -0300)
committerJason Cooper <jason@lakedaemon.net>
Tue, 8 Jul 2014 13:53:53 +0000 (13:53 +0000)
commit7e4b20ddb512ab16355b663980a2f5357fbb817c
tree114e418d5816073e9eff0f7fd9fcd6926512fd5e
parentcda45d67d2facca421315e79024062f901adb12e
ARM: mvebu: Fix coherency bus notifiers by using separate notifiers

Currently, the coherency fabric support registers two bus notifiers;
one for platform, one for pci bus types, with the same notifier block.
However, this is illegal and can cause serious issues: the notifier
block is also a link in the notifier list and cannot be inserted twice.

This commit fixes this by using different notifier blocks (with the same
notifier callback) to set the platform and pci bus types notifiers.

Fixes: f6943c1392c3 ("ARM: mvebu: use hardware I/O coherency also for PCI devices")
Reported-by: Paolo Pisati <p.pisati@gmail.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Link: https://lkml.kernel.org/r/1404826657-6977-1-git-send-email-ezequiel.garcia@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/coherency.c