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

Commit 5c47ba44 authored by Mao Li's avatar Mao Li
Browse files

input: synaptics_dsx_2.6: fix CTP power issue for QRD8953



Synaptics touch controller does not go to sleep in suspend because
L6 is still enabled. Disable L6 in suspend to ensure CTP go into
sleep mode.

Change-Id: I40f3f380c1a85c292029d4e22e49bebf25bd198c
Signed-off-by: default avatarMao Li <maol@codeaurora.org>
parent 44729256
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -4483,6 +4483,10 @@ exit:
	}
	}
	mutex_unlock(&exp_data.mutex);
	mutex_unlock(&exp_data.mutex);


	if (!rmi4_data->suspend) {
		synaptics_rmi4_enable_reg(rmi4_data, false);
		synaptics_rmi4_get_reg(rmi4_data, false);
	}
	rmi4_data->suspend = true;
	rmi4_data->suspend = true;


	return 0;
	return 0;
@@ -4509,6 +4513,11 @@ static int synaptics_rmi4_resume(struct device *dev)


	rmi4_data->current_page = MASK_8BIT;
	rmi4_data->current_page = MASK_8BIT;


	if(rmi4_data->suspend) {
		synaptics_rmi4_get_reg(rmi4_data, true);
		synaptics_rmi4_enable_reg(rmi4_data, true);
	}

	synaptics_rmi4_sleep_enable(rmi4_data, false);
	synaptics_rmi4_sleep_enable(rmi4_data, false);
	synaptics_rmi4_irq_enable(rmi4_data, true, false);
	synaptics_rmi4_irq_enable(rmi4_data, true, false);