Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1828115pxb; Wed, 9 Feb 2022 05:27:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzlVOA8y6KuxSx5D6/QM126Od24BTz9xkm8S0x2Z2mjQqpnhHuaBhYNR9Xvdka4gR0PU+q X-Received: by 2002:a17:90a:de01:: with SMTP id m1mr3372423pjv.215.1644413278706; Wed, 09 Feb 2022 05:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644413278; cv=none; d=google.com; s=arc-20160816; b=m90UIJCn7WqSn0MaUDXKw+fdsOI8I2cS4QAvvxeHunAd7zXGkfpM0RsyEoT4UKEzRU QRzmChuUlJzOl3xV0brlK4ZUsUouFyNlBBCtgM+NbCIGjefP765dlPgN2ep5fD4bGAxI LZZM6SEfBzBRmHERIC2G0T/F6wWTOC9RcxDViTtsWW/aiyGu0CzqQJn05b+/13E63GvZ yRzbn8B+TOHiCRFFxEVKWNVItMLw49hHgqb3ALAK1zqjNJsP4pDr4qx58iq9OZS8c43h LITr+E3RND4Nwc/sJwSV7F/hfzfQJtLgpJGpHuB12QdKZGW9trc2sOzdzpIOI6BzaxP9 uyhQ== 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=IqkVqooLFMU705KKdnExpKPFoSXQq96nKBPcUq6bRn4=; b=J1Uu6J2ECm5m5iSoiRdQdIVyZVl0uiKdpx5w62l/9EAKoOD8VX+nO6kFjwkEi0cOb6 LWRT8x0/Ww3OQ8PFlxpxRIEuKt+blWuc0x8YrdjV8T8UhnzAy8FkgHWfb1A8hMWTvZ1V KR31ekNFIUaxJlxET4lw4SvuGt27YUubLbwqU9FbKAp3lL5hy39VNlNi141Ws0FNZywS cTmWfiK90o2rxWIpwiz3JwpFvHPZ/3rbiv14whdCA9k3ge5jW7ijWFc6ZRfAmxArV05i nTsh5vh/j5sl6NrVt/nM14IewUx0SlNjDKY4anWAEqnzwbj5AaJeCIiTZ8h67GVqVJ+G kxww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FElPdqdn; 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 u4si7386319plf.36.2022.02.09.05.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:27:58 -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=FElPdqdn; 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 39F18E04AC83; Wed, 9 Feb 2022 02:12:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383457AbiBGLWc (ORCPT + 99 others); Mon, 7 Feb 2022 06:22:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245576AbiBGLSA (ORCPT ); Mon, 7 Feb 2022 06:18:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5916C0401C0; Mon, 7 Feb 2022 03:17:52 -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 79345B8111C; Mon, 7 Feb 2022 11:17:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8718C004E1; Mon, 7 Feb 2022 11:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644232670; bh=3BnQTiy1lYRjKYs33OvlOJ3AUlWRFB7XgubtblS7lzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FElPdqdnIcYnMPLMlWr7FwqBbKovSo+ogq6t3TfMvAx1/JSSNjsYbFvTTOYGEW9tN Y7UgvDhWyllDf3hsymiK4sKDplAO2HkOoTPgwWE19RbpOJjasHdsm/ncHmn1W/J7rj 8CpbdR8W26wybXNsTdVU+x5gloMYz5lX8BtV/qA8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergey Shtylyov , Borislav Petkov Subject: [PATCH 4.19 85/86] EDAC/xgene: Fix deferred probing Date: Mon, 7 Feb 2022 12:06:48 +0100 Message-Id: <20220207103800.472179644@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103757.550973048@linuxfoundation.org> References: <20220207103757.550973048@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 dfd0dfb9a7cc04acf93435b440dd34c2ca7b4424 upstream. The driver overrides error codes returned by platform_get_irq_optional() to -EINVAL 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: 0d4429301c4a ("EDAC: Add APM X-Gene SoC EDAC driver") Signed-off-by: Sergey Shtylyov Signed-off-by: Borislav Petkov Cc: Link: https://lore.kernel.org/r/20220124185503.6720-3-s.shtylyov@omp.ru Signed-off-by: Greg Kroah-Hartman --- drivers/edac/xgene_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/xgene_edac.c +++ b/drivers/edac/xgene_edac.c @@ -1934,7 +1934,7 @@ static int xgene_edac_probe(struct platf irq = platform_get_irq(pdev, i); if (irq < 0) { dev_err(&pdev->dev, "No IRQ resource\n"); - rc = -EINVAL; + rc = irq; goto out_err; } rc = devm_request_irq(&pdev->dev, irq,