arm64: cpu_errata: Allow an erratum to be match for all revisions of a core
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 1 Feb 2017 14:38:46 +0000 (14:38 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:24 +0000 (18:46 +0800)
commite5faf27bac9e31d805b9178495a83771c1c101d8
tree5e3283d77bff81dae865eea2c86b1ed9997dbd07
parent8af8958bca687f1d6bc5f0e32b8c2e604ac8681a
arm64: cpu_errata: Allow an erratum to be match for all revisions of a core

commit 06f1494f837 upstream.

Some minor erratum may not be fixed in further revisions of a core,
leading to a situation where the workaround needs to be updated each
time an updated core is released.

Introduce a MIDR_ALL_VERSIONS match helper that will work for all
versions of that MIDR, once and for all.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kernel/cpu_errata.c