i2c: at91: add support for runtime PM
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 24 Oct 2014 06:50:15 +0000 (14:50 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Nov 2014 08:34:59 +0000 (09:34 +0100)
commitd64a818859af3b6fbe0f6d61b4b82676b561ce5c
tree446a6228adb322a46d0b1dd614ab244a58ba77d5
parent194fa7ff67f102023d198dfe658614a31dcad8d4
i2c: at91: add support for runtime PM

Drivers should put the device into low power states proactively whenever the
device is not in use. Thus implement support for runtime PM and use the
autosuspend feature to make sure that we can still perform well in case we see
lots of i2c traffic within short period of time.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-at91.c