From patchwork Wed Apr 8 09:05:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Kao X-Patchwork-Id: 11479655 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E88CB1392 for ; Wed, 8 Apr 2020 09:06:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF58520768 for ; Wed, 8 Apr 2020 09:06:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="InlYd7Le" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727735AbgDHJGI (ORCPT ); Wed, 8 Apr 2020 05:06:08 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35313 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727707AbgDHJGI (ORCPT ); Wed, 8 Apr 2020 05:06:08 -0400 X-UUID: 3ff769d2b0dc491e98f7f0ed90186d6f-20200408 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Qh7przKIfX21C6nfkvmRwxpYgUWlMX6+C+g6YzZ+NXs=; b=InlYd7LeMy115A3DqScaSQfXkS8jnDbxcIsSL6fehyjFi9d7r6QFG4aXRHJwoNy9X4pZl9BWNZ9veTzX/l2rQANV5Jpq20XrhKf9cLipg7PMwjpt+gjQajaXGYVTZThlRO4HffKztJR+mRIF5oiGJE9zruaHen5SfZL7QY3kJl0=; X-UUID: 3ff769d2b0dc491e98f7f0ed90186d6f-20200408 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1092597428; Wed, 08 Apr 2020 17:06:01 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Apr 2020 17:05:57 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Apr 2020 17:05:56 +0800 From: Michael Kao To: , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Matthias Brugger , , , CC: , , , Subject: [RESEND PATCH 0/1] thermal: mediatek: add suspend/resume callback Date: Wed, 8 Apr 2020 17:05:57 +0800 Message-ID: <20200408090558.12410-1-michael.kao@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Change items: 1. Fix typo of measurement. 2. Change name of mtk_thermal_get_bank to mtk_thermal_lock_bank. 3. Change name of mtk_thermal_put_bank to mtk_thermal_unlock_bank. Unchang items: 1. There are mtk_thermal_get_bank and mtk_thermal_put_bank in the mtk_thermal_init_bank. So we also add mtk_thermal_get_bank and mtk_thermal_put_bank in the mtk_thermal_disable_sensing. Any control and settings of sensor in the thermal controller should lock and unlock to prevent thermal controller from reporting wrong temperature. 2. The mutex lock was changed in this patch. [v4,7/7] thermal: mediatek: use spinlock to protect PTPCORESEL (https://patchwork.kernel.org/patch/11452835/) Louis Yu (1): thermal: mediatek: add suspend/resume callback drivers/thermal/mtk_thermal.c | 152 ++++++++++++++++++++++++++++++---- 1 file changed, 134 insertions(+), 18 deletions(-)