]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
EDAC/altera: Fix deferred probing
authorSergey Shtylyov <s.shtylyov@omp.ru>
Mon, 24 Jan 2022 18:55:02 +0000 (21:55 +0300)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 10 Feb 2022 14:31:36 +0000 (15:31 +0100)
commitf96a23303113b6f2c19e331d199054798cae46bb
tree7a6dfd672cc9232f0adbc4a9b0bf4ef2f1a473b8
parente07c9e663fbd149499578f44be38979535520b29
EDAC/altera: Fix deferred probing

BugLink: https://bugs.launchpad.net/bugs/1960516
commit 279eb8575fdaa92c314a54c0d583c65e26229107 upstream.

The driver overrides the error codes returned by platform_get_irq() to
-ENODEV for some strange reason, so if it returns -EPROBE_DEFER, the
driver will fail the probe permanently instead of the deferred probing.
Switch to propagating the proper error codes to platform driver code
upwards.

  [ bp: Massage commit message. ]

Fixes: 71bcada88b0f ("edac: altera: Add Altera SDRAM EDAC support")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220124185503.6720-2-s.shtylyov@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/edac/altera_edac.c