Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp636860iof; Mon, 6 Jun 2022 09:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGnJREnECK0Hhe4MUKLcQl9PQqkuiXcUKDaeHbt2WlrheENrLOs0JA1HYMsEtIHDb8tWCJ X-Received: by 2002:a17:90a:5515:b0:1dc:c1f1:59bd with SMTP id b21-20020a17090a551500b001dcc1f159bdmr62418640pji.81.1654534042454; Mon, 06 Jun 2022 09:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654534042; cv=none; d=google.com; s=arc-20160816; b=uCqvqGz5bKrOi54nXqOuWJ+zcDhpNxJiQTYBZIjH4V4fT8fBilwWsITt8r4sZs0q8v R+d3m4k0QsVtXAEbYeN/QianVl6muN8HmI7hjfNrcxC+Oq1V+F3KqVSpWFYS79i9xzBx i8fT+uGZhPNGNAnPsIROZWSHTjeUr8fKnX6hHFnF7NbT8cVa4jt93jdOga/qKUD/d/HM 4axn3vdITNMw+kF58d8bVGfpBNtQX9lFn2RJynl/WmwOUBJPoAvGH75+uy5cf6QIK8HI 7MfVhRkGm0sSgG/iEOrDwCpPLnIGiaVlLMDS4onX8isB4kWGE2aYPsokSSlr4zhhmIyF Orxw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u4GTu7XnrpEkmuHHC/sb/dHsYc2K+RY0Pot3Mnv7R1U=; b=ZLSTpKcwpP2lVMnghf+NgurWY/HQhT7uzUxeZ/NmdZwvOJazlZ6X74UAbGzUKH/7O+ ns75hEihy4gS4jCIMQ9Uq1bM9HfNrh4zWwNudqCgfpES4ytiohO1/4cLLr4UG0bn+pI6 7MdVDxvgyxiSDal4Z6flUkay1ktM43IlTUg/0gQJVoLW83pfzHMkUMcxFDpwAXk3XTvV r9NUwGLRnb5pL0FX3xm2cGEkcKRcH9Ocb2hKDeQ+F0gFbhr4nP9rxFchUw8pvxfs0txe tq5u+iOxpyPUahs/TufqtA/M9dD964xwOfJS84R9y73TBfTwJwy2I9ec9xv9SAC6KW4q qz4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Nnjkw3FJ; 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=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w20-20020a170902d11400b00161f67c349bsi18576499plw.539.2022.06.06.09.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:47:22 -0700 (PDT) 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=@foss.st.com header.s=selector1 header.b=Nnjkw3FJ; 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=foss.st.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE442325260; Mon, 6 Jun 2022 09:29:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241720AbiFFQ3P (ORCPT + 99 others); Mon, 6 Jun 2022 12:29:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241701AbiFFQ3N (ORCPT ); Mon, 6 Jun 2022 12:29:13 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C21CB3249B0 for ; Mon, 6 Jun 2022 09:29:11 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 256EBjsp026576; Mon, 6 Jun 2022 18:28:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=u4GTu7XnrpEkmuHHC/sb/dHsYc2K+RY0Pot3Mnv7R1U=; b=Nnjkw3FJ77BIpXbi/on1fi6IKKoscSfo2KN57Bp5f9IAbop0VETMN+lwXdvR5YlOsToq uZKRw+ipCSeTuva8JP0HmO4pyVtT6Yf0p1f047/TgZTVk5e2sDWmlb6BCALng78UP3UB hp/psxZkOZr4IdY0NOPlf88C3jtYwH4tzBljfeG9ps7Xp36ycjdETThKmA5DfmclQSPr MU9NIKN2txdN2wrbghBpQetIhiaxGtgdsinhH4liX+I4PEdFteAOM+so9yHXMq/3KAYV GRf8elTmgoxGmC2Brd7vamp9QES3MoBeDVlqu/M8eELg8QTwU6itN09Ib2ecsT+vj5be Jg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3gfxr23axv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 18:28:41 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5765A100038; Mon, 6 Jun 2022 18:28:41 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 518D2231DC3; Mon, 6 Jun 2022 18:28:41 +0200 (CEST) Received: from localhost (10.75.127.50) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Mon, 6 Jun 2022 18:28:41 +0200 From: Antonio Borneo To: Thomas Gleixner , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , , , CC: Ludovic Barre , Loic Pallardy , Pascal Paillet , Antonio Borneo Subject: [PATCH v2 1/6] irqchip/stm32-exti: Fix irq_set_affinity return value Date: Mon, 6 Jun 2022 18:27:52 +0200 Message-ID: <20220606162757.415354-2-antonio.borneo@foss.st.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510164123.557921-1-antonio.borneo@foss.st.com> References: <20220510164123.557921-1-antonio.borneo@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-06_04,2022-06-03_01,2022-02-23_01 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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: Ludovic Barre When there is no parent, there is no specific action to do in stm32-exti irqchip. In such case, it's incorrect returning an error. Let irq_set_affinity to return IRQ_SET_MASK_OK_DONE when there is no parent. Signed-off-by: Ludovic Barre Signed-off-by: Antonio Borneo --- drivers/irqchip/irq-stm32-exti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index 9d18f47040eb..10c9c742c216 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -614,7 +614,7 @@ static int stm32_exti_h_set_affinity(struct irq_data *d, if (d->parent_data->chip) return irq_chip_set_affinity_parent(d, dest, force); - return -EINVAL; + return IRQ_SET_MASK_OK_DONE; } static int __maybe_unused stm32_exti_h_suspend(void) -- 2.36.1