Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1823605pxb; Wed, 9 Feb 2022 05:22:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJykJCWCy+aoThhdJvhi1Ks4t2yBmN6VS/WLYmOxj2d6DrWQEuALVFF1zFg9UoxVsoxj5nVF X-Received: by 2002:a63:4408:: with SMTP id r8mr1825918pga.101.1644412949889; Wed, 09 Feb 2022 05:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644412949; cv=none; d=google.com; s=arc-20160816; b=z/myKEs8H4cWRWk/5lwiOa5eNWplCG7s7SBeG/xrtx/aNu2TvgchEkmr7MpkAwp/KL Dqmiz0AxLzr2PpiWp3Wg9TTkZutYhPOxXaN75wAL3m2UOujCa1crzPraASc43i8GVqY6 3VLHSxbrQH0LurEXaeJwIBgNhaZBI6c1URPprjOP0PhPwZiiyVInE53+0jwNiR0A6DB8 HkPgJs3c9bmndBPcscVypGYw8TMZxkcFY4Ag9qGGDB6J0Q9F8hA9dd54ZWcJ7xHtCyfp 5omMBL7+eNPGzEQVVH49pfQ5c/aXRNUBQuPQC2UYUIhMoe1PqAy9A3s/cq6dv0xhqXTZ sduw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZiJVBT7IN0vShhV2Ns73ne7Waa27c4jFamXcyYH9doQ=; b=GrQ9/C0UtRNE9sPEONCc8c3DgtkqKUGpEATZTNwpjTXVAOozXR2KEPjB+0Hcul0sl8 ZS4sii7Q5unEO6jG+8gQVVbnEGq4z2qsSK1qh2/pbLr7CT6izhEJzUf8YmyYJtkOsAMS zgDLCp5OvhtpMkLSKXWpzYKYNeuW/wuTv4R17zkAHXOAtOkr/ff/XqWbRudEbofdmAGf d/fRHV9gdkCjtaPzskeB0HkmsRO2LfAUG+OZbHYacFj/9WOBhpeZqS8Hfw5QTVZGe60g UKrtzElN27Fi2tCdop6BmyYt0zjYo1gVS/W0XsVOVjr0te4ZO6K7W0VcHT4CbXIvXZuX Bzyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pu5knsQS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d9si16011850pfu.143.2022.02.09.05.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:22:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pu5knsQS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 04673E103C8C; Wed, 9 Feb 2022 02:08:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235425AbiBGMAE (ORCPT + 99 others); Mon, 7 Feb 2022 07:00:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383937AbiBGLgK (ORCPT ); Mon, 7 Feb 2022 06:36:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA17C0401DB; Mon, 7 Feb 2022 03:36:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C6C1CB811BB; Mon, 7 Feb 2022 11:36:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD8E5C004E1; Mon, 7 Feb 2022 11:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644233767; bh=s67VpVP7MXMILns6SrqsrSdBqMFhRM8QKqe4wHf8zNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pu5knsQSiGi7JKEUAhUgpiIBJKfW9Up6J7cR0nlvY8OIrkN4q1bCiY7jHxeIvWoDy bnMoi+0LnP//O9tYSvWNV5uNfyy+eSauLWWhosJopPC/luGhd1eQ49kuBcb/tyj4TT Mqrk4dzuE8PMal0w3zjiX6IoWxf8pQablqpe48/0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergey Shtylyov , Borislav Petkov , Dinh Nguyen Subject: [PATCH 5.16 113/126] EDAC/altera: Fix deferred probing Date: Mon, 7 Feb 2022 12:07:24 +0100 Message-Id: <20220207103807.958903019@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103804.053675072@linuxfoundation.org> References: <20220207103804.053675072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergey Shtylyov 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 Signed-off-by: Borislav Petkov Acked-by: Dinh Nguyen Cc: Link: https://lore.kernel.org/r/20220124185503.6720-2-s.shtylyov@omp.ru Signed-off-by: Greg Kroah-Hartman --- drivers/edac/altera_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -350,7 +350,7 @@ static int altr_sdram_probe(struct platf if (irq < 0) { edac_printk(KERN_ERR, EDAC_MC, "No irq %d in DT\n", irq); - return -ENODEV; + return irq; } /* Arria10 has a 2nd IRQ */