]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: iop3xx: fix deferred probing
authorSergey Shtylyov <s.shtylyov@omp.ru>
Thu, 12 Aug 2021 20:35:09 +0000 (23:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:35 +0000 (09:47 +0200)
commitff24f43135624ac882a85801cdfb484bc7ba82a9
treedb2aaf962fe21842ac4e6ed41afe3806322206d8
parent8185b2d30f9921bd5423e2aa812f114077487765
i2c: iop3xx: fix deferred probing

[ Upstream commit a1299505162ad00def3573260c2c68b9c8e8d697 ]

When adding the code to handle platform_get_irq*() errors in the commit
7434c2ea0c8d ("handle errors returned by platform_get_irq*()"), the
actual error code was enforced to be -ENXIO in the driver for some
strange reason.  This didn't matter much until the deferred probing was
introduced -- which requires an actual error code to be propagated
upstream from the failure site.

While fixing this, also stop overriding the errors from request_irq() to
-EIO (done since the pre-git era).

Fixes: 7434c2ea0c8d ("[PATCH] handle errors returned by platform_get_irq*()")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-iop3xx.c