On 3/12/23 00:15, Jan Jasper de Kroon wrote:
From: Ondřej Jirman <megi@xxxxxx> The Goodix touchscreen controller used in PinePhone is not properly suspended during system sleep, leading to high power consumption. This commit modifies the driver to hold the controller in reset during system sleep, reducing power consumption by around 40mW. The original patch also disabled the regulators during system sleep, but this could cause issues with other peripherals attached to the same power supplies. Hence, this commit only holds the controller in reset during system sleep and does not attempt to power it off. A separate commit adds a new device tree property "hold-in-reset-in-suspend" to control the hold-in-reset behavior of the controller during system sleep. Signed-off-by: Ondrej Jirman <megi@xxxxxx> Signed-off-by: Jan Jasper de Kroon <jajadekroon@xxxxxxxxx>
Tested-by: Jarrah Gosbell <kernel@undef.tools> Thank you for upstreaming these, Jarrah.