public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: return probe deferred status on dev_pm_domain_attach
@ 2015-10-11 11:39 Kieran Bingham
  2015-10-12  7:23 ` Wolfram Sang
  0 siblings, 1 reply; 7+ messages in thread
From: Kieran Bingham @ 2015-10-11 11:39 UTC (permalink / raw)
  To: wsa, linux-i2c; +Cc: linux-kernel, Kieran Bingham

A change of return status was introduced in commit 3fffd1283927
("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.

To fix we change this back to the original return status;

Signed-off-by: Kieran Bingham <kieranbingham@gmail.com>
---

 drivers/i2c/i2c-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 5f89f1e..df83015 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -701,7 +701,7 @@ static int i2c_device_probe(struct device *dev)
 			goto err_detach_pm_domain;
 	}
 
-	return 0;
+	return status;
 
 err_detach_pm_domain:
 	dev_pm_domain_detach(&client->dev, true);
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-12 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 11:39 [PATCH] i2c: return probe deferred status on dev_pm_domain_attach Kieran Bingham
2015-10-12  7:23 ` Wolfram Sang
2015-10-12  7:24   ` Wolfram Sang
2015-10-12 11:17     ` Kieran Bingham
2015-10-12 19:40       ` Wolfram Sang
2015-10-12 19:50         ` Kieran Bingham
2015-10-12 11:15   ` Kieran Bingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox