]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP: Catch callers of revision information prior to it being populated
authorNishanth Menon <nm@ti.com>
Fri, 1 Apr 2016 22:53:07 +0000 (17:53 -0500)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Apr 2016 16:02:39 +0000 (09:02 -0700)
commit3eff325a3aa54b046b4ffb14e315f865121b8d5e
tree660910cb930bfa3bfd3711ccce6b0a73f9a6fd95
parent8dafaee832d3f8e9a129e043438c846b24d6fb73
ARM: OMAP: Catch callers of revision information prior to it being populated

omap_rev is used to detect various SoC types, however any misuse of
the usage by invoking it earlier than it being populated will result
in invalid results. Lets flag them as early as possible to prevent
unintended side effects taking place. We get 0 if it is uninitialized
and -1 when detection is done using device tree (as the case was for
DRA7 as the case was prior to commit d6f02a531ee9 ("ARM: OMAP: DRA7:
Make use of omap_revision information for soc_is* calls")

Signed-off-by: Nishanth Menon <nm@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/id.c
arch/arm/mach-omap2/id.c