From patchwork Fri May 25 10:31:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 136824 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3396537lji; Fri, 25 May 2018 03:32:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9ddGp8fKRZHKABZQ3C/Swiz6jHwTt0kxd/yRSV1K/h0W1kkVVNpdnQBbdu0w0y6sPl1G+ X-Received: by 2002:a65:51c4:: with SMTP id i4-v6mr1532945pgq.190.1527244353955; Fri, 25 May 2018 03:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527244353; cv=none; d=google.com; s=arc-20160816; b=g6adD0fgyYC7tbXpy9LG8M9C5xmrED/YOhZVMBvb+tdHesO3T1wH9kuKtwNRveTWRn KpMwfENwOqUHEJddtydlUsQSe6ZnKvLOIcWRIkm9hL6CERJzhmguvLySJ7Znjnk79+u/ QEFASQVPTcc0Ttq8V+xxcsvbC3iHhaLxXDhdTLQvvQFTdRZJuJ6PfXVv2Ya+va0kHW4/ Esdl7C5UR8coNlyHnRBwyzBC/XmAtIitmp9fY70arDPQHKRMf8uxuZrWBKhcXLqZBng/ jWnzRQ0CsrsdFIZsNpZpNzhfd9oAttG6VstYoeoW5yIbhcnVloZCJf6Yq0ttZSVvDLnv 0smA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=M+vZ0AWa/sI5eFKg7q9MVwaVqzInL1hf5szvrzccWBU=; b=PaYjHoZ0LVxRKDWpqskwDM1i9P+1pjzBEbO/zWcSiORJ7GV3+3rVASF2OkcCVhFwUY VXzToZayrG54aFvhk4F010O3aPNBSKFsATfXzqMiWBKi6drM1K9JTs5vfZBl5LSzyECA YsSXRwh/dM8U647SGNRB6brWcmiQoDZ0EMTtJrQPCj0hLgtvp4S6UptjsJZHVKnX7995 1PP8LHypodvFn8q6FguKG/Roggr9GU5DYIpKBv2ylH3uBkGCL6apMWoB1crTi9tZ8tBA 0pWE5MnWe3zWYJwtfalaLknyEL6PO/7MopdpZdJtOWt+NSggkDGWtbn4aahPNHMmwR8r lDmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fc2YfJFq; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si884969plc.415.2018.05.25.03.32.33; Fri, 25 May 2018 03:32:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fc2YfJFq; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966089AbeEYKcb (ORCPT + 5 others); Fri, 25 May 2018 06:32:31 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36532 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966038AbeEYKc3 (ORCPT ); Fri, 25 May 2018 06:32:29 -0400 Received: by mail-pf0-f194.google.com with SMTP id w129-v6so2399646pfd.3 for ; Fri, 25 May 2018 03:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=TZd640iggeYulDoamOxegpwL3G7+X0vwf14RRKbmqs0=; b=Fc2YfJFqZ5YGrkGENvb92PAf1mveIQj6VnLn4F/duer2LiKIn8GZpJk86t0LWMWF7K Pf/dwf6uQnPAoInGw2M8a0mynFH0ob6C6WKp7Oe6lDpwJsDl+MDsPRs8sPn9YP/8z5fa a2SdxtAIDnAsQjuvyZreZxvZG4Ys3zp6rtaF0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=TZd640iggeYulDoamOxegpwL3G7+X0vwf14RRKbmqs0=; b=rwOYF1UCuSjeqLdc/Ne+1F40CHKh7VmVOsbQQAXBxeENBMaROwYS/4rbugb8b1NrXz vWVLFzkSmi/tvu7rLYyHYPLfPQuF0DJjs95evBg6gVAlWo0WguK0HfBkIbuPHaFopgYi Z1eA+5UuSNAhAim8+ja6OeqCzXHnvXmi5v/jywmKjRszf9ijed4xhvkDNZ3qGoY0zHnU mrYYHRt9fWn/1OTEhhbYdgisg/tZNK+1xsc/RXK8rXh65OE70meonSl1h5r5oGc/wJBf KlkF1g9qLVnQyyshNW/FlDIiefiWaHhnYuP4x6303mLDqVtn96Amc0wNkvRfxSLOBMb5 LacA== X-Gm-Message-State: ALKqPwfOc+jjp201+KePnsrPmFYIOhmfRrH5cB0fzW/mY14TeRQoaehd RYWgbkygPiyK4sDEDeikJzP+/g== X-Received: by 2002:a65:4b8d:: with SMTP id t13-v6mr1541259pgq.446.1527244347997; Fri, 25 May 2018 03:32:27 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id r5-v6sm30740021pgp.81.2018.05.25.03.32.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:27 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Matthias Brugger , Rob Herring , Mark Rutland Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/15] arm: dts: mediatek: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 16:01:49 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The cooling device properties, like "#cooling-cells" and "dynamic-power-coefficient", should either be present for all the CPUs of a cluster or none. If these are present only for a subset of CPUs of a cluster then things will start falling apart as soon as the CPUs are brought online in a different order. For example, this will happen because the operating system looks for such properties in the CPU node it is trying to bring up, so that it can register a cooling device. Add such missing properties. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/mt7623.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.15.0.194.g9af6a3dea062 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index d1eb123bc73b..1cdc346a05e8 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -92,6 +92,7 @@ <&apmixedsys CLK_APMIXED_MAINPLL>; clock-names = "cpu", "intermediate"; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; clock-frequency = <1300000000>; }; @@ -103,6 +104,7 @@ <&apmixedsys CLK_APMIXED_MAINPLL>; clock-names = "cpu", "intermediate"; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; clock-frequency = <1300000000>; }; @@ -114,6 +116,7 @@ <&apmixedsys CLK_APMIXED_MAINPLL>; clock-names = "cpu", "intermediate"; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; clock-frequency = <1300000000>; }; };