BZ: 16187
i2c-designware has runtime autosuspend delay set
at 5msec which causes lot of suspend/resume trash.
With pmu_sss_states we can clearly see the trash
for I2C0 and I2C2 devices with repeated touching device
we see a count of around 1400 for I2C0.
Changed the autosuspend delay to 50msecs this reduced
the trashing considerably to around 29 for I2C0 and 3 for
I2C2
Change-Id: Ia0f6f908ef1c2a87672f10fd62549b5036b77d41
Orig-Change-Id: Icc7018da6542750739bb932851aecdd3596561b1
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/29307
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
pm_runtime_put_noidle(&pdev->dev);
pm_runtime_allow(&pdev->dev);
pm_runtime_use_autosuspend(&pdev->dev);
- pm_runtime_set_autosuspend_delay(&pdev->dev, 5);
+ pm_runtime_set_autosuspend_delay(&pdev->dev, 50);
return 0;