]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: OCTEON: Add semaphore to serialize bootbus accesses.
authorDavid Daney <david.daney@cavium.com>
Thu, 5 Mar 2015 14:31:29 +0000 (17:31 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:42 +0000 (17:21 +0200)
commit8b3d68a215357ef9449dac4df6d753dd18e80a9b
tree912270f479798397ecbe45f2972c74f62ebd8748
parent98f6c4eaf804894f6bc530eaa5f4e3702aa15c92
MIPS: OCTEON: Add semaphore to serialize bootbus accesses.

Some hardware blocks attached to the OCTEON bootbus run asynchronously
to accesses from the CPUs.  These include MMC/SD host, CF(when using
DMA), and NAND controller.  A bus error, or corrupt data may occur if
a CPU is trying to access a bootbus connected device at the same time
the bus is running asynchronous operations.

To work around these problems we add this semaphore that must be
acquired before initiating bootbus activity.  Subsequent patches will
add users for this.

Signed-off-by: David Daney <david.daney@cavium.com>
[aleksey.makarov@auriga.com: combine the patches]
Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com>
Signed-off-by: Chandrakala Chavva <cchavva@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9459/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c
arch/mips/include/asm/octeon/octeon.h