提交 6005a8e9 编写于 作者: M Mauro Carvalho Chehab

media: i2c: ccs-core: return the right error code at suspend

If pm_runtime resume logic fails, return the error code
provided by it, instead of -EAGAIN, as, depending on what
caused it to fail, it may not be something that would be
recovered.

Fixes: cbba45d4 ("[media] smiapp: Use runtime PM")
Reviewed-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 747bad54
......@@ -3093,7 +3093,7 @@ static int __maybe_unused ccs_suspend(struct device *dev)
if (rval < 0) {
pm_runtime_put_noidle(dev);
return -EAGAIN;
return rval;
}
if (sensor->streaming)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册