]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Mark adapter devices with pm_runtime_no_callbacks
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 16 Apr 2015 12:05:19 +0000 (13:05 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 23 Apr 2015 17:35:31 +0000 (19:35 +0200)
commit52f9ab1dbf05143a71685ac2db250cd2df529b19
treedc8914516b2813a750126056b81731a01bd7a3d5
parent1c65aaf7862590ad4573f4458d6f1d3b0958c43e
i2c: Mark adapter devices with pm_runtime_no_callbacks

Commit 9f02dadafd3b ("i2c: Remove support for legacy PM") removed the PM
ops from the bus type, which causes the pm operations on the s3c2410
adapter device to fail (-ENOSUPP in rpm_callback). The adapter device
doesn't get bound to a driver and as such can't have its own pm_runtime
callbacks. Previously this was fine as the bus callbacks would have been
used, but now this can cause devices which use PM runtime and are
attached over I2C to fail to resume.

This commit fixes this issue by marking all adapter devices with
pm_runtime_no_callbacks, since they can't have any.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Beata Michalska <b.michalska@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: 9f02dadafd3b
Cc: stable@kernel.org
drivers/i2c/i2c-core.c