From patchwork Wed Oct 18 09:15:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wangtao \(Kevin, Kirin\)" X-Patchwork-Id: 116252 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5844380qgn; Wed, 18 Oct 2017 02:23:50 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBXn5hJ/VryTQvwrTB06tBET114zXDdKywMuEcAs0EolzFun8KWRgODy82YZ/swpkBrP0wQ X-Received: by 10.99.181.67 with SMTP id u3mr13476604pgo.118.1508318630709; Wed, 18 Oct 2017 02:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508318630; cv=none; d=google.com; s=arc-20160816; b=IQmeKZjh4O+2XJ7k8C/7K0JECANmGK/8mojR0mnG1mEeq+rOX0yOzs2rcYZRsJ2zb8 40N0k+AOmXbHlXreyr18rSzVekCRmKOdI0/7SLHMOn1B5QF/0S7lMjU5BiX1e4zIscRb 02QfnE+T8fbihzrnpQcisn8/ClWfow04zgh6RMkjMS3BCQMlwKFYVL0G2pr0n9eYnqx4 YgbcEpkPzrjuM6oBdUH5vjTa4xaAyz9nNgN1rVJLwrE/2n2M4keR7BzeW8X/wYlqlMRO xmyWvNyZR33MIqEiev1H2a3D0DtQ9Z2CVVEHbdGk1NpwBpZrIOh3UEqIvc/rhO0spx/t 1pHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=iUVclM2X87Rb/wdM+dECvA8xQ99kf30BDefrOrYVe4w=; b=YhSDDpM3jRATnSn4l2Y+ATv/6esWwR7wEI0nhfQzhj2pGSSIfF/kEbu1XrU+waiRt7 jNRAuyhiNVaInC9fhdJZZJbh3CqbrNGtGm8GayyZ4vMMZMEVMzoHy7xbTungo3mkGekG CLe6L2DiCFOO/aSu4EacJd0Q6hpj6wuCUx1MvrYXf24SBlKwLFUKtfB5hydfFH+i7Y8Q CdkYCe9GE23z52MvCFoQzvQ2XPSeRQLX81b1xcB4oIEWZdtl0sirUyk5PWBDojvHJQxz 8TziueLCcojGKW3JXDRSoaZJmwd4k/nBBfWp8j4oZ7+5+PbzM0UVs8Dta2XRdbFsiHHZ 6IBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si6640022pgs.223.2017.10.18.02.23.50; Wed, 18 Oct 2017 02:23:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936593AbdJRJXs (ORCPT + 12 others); Wed, 18 Oct 2017 05:23:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8937 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934204AbdJRJXr (ORCPT ); Wed, 18 Oct 2017 05:23:47 -0400 Received: from 172.30.72.60 (EHLO DGGEMS406-HUB.china.huawei.com) ([172.30.72.60]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DJH33137; Wed, 18 Oct 2017 17:23:39 +0800 (CST) Received: from HSH1000038028.huawei.com (10.177.161.152) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.301.0; Wed, 18 Oct 2017 17:23:29 +0800 From: Tao Wang To: , CC: , , , , , Kevin Wangtao Subject: [PATCH] thermal/drivers/hisi: disable multi alarm support for hi3660 SoC Date: Wed, 18 Oct 2017 17:15:50 +0800 Message-ID: <1508318150-108444-1-git-send-email-kevin.wangtao@hisilicon.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <20171017043941.GE7954@localhost.localdomain> References: <20171017043941.GE7954@localhost.localdomain> MIME-Version: 1.0 X-Originating-IP: [10.177.161.152] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.59E71D9B.0138, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 64fad3faf0ea3a84d0a635db649b830e Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Kevin Wangtao multi alarm interrupt forced a re-trigger of power_allocator_throttle which changes the PID's actual sampling rate, this isn't optimal for IPA, it is best to disable multi alarm support now and sort out this issue later. Signed-off-by: Kevin Wangtao --- drivers/thermal/hisi_thermal.c | 1 - 1 file changed, 1 deletion(-) -- 2.8.1 diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 133238a..3b74c12 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -360,7 +360,6 @@ static int hi3660_thermal_enable_sensor(struct hisi_thermal_data *data) /* set interrupt threshold */ value = hi3660_thermal_temp_to_step(sensor->thres_temp[0]); - value |= hi3660_thermal_temp_to_step(sensor->thres_temp[1]) << 10; hi3660_thermal_alarm_set(data->regs, sensor->id, value); /* enable interrupt */