From patchwork Mon Apr 1 16:04:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 2371441 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1FC48DFB7B for ; Mon, 1 Apr 2013 16:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758895Ab3DAQHI (ORCPT ); Mon, 1 Apr 2013 12:07:08 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:59207 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758891Ab3DAQHH (ORCPT ); Mon, 1 Apr 2013 12:07:07 -0400 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r31G75ld007185; Mon, 1 Apr 2013 11:07:05 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r31G751E017796; Mon, 1 Apr 2013 11:07:05 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Mon, 1 Apr 2013 11:07:04 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r31G75Se027729; Mon, 1 Apr 2013 11:07:05 -0500 Received: from localhost (h64-8.vpn.ti.com [172.24.64.8]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r31G71V04542; Mon, 1 Apr 2013 11:07:02 -0500 (CDT) From: Eduardo Valentin To: Greg Kroah-Hartman CC: , , , Eduardo Valentin Subject: [PATCH 05/14] staging: ti-soc-thermal: report alert events on OMAP5 devices Date: Mon, 1 Apr 2013 12:04:37 -0400 Message-ID: <1364832286-17304-6-git-send-email-eduardo.valentin@ti.com> X-Mailer: git-send-email 1.7.7.1.488.ge8e1c In-Reply-To: <1364832286-17304-1-git-send-email-eduardo.valentin@ti.com> References: <1364832286-17304-1-git-send-email-eduardo.valentin@ti.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org OMAP5430 devices have the capability to generate alert temperature. Thus, whenever a T_ALERT IRQ is served, the ti-bandgap will call .report_temperature to notify the thermal framework about thermal zone update request. This patch allows OMAP5430 devices to notify the thermal framework about T_ALERT events. Signed-off-by: Eduardo Valentin --- .../staging/ti-soc-thermal/omap5-thermal-data.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/staging/ti-soc-thermal/omap5-thermal-data.c b/drivers/staging/ti-soc-thermal/omap5-thermal-data.c index 0afe9c8..aa16f92 100644 --- a/drivers/staging/ti-soc-thermal/omap5-thermal-data.c +++ b/drivers/staging/ti-soc-thermal/omap5-thermal-data.c @@ -323,6 +323,7 @@ const struct ti_bandgap_data omap5430_data = { .adc_end_val = OMAP5430_ADC_END_VALUE, .expose_sensor = ti_thermal_expose_sensor, .remove_sensor = ti_thermal_remove_sensor, + .report_temperature = ti_thermal_report_sensor_temperature, .sensors = { { .registers = &omap5430_mpu_temp_sensor_registers,