Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6358540pxb; Thu, 27 Jan 2022 12:03:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5XHQY8PuavLj4/zrPnMUKM0rcZnuoBUVlYBSr8PMx/Vo58IxQnQI9C8Toi/5cVpshY2wL X-Received: by 2002:a17:903:22ce:: with SMTP id y14mr4595167plg.37.1643313804019; Thu, 27 Jan 2022 12:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643313804; cv=none; d=google.com; s=arc-20160816; b=sVqjhGcmt64AUluk8BQbEXuxqYviTqRNd+B+iv0VTXcj82Xwcxbm/ikd6SI55PYyiX fDBJnLSr4G948X+hWLT4wlLmJylFblcZMrgixRCefyiJbZuwa4vCzYPkr+F3vLu6bVJ4 xY2Pn1mDN7bUWwJ73gYuqJbDIM4AhdHKpsBGIe/Zfbc6Inz5NR4jf5dihhoGfGrxahSR uRJIKF4Z2sw/o97U7UTc/XZHfoeFyXqy94scTXQ5jx9EJxcwduNF24gVJPbXIluvSDGV aTMBPkShD8zPTV1f3k5kQxDEYGozOmBBq27wY9Uk8p3Abwc5kNbViXnIZx4bxELGsWwV GlTg== 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:dkim-signature :dkim-signature:from; bh=dIv+CVYntwJz8CieaPTocbRGy6Ut677BgfsZfTXIw6A=; b=ZtkhPqTCokxzrb09piqi2MJD9mbDakeUkAPNI8gJT4f5PdEIlq9AuDtCDefCr5d4/0 QQdDkq2skCOJs2do5ADUW++Up7r3FgKS1dd5kI5xpbeW1Wpb9+OzVQtuJ3BtqvdYYzu2 +EirZH+jRqQYmb9SaFu9+IALQcIVemg1uWljJTt72NtZluoxQy0Bx94QhiB0f1u2ICdr QRVHRbL085lCwzhRRHfSgNCa35/LVClUunLZkVQ2MecF9S/sMjQvZF9DAW7l9wajEjKz kVGl+vxHONxVqofU+W5gxE1S/BOdRX4dBwnqjkSdTalNBpdkd7A8xF/znQ8zy/q+g+eU q+TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Nuf3tVNx; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si3302833plg.490.2022.01.27.12.03.06; Thu, 27 Jan 2022 12:03:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Nuf3tVNx; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240695AbiA0Ldb (ORCPT + 99 others); Thu, 27 Jan 2022 06:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240491AbiA0LdT (ORCPT ); Thu, 27 Jan 2022 06:33:19 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00A9C061748; Thu, 27 Jan 2022 03:33:18 -0800 (PST) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643283197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dIv+CVYntwJz8CieaPTocbRGy6Ut677BgfsZfTXIw6A=; b=Nuf3tVNxG0voSB6Eq9C+Q+03rsuiHd1WOV7BrA6PWBHlOuqHjAsWiRhx8/KAY7oyXAqMMf 1hYwsdjRM3EsyLDJCMTZwzFfxxrkEBlLL17RLHV48XR5nFNu60GYtSCjZBFOzJpekRdQp4 kAOfETSk4RC7OMq0hJz4PpF4B3LXWFqirBuqRcsnnBOfVw95CqTttqNchbKU2ip9hM6A2/ 7RPQNXCjzQ87gUAzk89m7i9+P8FxDeQEWPvX43Qgw8VBbLhwne43yMItyWIcpueOLXn/d6 z5/+Gf1jHbTrMfvFgv4MaFZOr+j1NtXIhTjzRbsvMGlFWrNrbedDQ9Je3n/miA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643283197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dIv+CVYntwJz8CieaPTocbRGy6Ut677BgfsZfTXIw6A=; b=8jF8mB8ZhtxYzNFXU7s06Q1sCfcl859MLbH+qbWdcr/S7Q9PuvfPUJeb9ZT3AnpOl+8O73 GKRB2ImlPEcqezAA== To: greybus-dev@lists.linaro.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-usb@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , Alex Elder , Arnd Bergmann , Greg Kroah-Hartman , Hans de Goede , Jakub Kicinski , Johan Hovold , Lee Jones , Rui Miguel Silva , Thomas Gleixner , UNGLinuxDriver@microchip.com, Wolfram Sang , Woojung Huh , Sebastian Andrzej Siewior Subject: [PATCH 5/7] mfd: ezx-pcap: Use generic_handle_irq_safe(). Date: Thu, 27 Jan 2022 12:33:01 +0100 Message-Id: <20220127113303.3012207-6-bigeasy@linutronix.de> In-Reply-To: <20220127113303.3012207-1-bigeasy@linutronix.de> References: <20220127113303.3012207-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of manually disabling interrupts before invoking use generic_handle_irq() which can be invoked with enabled and disabled interrupts. Signed-off-by: Sebastian Andrzej Siewior --- drivers/mfd/ezx-pcap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c index 70fa18b04ad2b..b14d3f98e1ebd 100644 --- a/drivers/mfd/ezx-pcap.c +++ b/drivers/mfd/ezx-pcap.c @@ -193,13 +193,11 @@ static void pcap_isr_work(struct work_struct *work) ezx_pcap_write(pcap, PCAP_REG_MSR, isr | msr); ezx_pcap_write(pcap, PCAP_REG_ISR, isr); =20 - local_irq_disable(); service =3D isr & ~msr; for (irq =3D pcap->irq_base; service; service >>=3D 1, irq++) { if (service & 1) - generic_handle_irq(irq); + generic_handle_irq_safe(irq); } - local_irq_enable(); ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr); } while (gpio_get_value(pdata->gpio)); } --=20 2.34.1