]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mvebu-mbus: do not set WIN_CTRL_SYNCBARRIER on non io-coherent platforms.
authorNicolas Schichan <nschichan@freebox.fr>
Thu, 28 May 2015 08:40:12 +0000 (10:40 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 28 May 2015 09:14:19 +0000 (11:14 +0200)
commitc3728238355ddb52da5894bb23311f4ba65dfe48
tree13b3c7667ec22cda21b276891222caf6bafb80b8
parent28ad0489995e009c06796c6acc870cfa8433cfbd
bus: mvebu-mbus: do not set WIN_CTRL_SYNCBARRIER on non io-coherent platforms.

Commit 5a3310893e54 ("bus: mvebu-mbus: use automatic I/O
synchronization barriers") enabled the usage of automatic I/O
synchronization barriers by enabling bit WIN_CTRL_SYNCBARRIER in the
control registers of MBus windows, but on non io-coherent platforms
(orion5x, kirkwood and dove) the WIN_CTRL_SYNCBARRIER bit in
the window control register is either reserved (all windows except 6
and 7) or enables read-only protection (windows 6 and 7).

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: <stable@vger.kernel.org> # v4.0+
Fixes: 5a3310893e54 ("bus: mvebu-mbus: use automatic I/O synchronization barriers")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
drivers/bus/mvebu-mbus.c