[PATCH] ARM: OMAP: convert I2C driver to PM QoS for MPU latency constraints

Shubhrajyoti Datta omaplinuxkernel at gmail.com
Fri Sep 21 02:20:52 EDT 2012


On Thu, Sep 20, 2012 at 9:38 PM, Jean Pihet <jean.pihet at newoldbits.com> wrote:
> 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.
Agree thanks for doing that.

>
> Signed-off-by: Jean Pihet <j-pihet at ti.com>
> ---
> Rebased on git://git.pengutronix.de/git/wsa/linux.git, branch
> i2c-embedded/for-next
thanks ,
tested with i2c tools  on omap4sdp and omap3sdp

Acked-by: Shubhrajyoti D <shubhrajyoti at ti.com>

> ---
>  arch/arm/plat-omap/i2c.c      |   21 ---------------------
>  drivers/i2c/busses/i2c-omap.c |   32 ++++++++++++++++++--------------
>  include/linux/i2c-omap.h      |    1 -
>  3 files changed, 18 insertions(+), 36 deletions(-)
>



More information about the linux-arm-kernel mailing list