Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp456673imm; Mon, 4 Jun 2018 21:58:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLSPqaeGrSjCQbT/xKbkYk9vq1neHyNIOtlZDsMasYCQt4bHzNNiwPcLIdvD/E7aWL0o7kQ X-Received: by 2002:a17:902:8d8b:: with SMTP id v11-v6mr2253845plo.20.1528174724482; Mon, 04 Jun 2018 21:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528174724; cv=none; d=google.com; s=arc-20160816; b=KvmRTJ3PeyJLsypOE6MffW3EJkiPXho8BkoJgppLfYriaRFXc/oVO1QzMLM+FiRENH HmlDXPAAQrUCxtK2ZZA0z6O7xrth1mtncsPOkCQh2AcKntAA/+18StvHwKqRBoAW+yNx oOWxIwJ0o8T1r1MkuzWa5qr8W1TP+q8fGupm8hsoM7CM07jeyqsX4MEAUaJvcnK/5doP mqLNf0k9gk75KjonKP0CCt+IlG0srpYN1j/Cy0+irWLZy53GntF3AVHlMIyIKK/8tiVR YOuwbC3Ye6CngS5hx+58+sHZUBL3AYbvd5vvm1NGZaIvTnzS3mJFU2LWCqn8mWkUxHkM XrPA== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=cwf79dPZ6Mk82viwE3UOroewlvnMne770dLqXn7PpmY=; b=GJZMLBw6eS8ufMPAMSkhsl3r+Waxv8x8ikb/HEmWYhatp66MO/iO5PksXazxQ8gFlo J+I+5Z5dFQGPdPLLiAe59mHV5Ibg3Nbr/9yButLpozJhDclHdHmYBbJJ0G0zpqZ7hIBg Ams/hKv9JYI4Kt28JNgps5ZmdRgtQ57EDEZSOhW3iKN90OgzQfOLWHXbxH+gEVGJBLU8 86kAOe1vkKR4NkM6QS71bTPPeDSuvECnquz2mcePUGB7ptKv+QEhUZUAzO53sA4CAJgw /Tw6Czkpt6m6YBL4YKJ9sU48y5tVV/aEIyPt8RndRO7w+wiiEPhRCZ9qoM5D8EQvsEvt nz2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LCG1jzfx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 31-v6si35243287plj.216.2018.06.04.21.58.30; Mon, 04 Jun 2018 21:58:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LCG1jzfx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751534AbeFEE4y (ORCPT + 99 others); Tue, 5 Jun 2018 00:56:54 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:36928 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbeFEE4w (ORCPT ); Tue, 5 Jun 2018 00:56:52 -0400 Received: by mail-pl0-f66.google.com with SMTP id 31-v6so744995plc.4 for ; Mon, 04 Jun 2018 21:56:52 -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; bh=cwf79dPZ6Mk82viwE3UOroewlvnMne770dLqXn7PpmY=; b=LCG1jzfxlS8cxnXUJxMZ/DzKUI1Zj0l1TOxtWSartnBnsQx78ei/rgBWTyHsTTdLzy 2+UIXDgAYN4beBFTzlW7/tGoMZ+sYnJfysOc7e3fwn+ecPr4ctGKpE7KWK9QVU2ZFnX/ CNX+QHkcmeOEnSH49piQB5CKQruMkptPjdJ4w= 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; bh=cwf79dPZ6Mk82viwE3UOroewlvnMne770dLqXn7PpmY=; b=ipM/ZQPkbMIczHoJOOjw/IFRPpYv8aSAv7vnyVHNlyy+sersVxu6Jhj1y1jbiTWBjo xVs5AWg8voiXKsZJ89tXA//aNk+XWYbjdY1k58tHi4g/C/NbJm9c6d3EFpLN9ZUmm6zA fQ5y0q3BCdDvLBitJTn5sVimZ2hnh2qJ+tqkkv5lXH8u8QzKZE3RnQGS+/cpUpwLWCPt j9XwHAmlGFxIUAigssyxswsP5H2E5eGwAVon9mN5EVgvw9zIjr13Hgux+jDBFr/kVc2+ 9K9ZHULqRqGIqCPahy3St08oAaXQ0i67LyitDuWNg/lAss4LUhX7MWOIN2vIoHLrCTIT L7Ow== X-Gm-Message-State: ALKqPwfa9ggxSXBP33eMXjKEe/mY79d0aJ3hq//2DbOumcZvyzJVEHtB XtuZO19DCQfbmXxr2woRLomxKA== X-Received: by 2002:a17:902:8a82:: with SMTP id p2-v6mr24717641plo.244.1528174612158; Mon, 04 Jun 2018 21:56:52 -0700 (PDT) Received: from localhost ([122.172.63.23]) by smtp.gmail.com with ESMTPSA id n10-v6sm7891012pfb.27.2018.06.04.21.56.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 21:56:51 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 1/2] arm: dts: sun8i-h3: Add missing cooling device properties for CPUs Date: Tue, 5 Jun 2018 10:17:48 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: <20180601151701.sshwfdbflic6mybv@flea> References: <20180601151701.sshwfdbflic6mybv@flea> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. Fix other missing properties (clocks, clock-names) as well to make it all work. Signed-off-by: Viresh Kumar --- V2: Separated patch for h3. arch/arm/boot/dts/sun8i-h3.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 41d57c76f290..9dff6887923c 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -84,21 +84,30 @@ compatible = "arm,cortex-a7"; device_type = "cpu"; reg = <1>; + clocks = <&ccu CLK_CPUX>; + clock-names = "cpu"; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; }; cpu@2 { compatible = "arm,cortex-a7"; device_type = "cpu"; reg = <2>; + clocks = <&ccu CLK_CPUX>; + clock-names = "cpu"; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; }; cpu@3 { compatible = "arm,cortex-a7"; device_type = "cpu"; reg = <3>; + clocks = <&ccu CLK_CPUX>; + clock-names = "cpu"; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; }; }; -- 2.15.0.194.g9af6a3dea062