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

Commit d9659b8e authored by Nela Gurevich's avatar Nela Gurevich
Browse files

input: synaptics: Secure touch clocks



i2c clocks were enabled only if the device was not
previously ‘active’, but disabled unconditionally.
The fix is to enable the clocks unconditionally too

Change-Id: I5bfda95153f7832bdf86f4949838145494e45b80
Signed-off-by: default avatarNela Gurevich <nelag@codeaurora.org>
parent c025b09c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ static int synaptics_rmi4_i2c_get(struct synaptics_rmi4_data *rmi4_data)

	mutex_lock(&rmi4_data->rmi4_io_ctrl_mutex);
	retval = pm_runtime_get_sync(i2c->adapter->dev.parent);
	if (retval == 0) {
	if (retval >= 0) {
		retval = synaptics_rmi4_clk_prepare_enable(rmi4_data);
		if (retval)
			pm_runtime_put_sync(i2c->adapter->dev.parent);