staging: omap-thermal: add IRQ debugging messaging
authorEduardo Valentin <eduardo.valentin@ti.com>
Tue, 13 Nov 2012 18:10:03 +0000 (14:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 23:08:31 +0000 (15:08 -0800)
For debugging purposes, print the IRQ event for the domain being processed.

Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omap-thermal/omap-bandgap.c

index 1cae5ed944ebac4c9490192cfc39c33a5426fee6..3eb726f29d15133fed7227fe464bf94425a774d3 100644 (file)
@@ -113,6 +113,11 @@ static irqreturn_t talert_irq_handler(int irq, void *data)
 
                omap_bandgap_writel(bg_ptr, ctrl, tsr->bgap_mask_ctrl);
 
+               dev_dbg(bg_ptr->dev,
+                       "%s: IRQ from %s sensor: hotevent %d coldevent %d\n",
+                       __func__, bg_ptr->conf->sensors[i].domain,
+                       t_hot, t_cold);
+
                /* read temperature */
                temp = omap_bandgap_readl(bg_ptr, tsr->temp_sensor_ctrl);
                temp &= tsr->bgap_dtemp_mask;