Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3239897pxb; Mon, 18 Apr 2022 20:15:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdeuV/qoFQEk+OYZvXDtRsIrR8nfFEroOkBKQzL087ftbTkXcrdrYcAPk+OuFBiK/RSVc2 X-Received: by 2002:a05:6a00:134e:b0:50a:7b72:57b1 with SMTP id k14-20020a056a00134e00b0050a7b7257b1mr6906513pfu.50.1650338120451; Mon, 18 Apr 2022 20:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650338120; cv=none; d=google.com; s=arc-20160816; b=EUooMslt/a2yt7ywrB1SsYiXxpDKswIyzRLDDw3sgtnt4Mid5mYCVnr2pY0F9tX6Os L5/IZ7YB4kCkxwoaDKBVrG1treG4GdxIpxAP1zNOfzs0gycDQGzLX87yhQ6Wb/GggM2Q FHLwZrU2twPgEJi11mIj90TGxr6PIFdshp7etKT443MRPLKSlkhAprQa94Io17ZgrneF m9J7OnrxCXtEC3SEtcYjd8xk15tqxuY1YRo65+FidRolu/IHKG3ujc24xlsBjZBlGzXE FelbZHx/EFFkt9cfBPdkT+b3goyx02fsNVNWgd2LV3agqHSkKdz7jyWFwIgVb/b1jbwI XzTg== 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 :dkim-filter; bh=vj0lnOdsk0bHFr5EZlPrXDBc40yXZt3qOC1HHQtuVGE=; b=jU+j8pGT2LtQCgAfxeBQzxXhMQm8CwhBFunI2oLWQzqk64m84dNt8cTWCitrEWY7ni HN0HDyDMjbaNbM6cT8iLIIPxW889HtUfmjhe0uYDwhd6yztHYbAGAIAKhNMAqkZ3ChBU YPHMsj0iIAFYSxJLvS7SfYfNqs9Is3siXHzLbcxP9UHNvV7Pf7B48760pE8LoDJcrk3K zu14L1qReShAVgsT56A75Hz5Ps7euZAbMjuv5Dnq5oSqqJ8MVLLhtCq9V4LTBJNVcG7D 8xc6ml1BE45KScf+5YIMsgMNZuRdYlzlAfB2NLWmI5keqmQwyKAtKG9HYu/HwX4voGL4 3PlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=NyyLuiJ0; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170903024600b001586954b486si11032203plh.314.2022.04.18.20.15.02; Mon, 18 Apr 2022 20:15:20 -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=@linux.microsoft.com header.s=default header.b=NyyLuiJ0; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbiDRVhj (ORCPT + 99 others); Mon, 18 Apr 2022 17:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbiDRVhh (ORCPT ); Mon, 18 Apr 2022 17:37:37 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72FB5655C; Mon, 18 Apr 2022 14:34:57 -0700 (PDT) Received: from sequoia (162-237-133-238.lightspeed.rcsntx.sbcglobal.net [162.237.133.238]) by linux.microsoft.com (Postfix) with ESMTPSA id 482EB2034C72; Mon, 18 Apr 2022 14:34:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 482EB2034C72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1650317697; bh=vj0lnOdsk0bHFr5EZlPrXDBc40yXZt3qOC1HHQtuVGE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NyyLuiJ0VoRVuAIRC2aoUJ2gtQHHauWDD/gmDJcRNyEvsAl3rD5zEPKVCKdznx+WP /PFgtpmyoDfsnCWG6x5WkBIe8W06JLcSj4O/w0ByAxZf2DcEBEG/WAdyPyLKU5A+do 3py4Q2MusGAI33EDBQQbXFSlU4RdqHHUBRR8xX78= Date: Mon, 18 Apr 2022 16:34:53 -0500 From: Tyler Hicks To: Borislav Petkov Cc: Greg Kroah-Hartman , 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: <20220418213453.GB31854@sequoia> References: <20220118152816.GA89184@sequoia> <20220118195401.GB89184@sequoia> <20220404215640.GA626436@sequoia> <20220418204029.GA31854@sequoia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 2022-04-18 23:13:36, Borislav Petkov wrote: > 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? The patches to modify the API have become stale. There have been no new comments or revisions since Feb. What I'm proposing is to proceed with merging this simple fix and let the folks discussing the API changes adjust the use in the dmc250 driver if/when they decide to revive the API changes. Tyler > > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette >