]> err.no Git - linux-2.6/commit
[ARM] 3053/1: introduce ixp2000_reg_wrb (ixp2000_reg_write plus readback)
authorLennert Buytenhek <buytenh@wantstofly.org>
Sat, 29 Oct 2005 15:28:28 +0000 (16:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 29 Oct 2005 15:28:28 +0000 (16:28 +0100)
commitb4a1f67fbfb848ded8cf0c6c305224534144ab2d
tree58988f4a66886659518e971fdc2445ecb9e81ecf
parentecbea7a2dae94092db9566bcd1f38535e9b3cde9
[ARM] 3053/1: introduce ixp2000_reg_wrb (ixp2000_reg_write plus readback)

Patch from Lennert Buytenhek

Introduce ixp2000_reg_wrb, which is a variant of ixp2000_reg_write
that does a readback from the target register, to make sure that
the write has been flushed out of the write buffer.

Unlike the previous (ineffective) readback in ixp2000_reg_write, this
readback is followed by an instruction that depends on the value of
the readback so that the CPU actually stalls until the readback has
completed.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-ixp2000/platform.h