]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mvebu: Don't apply the thermal quirk if the SoC revision is unknown
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 10 Jun 2014 18:34:43 +0000 (15:34 -0300)
committerJason Cooper <jason@lakedaemon.net>
Sat, 21 Jun 2014 00:45:48 +0000 (00:45 +0000)
commit40df411ef099164f682b4cd5880bd53490083fa1
tree8789f6222f0665ffeb8176f75cdc72ac9958f335
parentc72c744109e0f662d3b377f1a2be6a5206b2a0e7
ARM: mvebu: Don't apply the thermal quirk if the SoC revision is unknown

Currently, the thermal quirk is skipped only if the SoC revision is known to be
one that does not need them, but if the SoC revision cannot be obtained, the
quirk is applied assuming it's needed.

However, this quirk must be applied only we are sure the SoC needs it, for it
breaks the thermal support if applied on a SoC that doesn't need it. The reason
for this is that the quirk consists in changing the thermal devicetree
compatible string and register offsets, to workaround a hardware bug in the
early SoC revision.

Such changes are wrong if the SoC is a new revision and doesn't need
the workaround. Therefore, this commit changes the behavior, by
requiring the SoC revision to be known in order to peform a quirk.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Link: https://lkml.kernel.org/r/1402425283-24989-1-git-send-email-ezequiel.garcia@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/board-v7.c