[PATCH v2] ARM: mvebu: Don't apply the thermal quirk if the SoC revision is unknown
Jason Cooper
jason at lakedaemon.net
Wed Jun 11 08:02:03 PDT 2014
On Tue, Jun 10, 2014 at 03:34:43PM -0300, Ezequiel Garcia wrote:
...
> diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c
> index 594262b..c94caa1 100644
> --- a/arch/arm/mach-mvebu/board-v7.c
> +++ b/arch/arm/mach-mvebu/board-v7.c
> @@ -119,8 +119,16 @@ static void __init thermal_quirk(void)
> {
> struct device_node *np;
> u32 dev, rev;
> + int res;
>
> - if (mvebu_get_soc_id(&dev, &rev) == 0 && rev > ARMADA_375_Z1_REV)
> + /*
> + * The early SoC Z1 revision needs a quirk to be applied in order
> + * for the thermal controller to work properly. This quirk breaks
> + * the thermal support if applied on a SoC that doesn't need it,
> + * so we enforce the SoC revision to be known.
nit: "so we apply the quirk iff the SoC revision is known."
thx,
Jason.
More information about the linux-arm-kernel
mailing list