Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1077575rwl; Fri, 31 Mar 2023 06:29:47 -0700 (PDT) X-Google-Smtp-Source: AKy350at8L+I/w9/yw/gZweiZtYglokDmAupsXHy3bzarkfL0XjuWsgn0GMZljWSkn4jLp1Z2iHN X-Received: by 2002:a05:6402:268e:b0:502:465:28d4 with SMTP id w14-20020a056402268e00b00502046528d4mr6206961edd.1.1680269387285; Fri, 31 Mar 2023 06:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680269387; cv=none; d=google.com; s=arc-20160816; b=IjUj7V+uIMfjvrAQToMzchn0cfbltEdg80uDS6P1otvmVbvb4OCuagfIgN2NM/JYLK Np3V/zDPjV3zfpRqusRwkiCIqD1c4L5H5cSOjX8mFYyoh++ob6eqNyKsPm3RrWbDmDE3 /AqI1Taw64goCbKO3BIk6AGsc1DQnVVvxJaoTOhG9Ks6RinQzVFMbFguMnra1j8c52YO Gm6D8VFB3wYeTAx4sV6DxJURsbLOfqwe+FDySu0ZeVPp3xLChE6TTT8/O1jGucPetNed yBPzowFy9jWHCovpofk/n9DhcgYjkKpjEiEEAFQWPTQ21nh13dc3Qxum+I9O4Ff3RL67 Tyng== 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=OJyDbJxX7vtro1JzJvdgdpFIRWIxcBgfzMxq2+3qYlM=; b=F2cMuIGQsba8AG6r9gmEpF9GatXqtoYgzYcIMsbUlphaq4yl3tmw5NVFt0czLNgp2K EZPGRgexuuBxrv9+Nx3XaQ80klhRP4NzaYGCgNWoxfouE/xixMoketq2Jv2T3gswm4Zr L0eGRxzCkDq9xwKqCt6Fd3esLCJAUSyM54kfgPFR229OakwWMfEx/o2CZSf9a/z1qMo0 LE6ckf9waUzL+qwjqEmS3wM9Idu0qGWxRVJL6RgTtCGBAcUkP3PdbOza7s1cltcAgi3Z 5ZSFKAxPTlIWinbnCP/Ook0f97DWKodDYnxmcqo1FXnABsACjky67F61tR93ecw8xlpZ WpDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=n1dTHJSM; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a05640208cd00b005024a8dc728si1953335edz.243.2023.03.31.06.29.21; Fri, 31 Mar 2023 06:29:47 -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=@linuxfoundation.org header.s=korg header.b=n1dTHJSM; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231771AbjCaNRO (ORCPT + 99 others); Fri, 31 Mar 2023 09:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbjCaNRM (ORCPT ); Fri, 31 Mar 2023 09:17:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 415091A47B; Fri, 31 Mar 2023 06:17:11 -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 ams.source.kernel.org (Postfix) with ESMTPS id CC3BBB82DC1; Fri, 31 Mar 2023 13:17:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E771C433EF; Fri, 31 Mar 2023 13:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680268628; bh=GzcVFio4AKLjf3M2ehf5Onz2XStfPLZyBXJzNjDKbCQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n1dTHJSMtP+h8o9JZ5ceaqLuJq8JJu4FOd8y7ZsWjRgJd2/b/Zzav6DSejtYk/c2k QG4KRYBoP97Dmbed7Q0od/I7oreKHUNVFaYc6IMYiCueDxMeu8F/gKsx1P6TKiWy9Z /QonQCe1RgF64HyKh5BI3Pbk6W5f4zI/IfVoFH3U= Date: Fri, 31 Mar 2023 15:17:05 +0200 From: Greg KH To: Jianmin Lv Cc: Thomas Gleixner , Marc Zyngier , linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Lorenzo Pieralisi , Jiaxun Yang , Huacai Chen , loongson-kernel@lists.loongnix.cn, stable@vger.kernel.org Subject: Re: [PATCH V2 1/5] irqchip/loongson-eiointc: Fix returned value on parsing MADT Message-ID: References: <20230331113900.9105-1-lvjianmin@loongson.cn> <20230331113900.9105-2-lvjianmin@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230331113900.9105-2-lvjianmin@loongson.cn> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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 On Fri, Mar 31, 2023 at 07:38:56PM +0800, Jianmin Lv wrote: > In pch_pic_parse_madt(), a NULL parent pointer will be > returned from acpi_get_vec_parent() for second pch-pic domain > related to second bridge while calling eiointc_acpi_init() at > first time, where the parent of it has not been initialized > yet, and will be initialized during second time calling > eiointc_acpi_init(). So, it's reasonable to return zero so > that failure of acpi_table_parse_madt() will be avoided, or else > acpi_cascade_irqdomain_init() will return and initialization of > followed pch_msi domain will be skipped. > > Although it does not matter when pch_msi_parse_madt() returns > -EINVAL if no invalid parent is found, it's also reasonable to > return zero for that. > > Signed-off-by: Jianmin Lv > --- > drivers/irqchip/irq-loongson-eiointc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.