Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2137398iof; Tue, 7 Jun 2022 21:00:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2KS4zazfF7j0zkSLizhgp78crWR8tZlKCNcXoL+aZ1+fLnt9zIZMW5i2FdLFuWcNdeavR X-Received: by 2002:a63:9043:0:b0:3fc:7a8d:e744 with SMTP id a64-20020a639043000000b003fc7a8de744mr28634713pge.603.1654660845285; Tue, 07 Jun 2022 21:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654660845; cv=none; d=google.com; s=arc-20160816; b=KWQi0xJyoGS9C1jkPDWcIaO+/C69M1uZBcD3cmGe/wzton1KP3KihqWlVFuf3xLHMP OSirfOJKU1iKczHJ8eMRAqMokM4laC0kZ33MOLGEDW3Eh/lZaNvqmGWQvR05M58pgwdK 5+FBYJ0M1YlBBvWmCKLBHrovpsAFWa+LROOxaOGQYWF6nfTUnm5H2ByukLZknu78gFGl 4oKPRLMaIqiEWi9NvO9yP6YZ3YQBh6NmBLl7WzmRAlNLYi07MExo/8gZkhTvRCYzmcFP uSZplAZ8/hbKkEhfswRFJTdt78cKcJJUgaQSeWxoUiJsnDqKbfQWwlBxpcYChTW+7a/h QjfQ== 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=ADXvqlJqAUiW+kFSwRu7yUO2jnNrwFQi67QfQ+l5Fmg=; b=ambt0mJDhvJ9N/rY0Y7qRTtA2y7+VRKxFBneNANGIUSgrzDfT07TWEtyzANM9djVb+ L5iKicd6e0CP3A6NeDlQB4pDpd2S7glBtLcv6nMEvT9PuilwoCQ8pxPV0BbF2wXD8DCk AnYzwidEG5jlsikV+h3nTy4POve5h0s3z4onYpM6CXEtJTkATlXZV+E9BlyOYOdf0F9h Z2+DGNZ1nUrhEAh7z/eU7AvFf0JYblyykL8wJ7RFRd/bDfvqhmOKE02X14GByXyIq25/ BM9VyDSSbgmGq1WCHceEvMor5VAl20WMBEMgmwYyjkS8bogFmYl0xkawEhk6Tj5LzD90 +0NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OPXrNe2u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id il16-20020a17090b165000b001dc3db49225si30791093pjb.114.2022.06.07.21.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:00:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OPXrNe2u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 DF1471BD7D2; Tue, 7 Jun 2022 20:37:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381222AbiFGWe3 (ORCPT + 99 others); Tue, 7 Jun 2022 18:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378772AbiFGVWi (ORCPT ); Tue, 7 Jun 2022 17:22:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F19B4224D26; Tue, 7 Jun 2022 12:00:19 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id E10B361787; Tue, 7 Jun 2022 19:00:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC4A5C385A2; Tue, 7 Jun 2022 19:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628418; bh=7QQ5grX8R7fbK834V+H9zWsoK0HdlbCrvTqdcW37FDI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OPXrNe2uz9oVcyC4eEIVZocbvjCK3U3q7yEktjK+YRbF+n2pDm6FB6BH1jGc2UyWz CISLrdvimDh0BWdHlXK7zLL29Aif+D+rkBF3YVEYmJHz1pSuqr/aDB81X47Z2c3bE0 tPTMEOBBFlC29+C8jtM+G5zu9/OKt8LkUtYLZ1bY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sinan Kaya , Tyler Hicks , Borislav Petkov , Sasha Levin Subject: [PATCH 5.18 321/879] EDAC/dmc520: Dont print an error for each unconfigured interrupt line Date: Tue, 7 Jun 2022 18:57:19 +0200 Message-Id: <20220607165012.171240640@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 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=unavailable 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: Tyler Hicks [ Upstream commit ad2df24732e8956a45a00894d2163c4ee8fb0e1f ] The dmc520 driver requires that at least one interrupt line, out of the ten possible, is configured. The driver prints an error and returns -EINVAL from its .probe function if there are no interrupt lines configured. Don't print a KERN_ERR level message for each interrupt line that's unconfigured as that can confuse users into thinking that there is an error condition. Before this change, the following KERN_ERR level messages would be reported if only dram_ecc_errc and dram_ecc_errd were configured in the device tree: dmc520 68000000.dmc: IRQ ram_ecc_errc not found dmc520 68000000.dmc: IRQ ram_ecc_errd not found dmc520 68000000.dmc: IRQ failed_access not found dmc520 68000000.dmc: IRQ failed_prog not found dmc520 68000000.dmc: IRQ link_err not dmc520 68000000.dmc: IRQ temperature_event not found dmc520 68000000.dmc: IRQ arch_fsm not found dmc520 68000000.dmc: IRQ phy_request not found Fixes: 1088750d7839 ("EDAC: Add EDAC driver for DMC520") Reported-by: Sinan Kaya Signed-off-by: Tyler Hicks Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220111163800.22362-1-tyhicks@linux.microsoft.com Signed-off-by: Sasha Levin --- drivers/edac/dmc520_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/dmc520_edac.c b/drivers/edac/dmc520_edac.c index b8a7d9594afd..1fa5ca57e9ec 100644 --- a/drivers/edac/dmc520_edac.c +++ b/drivers/edac/dmc520_edac.c @@ -489,7 +489,7 @@ static int dmc520_edac_probe(struct platform_device *pdev) dev = &pdev->dev; for (idx = 0; idx < NUMBER_OF_IRQS; idx++) { - irq = platform_get_irq_byname(pdev, dmc520_irq_configs[idx].name); + irq = platform_get_irq_byname_optional(pdev, dmc520_irq_configs[idx].name); irqs[idx] = irq; masks[idx] = dmc520_irq_configs[idx].mask; if (irq >= 0) { -- 2.35.1