]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: return probe deferred status on dev_pm_domain_attach
authorKieran Bingham <kieranbingham@gmail.com>
Mon, 12 Oct 2015 20:54:43 +0000 (21:54 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Oct 2015 11:35:32 +0000 (13:35 +0200)
commit7d24f596107434329597ca8e761949e8c2823b67
tree082654107d5a76581060c8f516ad06995c382aca
parent186f6599ed5cde61c9827a5391f6e95cc77b81bf
i2c: return probe deferred status on dev_pm_domain_attach

A change of return status was introduced in commit 205a33e55815
("i2c: allow specifying separate wakeup interrupt in device tree")

The commit prevents the defer status being passed up the call stack
appropriately when dev_pm_domain_attach returns -EPROBE_DEFER.

Catch the PROBE_DEFER and clear up the IRQ wakeup status

Signed-off-by: Kieran Bingham <kieranbingham@gmail.com>
Fixes: 205a33e55815 ("i2c: allow specifying separate wakeup interrupt in device tree")
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c