lkml.org 
[lkml]   [2018]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/17] thermal: qoriq: enable/check sensor after its setup is finished
    Date
    Enable/check sensor after enabling monitoring.

    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    ---
    drivers/thermal/qoriq_thermal.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c
    index cdd6f59..2695021 100644
    --- a/drivers/thermal/qoriq_thermal.c
    +++ b/drivers/thermal/qoriq_thermal.c
    @@ -242,13 +242,13 @@ static int qoriq_tmu_probe(struct platform_device *pdev)
    goto err_tmu;
    }

    - thermal_zone_device_toggle(data->tz, true);
    - thermal_zone_device_check(data->tz);
    -
    /* Enable monitoring */
    site |= 0x1 << (15 - data->sensor_id);
    tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr);

    + thermal_zone_device_toggle(data->tz, true);
    + thermal_zone_device_check(data->tz);
    +
    return 0;

    err_tmu:
    --
    1.9.1
    \
     
     \ /
      Last update: 2018-04-10 14:46    [W:4.220 / U:0.780 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site