]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
i2c: synquacer: fix deferred probing
authorSergey Shtylyov <s.shtylyov@omp.ru>
Thu, 12 Aug 2021 20:39:11 +0000 (23:39 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:27:15 +0000 (11:27 +0200)
commitb1eab0ca4511f0b8a3a5dc14b4c50a77f84e80ef
tree6a508cb0683f7d581996f6962fbb427300fc165c
parent88b73622fb823da11faf3315f2c2c1a20b303a70
i2c: synquacer: fix deferred probing

BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit 8d744da241b81f4211f4813b0d3c1981326fa9ca ]

The driver overrides the error codes returned by platform_get_irq() to
-ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the
error codes upstream.

Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/i2c/busses/i2c-synquacer.c