From 8383d489d0837fc31c4e45436b9aeac898fa2ad5 Mon Sep 17 00:00:00 2001 From: Atul Raut Date: Tue, 3 Mar 2020 17:25:09 -0800 Subject: [PATCH] thermal: qcom-spmi-temp-alarm: Add support for thaw callback Hibernation may fail after this driver's freeze callback. Implement thaw callback to undo the changes done in freeze callback. Change-Id: I10c3b8a36986f7971c78bb14a88bf5a228a516ae Signed-off-by: Atul Raut --- drivers/thermal/qcom-spmi-temp-alarm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom-spmi-temp-alarm.c index 8b2600109b8b..6816c9411cab 100644 --- a/drivers/thermal/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom-spmi-temp-alarm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2015, 2017-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2015, 2017-2020 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -445,6 +445,7 @@ static int qpnp_tm_freeze(struct device *dev) static const struct dev_pm_ops qpnp_tm_pm_ops = { .freeze = qpnp_tm_freeze, .restore = qpnp_tm_restore, + .thaw = qpnp_tm_restore, }; static const struct of_device_id qpnp_tm_match_table[] = {