Bug 199771 - After hibernate, trackpad does not work, requires reboot
Summary: After hibernate, trackpad does not work, requires reboot
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: I2C (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Drivers/I2C virtual user
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-20 01:34 UTC by Jamie Macdonald
Modified: 2019-08-25 14:02 UTC (History)
4 users (show)

See Also:
Kernel Version: 4.16.8
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Full log of hibernate cycle (11.87 KB, text/plain)
2018-05-20 01:34 UTC, Jamie Macdonald
Details

Description Jamie Macdonald 2018-05-20 01:34:29 UTC
Created attachment 276071 [details]
Full log of hibernate cycle

After resume from hibernation, my log gets filled with i2c messages:

journalctl | grep i2c

May 19 17:57:58 blueberry kernel: i2c_designware 80860F41:00: Unknown Synopsys component type: 0xffffffff
May 19 17:57:58 blueberry kernel: i2c_designware 80860F41:00: timeout waiting for bus ready
May 19 17:57:58 blueberry kernel: i2c_hid i2c-SYN1EDE:00: failed to change power setting.
May 19 17:57:58 blueberry kernel: dpm_run_callback(): i2c_hid_resume+0x0/0x160 [i2c_hid] returns -110
May 19 17:57:58 blueberry kernel: PM: Device i2c-SYN1EDE:00 failed to restore async: error -110
May 19 17:57:58 blueberry kernel: i2c_designware 80860F41:00: timeout in disabling adapter
==== BACK FROM HIBERNATE ====
May 19 17:59:28 blueberry kernel: i2c_designware 80860F41:00: controller timed out
May 19 17:59:29 blueberry kernel: i2c_designware 80860F41:00: controller timed out
May 19 17:59:30 blueberry kernel: i2c_designware 80860F41:00: controller timed out
May 19 17:59:31 blueberry kernel: i2c_designware 80860F41:00: controller timed out
May 19 17:59:32 blueberry kernel: i2c_designware 80860F41:00: controller timed out

Full log attached.
Comment 1 Aidar 2019-06-19 10:04:07 UTC
if this device is anything like on Dell XPS 9343, this this helps:


--- linux/drivers/i2c/busses/i2c-designware-platdrv.c   2018-06-04 03:15:21.000000000 +0600
+++ linux/drivers/i2c/busses/i2c-designware-platdrv.c.c 2018-06-07 12:09:00.318924805 +0600
@@ -350,10 +350,10 @@
        ACPI_COMPANION_SET(&adap->dev, ACPI_COMPANION(&pdev->dev));
        adap->dev.of_node = pdev->dev.of_node;
 
-       dev_pm_set_driver_flags(&pdev->dev,
-                               DPM_FLAG_SMART_PREPARE |
-                               DPM_FLAG_SMART_SUSPEND |
-                               DPM_FLAG_LEAVE_SUSPENDED);
+       //dev_pm_set_driver_flags(&pdev->dev,
+       //                      DPM_FLAG_SMART_PREPARE |
+       //                      DPM_FLAG_SMART_SUSPEND |
+       //                      DPM_FLAG_LEAVE_SUSPENDED);
 
        /* The code below assumes runtime PM to be disabled. */
        WARN_ON(pm_runtime_enabled(&pdev->dev));


depending on the kernel version - this works on 4.19.XX kernels and bellow.

Note You need to log in before you can comment on or make changes to this bug.