From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752758AbbJZDLW (ORCPT ); Sun, 25 Oct 2015 23:11:22 -0400 Received: from mga14.intel.com ([192.55.52.115]:19392 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbbJZDLU (ORCPT ); Sun, 25 Oct 2015 23:11:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,199,1444719600"; d="scan'208";a="587888202" From: Chen Yu To: rui.zhang@intel.com, edubezval@gmail.com, javi.merino@arm.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/3][v2] Fix thermal problems during suspend/bootup Date: Mon, 26 Oct 2015 11:12:29 +0800 Message-Id: X-Mailer: git-send-email 1.8.4.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set fixes two problems when system is trying to suspend and boot up: 1.After system is woken up from suspend, the thermal framework uses the dirty 'cached' thermal variables before suspend, which might cause expected behavior. 2.If a cooling device is registered after the thermal zone's registration, current thermal framework forgets to update the thermal_zone's status, which might bring expected behavior under special cases. Chen Yu (3): Thermal: initialize thermal zone device correctly Thermal: handle thermal zone device properly during system sleep Thermal: do thermal zone update after a cooling device registered drivers/thermal/step_wise.c | 17 +++++++-- drivers/thermal/thermal_core.c | 78 +++++++++++++++++++++++++++++++++++++++--- drivers/thermal/thermal_core.h | 1 + include/linux/thermal.h | 4 +++ 4 files changed, 94 insertions(+), 6 deletions(-) -- 1.8.4.2