Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2853077pxa; Tue, 25 Aug 2020 05:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDGgggbqpsRp+3ku0hh3Nl+jn3tf8h13a4jpB8rEqealp1hUlRSGvlbtxGhCEzMKYFJvqu X-Received: by 2002:a17:906:82c9:: with SMTP id a9mr5425375ejy.161.1598357949011; Tue, 25 Aug 2020 05:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598357949; cv=none; d=google.com; s=arc-20160816; b=oPU/kR3JaKcwE0+pQB+djPFLr0ERG/N8V6Ib+QGASGRUhUvNUkNkHOR/R+jviSdDyR et8b8iqqFAoJHo9qWQaXd6m8sqHlz8fnofNWNktOErrTMhiL/Rtl2oQn4GI/uy0rR4ej jutluTEYZJPzYNlPmboZmLcI4XD68eK7mOTV3ljyt+rYdlbAm/szRBUv5PXJHMmkHS0j kwYPoUpxslDj7jP2NfnMWt6ZCfrMyVfW2vA0LVq7sIC4SdffhmwYbZuCvP4+VlIkyb4z 17AMmZSlPpebIMK79po0/abO8cyEsNB8X78KRWNIC4fz+Md06P7hECkKEtYxKHKPE/lZ y7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=pzm6RISn/tNeKbUICcBC7qg5/+/y+MTOUCaljQkJv5I=; b=ehiP/1C1GOnzio+jQOMxu7Q2TRmtGRbRzJ6PzP7OqBkXohJ4oV1bpHmXOlm5sdcGi0 63EqdY/ApcoI8rGxvLiAzRTzfM3XRqC1riBlgQjcfvYCdpFzePqd5QgATD6VSlGW5KIY ZtM17uGxufndmiVetAt7FyoQA62aQN1b1AWRp6gowwCuRZmuCQbtG0yBVaPbFhySfX58 mZl+lCb7Mpx1gd/eICiOzJRNSupsanoEcNCUaDyD7UYOVL2DbPlK/8Gip+BoptjhTNFv B5rdtuzVWmaJYy4sP2NSrP0agtNeqT2JFvepHw9pN6ghwOlWrVirnPKicZaZ0Ye7BnEl tFkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WjBc9ONP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si8256413eja.442.2020.08.25.05.18.46; Tue, 25 Aug 2020 05:19:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WjBc9ONP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729380AbgHYJ3m (ORCPT + 99 others); Tue, 25 Aug 2020 05:29:42 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:12754 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726149AbgHYJ3m (ORCPT ); Tue, 25 Aug 2020 05:29:42 -0400 X-UUID: 4ab557a0b8c348b6879857d307f40f92-20200825 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=pzm6RISn/tNeKbUICcBC7qg5/+/y+MTOUCaljQkJv5I=; b=WjBc9ONPbH2xD4WxLXUJLuFNUrmcxAywnOvIJ56DGvSswJiwg0LamrKhcxY5oqiO5LdTTv9IfQqfxnRx8yvmDo8BgWleofTk4jQACBZTpakTIO4qfIW9ISIz0PPvCaGnfIJnQclKIh9g2UwPm+2XSDs36z68lNqveiE2RCurNwU=; X-UUID: 4ab557a0b8c348b6879857d307f40f92-20200825 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1131286243; Tue, 25 Aug 2020 17:29:37 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Aug 2020 17:29:34 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 Aug 2020 17:29:34 +0800 Message-ID: <1598347775.16267.0.camel@mtksdccf07> Subject: Re: [PATCH] thermal: power_allocate: add upper and lower limits From: Michael Kao To: Lukasz Luba CC: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , "Matthias Brugger" , , , , , , , Date: Tue, 25 Aug 2020 17:29:35 +0800 In-Reply-To: <03286571-c110-7f5e-a911-24f8c3e4fd42@arm.com> References: <20200424071601.2636-1-michael.kao@mediatek.com> <1588156776.3573.1.camel@mtksdccf07> <03286571-c110-7f5e-a911-24f8c3e4fd42@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIwLTA0LTI5IGF0IDIxOjI0ICswMTAwLCBMdWthc3ogTHViYSB3cm90ZToNCj4g DQo+IE9uIDQvMjkvMjAgMTE6MzkgQU0sI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