From patchwork Tue May 10 16:41:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Borneo X-Patchwork-Id: 12845260 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EAA9FC433F5 for ; Tue, 10 May 2022 16:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vpP9xrvzdo51yJpOjATQB1IhcHIJgx3hj3SPizppDzo=; b=FdXFG+GwplN3Jr wvD/hWXN29v11/V0ewGLU+IJSyiuusa9vCUc1rHkys4Lhl/72qj1i7NuOHqLfbqzvofN3MEPwSdgM oHPZCG+EPYVYxu391qGHRFluIYPvtoipFscggE2LnrGyquesepmXSqqTHkSv/8fAM91LXjShQ7ZY6 FBj+nm1Dj69hEbXIKxMy5Gb2p7SRvwdJec/guj5RFNKVRR0r/hjfIHOZAcvJpLSzBRsS2me2pDtTX XghN8lzzkB4PV6mcmQ1ncsJhWAfRqcVy+upMQ+cRW5K/QsbRKGBmYN2wbj+GIx9nW0YwQ8Z/1OzVN 2PC8bYnwGzCtH5QMsTAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noSxD-00394U-So; Tue, 10 May 2022 16:43:20 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noSwn-0038tq-4a for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 16:42:54 +0000 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 24AD9BZE028201; Tue, 10 May 2022 18:42:29 +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=QWngG9+xWY4MUBFAbNnXrMXXahmezHTgt/gHbcN7PIs=; b=DpvW3JFJz4SZbUOmAl21NnTnTv2kroZA2D/NZQqhwEELHJ4BF+G3JU3ZDrnSwfT6i1rR P/1ZDnwWjc1NwSPHFFpUk+ppa9IWqOV99Lw2k6PVVK502PEkxfbXWVkYFfQeB4QnNq52 AE3QQxEEKmyiw2FicrVspOy4Ku4Fug9mpX41Sj04eBDI1FsGXXA5vtfOEiZi3X0jEB3N aCODeOL57qW1/p4bK8+H6L4kT1J6JOkk1Q3f+VeU90JTcBQXxBwgrKmCm4W/g57+XWrd G8RosAW5RfcrLkQW1YyFHQ8jtnBInWf9e7zWQm6N5yc32fb8Qo4Bn2redLBH5CCfLrX5 SQ== 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 3fwg411ey1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 18:42:29 +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 0F10210002A; Tue, 10 May 2022 18:42:29 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 090CA231524; Tue, 10 May 2022 18:42:29 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 10 May 2022 18:42:28 +0200 From: Antonio Borneo To: Thomas Gleixner , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , , , CC: Loic Pallardy , Ludovic Barre , Pascal Paillet , Antonio Borneo Subject: [PATCH 2/7] irqchip/stm32-exti: manage IMR at each mask/unmask for direct event Date: Tue, 10 May 2022 18:41:18 +0200 Message-ID: <20220510164123.557921-2-antonio.borneo@foss.st.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220510164123.557921-1-antonio.borneo@foss.st.com> References: <20220510164123.557921-1-antonio.borneo@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-10_04,2022-05-10_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_094253_535484_EDC732D4 X-CRM114-Status: GOOD ( 16.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Loic Pallardy Enable EXTI line through IMR also on direct event. Signed-off-by: Loic Pallardy Signed-off-by: Antonio Borneo --- drivers/irqchip/irq-stm32-exti.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index 10c9c742c216..1145f064faa8 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -691,8 +691,8 @@ static struct irq_chip stm32_exti_h_chip_direct = { .name = "stm32-exti-h-direct", .irq_eoi = irq_chip_eoi_parent, .irq_ack = irq_chip_ack_parent, - .irq_mask = irq_chip_mask_parent, - .irq_unmask = irq_chip_unmask_parent, + .irq_mask = stm32_exti_h_mask, + .irq_unmask = stm32_exti_h_unmask, .irq_retrigger = irq_chip_retrigger_hierarchy, .irq_set_type = irq_chip_set_type_parent, .irq_set_wake = stm32_exti_h_set_wake,