]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7682/1: cache-l2x0: fix masking of RTL revision numbering and set_debug init
authorRob Herring <rob.herring@calxeda.com>
Mon, 25 Mar 2013 16:02:48 +0000 (17:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 3 Apr 2013 15:45:48 +0000 (16:45 +0100)
commita857f059adeeacdb8703067b204374cb1051c975
treec19024ea5670f04acb90b9ae4d9bc3224ce84e0f
parent2a7ec196c9ebf4a7a9e503d76af2edce7e104715
ARM: 7682/1: cache-l2x0: fix masking of RTL revision numbering and set_debug init

Commit 2aeb6c8 (ARM: 7547/4: cache-l2x0: add support for Aurora L2 cache
ctrl) moved the masking of the part ID which caused the RTL version to be
lost. Commit ef9ccbb (ARM: 7545/1: cache-l2x0: make outer_cache_fns a
field of l2x0_of_data) changed how .set_debug is initialized. Both commits
break commit a3ad720 (ARM: 7608/1: l2x0: Only set .set_debug
on PL310 r3p0 and earlier) which uses the RTL version to conditionally set
.set_debug function pointer. Commit 2aeb6c8 also caused the printed cache
ID to be missing the version information.

Fix this by reverting how the part number is masked so the RTL version
info is maintained. The cache-id-part DT property does not set the RTL
bits so masking them should have no effect. Also, re-arrange the order
of the function pointer init so the .set_debug function can be overridden.

Reported-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Yehuda Yitschak <yehuday@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c