Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b557b058 authored by Atul Raut's avatar Atul Raut
Browse files

i2c: i2c-qcom-geni: Implementing thaw callback



Hibernation may fail after this driver's freeze
callback.
Implement thaw callback to undo the changes
done in freeze callback.

Change-Id: I0b2eef948ad79812f44fae8f8aa4b7e88b238c85
Signed-off-by: default avatarAtul Raut <araut@codeaurora.org>
parent 3eb9c77d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 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
@@ -1165,6 +1165,7 @@ static const struct dev_pm_ops geni_i2c_pm_ops = {
	.runtime_resume		= geni_i2c_runtime_resume,
	.freeze			= geni_i2c_suspend_noirq,
	.restore		= geni_i2c_hib_resume_noirq,
	.thaw		= geni_i2c_hib_resume_noirq,
};

static int ssr_i2c_force_suspend(struct device *dev)