spi: omap2-mcspi: add support for pm_runtime autosuspend
commit27b5284cfbe187732ebb184b03ea693f44837f9d
authorShubhrajyoti D <shubhrajyoti@ti.com>
Mon, 26 Mar 2012 11:34:22 +0000 (26 17:04 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 10 Apr 2012 20:10:51 +0000 (10 14:10 -0600)
treec68a049a77aaef421e3732e42b0bd5c359867918
parent1bd897f84964c2ce3a28d11f7eb7c4e0a8d3ca3c
spi: omap2-mcspi: add support for pm_runtime autosuspend

Adds support for configuring the omap2-mcspi driver use autosuspend for
runtime power management. This can reduce the latency in starting an
spi transfer by not suspending the device immediately following
completion of a transfer. If another transfer then takes place before
the autosuspend timeout (2 secs), the call to resume the device can
return immediately saving some save/ restore cycles.

Acked-by: Govindraj.R <govindraj.raja@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
drivers/spi/spi-omap2-mcspi.c