Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4309332pxb; Tue, 19 Apr 2022 23:41:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO4wSx+dAM382w39J8V+Q4JIQTvUxhtSHV6ptdd9ynXdBtcIyX0+P1nfUCGWqDGlPf4W94 X-Received: by 2002:a65:6a97:0:b0:398:ae2:d207 with SMTP id q23-20020a656a97000000b003980ae2d207mr17777849pgu.197.1650436918651; Tue, 19 Apr 2022 23:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650436918; cv=none; d=google.com; s=arc-20160816; b=k3f7VDGllGcYinbJq5U/49Tdfl2XBt6to4Jo+5o0q5sCBWMKyRaqHDmCEhVcnijmah lXLqPH/fcV7mXAy/0DEA6Cx3UProL0kBKuksEYoduHhHRIkFC2iPQmGTdQYb5TkHKcq6 ZGsPYRZ7GVQB27+GL5jleHWIwgyjx15iUH4Xbf6/jtAJ1k4ww7ZvG5XaoNU2eFVBNxbW Cgqqaj3cYZFeI+j2lV31LvH0ySeXozMHDmrcnwiyNi9APIIrdopo8HGPFViMpOlDr9iU oOH97naLdYE+Xj3A6FnWa3OyhE/n6JgjShUJDcJDEA7ylSrT85Gt0zp/fqTJXwG0PQZT eE1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kNgT3g7hZWr4L1MacL0M4zuzvv4T8Jt/QpST8Er4IZM=; b=CJZJP8cBdYNS0Icgazb10LUxSG0ac3Qb6LYyJbdJbKLedmzMX6qodO0aLuJmihAqGy Ti6nqkT662iAmfE/p1I9iiAqEWWHatD7aHU93rH9duXZV5GiHefHBo67lvZpxXT9sbaz q5r8BccfEdl5abGt+MMvkFEDMLMZLY5nuDEVcyXlqpKJtYuBSlb62EMOrWQuyBWqB8eK ELkgao8UaKfurk99PIHK3eEvt2nxRLN4Jt036/DF86thhWu/kIfTpR2wbtCuAbzXId7s 0Moa05cE/C6UAkyhnm747HR8M6XT0+4MhoxPxgq3UeoH+OsZgtcEn5BARyYK6ACI5Wmy QicA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gPt9RlH7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t30-20020a63225e000000b0039fea06eb77si1489129pgm.260.2022.04.19.23.41.44; Tue, 19 Apr 2022 23:41:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gPt9RlH7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347966AbiDRVQ1 (ORCPT + 99 others); Mon, 18 Apr 2022 17:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345194AbiDRVQ0 (ORCPT ); Mon, 18 Apr 2022 17:16:26 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E508A2CCBB; Mon, 18 Apr 2022 14:13:46 -0700 (PDT) Received: from zn.tnic (p200300ea971b58fe329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:58fe:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E8E751EC04D6; Mon, 18 Apr 2022 23:13:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1650316421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=kNgT3g7hZWr4L1MacL0M4zuzvv4T8Jt/QpST8Er4IZM=; b=gPt9RlH7iaDq4qO0X02NbLmNo1Osv7wwJMGEXgYVBZ85QjgItXneHUk4Gg9nYeekB6ujvI Q5IovE9huXF72e7p8yZu+AW0/2V31GAXASCAwfW7d6uflj0nNFhP4I3ZW39lZtmOARR986 YqmaDAFfz9oOsa2WMMLrFnNyfsB3y+0= Date: Mon, 18 Apr 2022 23:13:36 +0200 From: Borislav Petkov To: Tyler Hicks , Greg Kroah-Hartman Cc: Sasha Levin , Lei Wang , Tony Luck , Mauro Carvalho Chehab , Sinan Kaya , Shiping Ji , James Morse , Robert Richter , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] EDAC/dmc520: Don't print an error for each unconfigured interrupt line Message-ID: References: <20220118152816.GA89184@sequoia> <20220118195401.GB89184@sequoia> <20220404215640.GA626436@sequoia> <20220418204029.GA31854@sequoia> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220418204029.GA31854@sequoia> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, Apr 18, 2022 at 03:40:29PM -0500, Tyler Hicks wrote: > > The API argument seems to have fizzled out in v2: > > > > https://lore.kernel.org/lkml/20220212201631.12648-1-s.shtylyov@omp.ru/ I don't see those two upstream yet, on a quick glance. Perhaps in Greg's tree? Greg, what's the latest with that platform_get_*_optional() fun? Also, the second of those two patches above has: + * Return: non-zero IRQ number on success, 0 if IRQ wasn't found, negative error + * number on failure. */ int platform_get_irq_byname_optional(struct platform_device *dev, and your patch does: + irq = platform_get_irq_byname_optional(pdev, dmc520_irq_configs[idx].name); irqs[idx] = irq; so on failure, it would still write the negative error value in irqs[idx]. How can that be right? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette