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: 10427053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E1226025B for ; Fri, 25 May 2018 10:36:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B254291FC for ; Fri, 25 May 2018 10:36:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F412329599; Fri, 25 May 2018 10:36:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7D4E2291AB for ; Fri, 25 May 2018 10:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Km5kH+9I2Pwyy2qYeGuu2hJdYb9g3iCYBVtBmVxGwYg=; b=bke51GvzLcBTQiFPzKg+KxPtur XZNaRofOAgdummhS/5kxBSqhBypkWF5PeI9Fr8Rt3WsV705V+q5/PC2q8p9G8izoX+hcCMJtPht5R 74JsY7gk2duppfD4PhNkc3aUlIvW+Igzs0QkiwAimJB74zBxgLswGQaigSEHInR9T4QZhuOqL4Ef5 Qub6S9+jNfSpvebjEsnyZ750GYeDY6utca7aX8y652BzvajyxvIB1QU2wu2t90RVZy2Tw/61sHWjo 0ZOPWrY7uyD66zKl4X/55fydUIAC7RNRHmn9v4/0c3ahaAHHFl8gNJJ3hRdhDeRRnGy2wCESwFU1g TBM8kEVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMA59-0005jI-Pp; Fri, 25 May 2018 10:36:23 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMA1W-0002UF-Ms for linux-arm-kernel@lists.infradead.org; Fri, 25 May 2018 10:32:48 +0000 Received: by mail-pf0-x242.google.com with SMTP id q22-v6so2390944pff.11 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=jnrr7eRiOt2mCAbEVLJA3BtmRrPuq3+DSmWiMzMFjiG83WIZnF3wBRZmM/C3KYNNiM NtTg7JWcfIUV2TsTGscrK/POW9cUXEJcR7NNs3dd+FE2BpWPiaVAkvSfYCbaiyYXZwZA fYeMKNMlm8A4RvzEHj1eNkzhg6tum5GbNrQGUEgnWGtbrRkpj3yEsuvvhZmuhjr19TuT sJnSiuOxCgfYs5hvjdZwA2XkJ0pIlZzIZ4fA2gHUDj/WZ/ICLPO8Z2aaNDSe/s27331L tBZmwWzY2pQCpH2jjQW6lm95mHNfpIAiGglcfQ9j2dcq47JWmvsgSS2sg6hX2TNuAh6t olsw== X-Gm-Message-State: ALKqPwdctEypCxS6zaClYpuPh7P+3a5WGuCaDniFaWbTSW+4f3kesm4/ uRYMtEaLwfBxDGHMgwiDSCRckQ== X-Google-Smtp-Source: AB8JxZq+SW4N2+6ACIsjx/8H7l9Wr9S0TS8MDe+fL1y5T8n3OJbgpmqOrICwHWcCUTM4/vcNj4e6OQ== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180525_033238_789158_33160FC5 X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vincent Guittot , Viresh Kumar , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, chris.redpath@arm.com, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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>; }; };