ARM: OMAP: convert I2C driver to PM QoS for MPU latency constraints
authorJean Pihet <jean.pihet@newoldbits.com>
Thu, 20 Sep 2012 16:08:03 +0000 (18:08 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 6 Oct 2012 11:43:38 +0000 (13:43 +0200)
commit3db11feffc1ad2ab9dea27789e6b5b3032827adc
treea278dcfc5c39ab80fc0357645f87754ed9f51423
parent43fea5813c56e4327371fd3c2209791ef7822de2
ARM: OMAP: convert I2C driver to PM QoS for MPU latency constraints

Convert the driver from the outdated omap_pm_set_max_mpu_wakeup_lat
API to the new PM QoS API.
Since the constraint is on the MPU subsystem, use the PM_QOS_CPU_DMA_LATENCY
class of PM QoS. The resulting MPU constraints are used by cpuidle to
decide the next power state of the MPU subsystem.

The I2C device latency timing is derived from the FIFO size and the
clock speed and so is applicable to all OMAP SoCs.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Acked-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
arch/arm/plat-omap/i2c.c
drivers/i2c/busses/i2c-omap.c
include/linux/i2c-omap.h