[PORT FROM R2] i2c-designware-pci: increase runtime_pm autosuspend delay to 50msec
authorIllyas Mansoor <illyas.mansoor@intel.com>
Fri, 2 Dec 2011 19:41:25 +0000 (01:11 +0530)
committerbuildbot <buildbot@intel.com>
Wed, 21 Dec 2011 14:42:18 +0000 (06:42 -0800)
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>
drivers/i2c/busses/i2c-designware-pcidrv.c

index 10223fa..fe25699 100644 (file)
@@ -378,7 +378,7 @@ const struct pci_device_id *id)
        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;