Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6358431pxb; Thu, 27 Jan 2022 12:03:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI7y3JMI7WkP+VfQW0xWnhupwYMqrIeWzQkoH0fjjfx9hA5PPafweSmQCdPFfdgA3wQDt2 X-Received: by 2002:a17:90b:4c46:: with SMTP id np6mr5839583pjb.197.1643313796986; Thu, 27 Jan 2022 12:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643313796; cv=none; d=google.com; s=arc-20160816; b=FcIIowCiR/1G8eVeBR1iXZIrONveUg1HUWKys1i6HnyPtFWJ5gwpKjePz2z22Kt3nj 161n/UHM9jTRsC97jR1osAhYcY1+bdPzcatKPxVAJdQLnhfp14aj/GImvypL3X0wGyEm qOYyCeGg3p7rrZBn/jT8XDq66LCKJp/LqI7hcDLNui6S3LV6R94jSPC4l024MpJUi4Qx rvg1SdUW5Zw4KgGU6z1+KWXuj15cYrwxlSmaCFkJG2pKT/3g8MruF1bYvoP/LrlLlI1S kj/Ch9cepgtzRMdBtqV60NYQrR4VIYGO1bzeOPk1HPhVvZDsBYS0hdJBptgwAZrAIKcP AZCQ== 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=ZnqBSA0fX+jQu5NWHLqll8brJ7sQU9NzIdODqyqj1bE=; b=VE8a4+0Iv8xFaCCajGUacrlky1DatiHV0Lf01hwBG7vf8JULKZRyJQhBZ5eUsGZKqd KgRJeFzHusG0vO6EbD/z8+LbN2MXOBppZcv2yK5td4Ox5ivF1s3w/3APxwAVFZR8qr8h tPrdihiz0vcI5xB6THIVAbrKEpX4ZMmdHsYrcsNAIqOJylL/GzVSz0R2vm5Z4Il7BLMY 1T2BR9PC70ckVlYqo6OwWt92nQTmmOgjct5IdhvRTsgRfrsDF5CO5M0OkGxoV6a4kWgI C31eYNi4fdRwgJVIZ0zCxZs9JI6AqbtcKAl9HbZe713QtQ93XUqynl4SgyTkC/Cftvvt ldGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Q+dMM7Q2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="HfV/uD24"; 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 x7si3089134pgb.237.2022.01.27.12.03.03; Thu, 27 Jan 2022 12:03:16 -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=Q+dMM7Q2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="HfV/uD24"; 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 S240590AbiA0LdY (ORCPT + 99 others); Thu, 27 Jan 2022 06:33:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240482AbiA0LdT (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 2C6A2C061749; Thu, 27 Jan 2022 03:33:19 -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=ZnqBSA0fX+jQu5NWHLqll8brJ7sQU9NzIdODqyqj1bE=; b=Q+dMM7Q2U8ZnFsJmtKBKMyTFK/NwRUspp1jHd025ymaNdAH5HG9m0qiDDdFo+8SsD1OOSq XhdLxpNsvdbW3GHcLOPc9t7tE2/yeZ1SAyZyAkZL+bCN7Eq4cuaHr7Ns4HSm8F2SYw6BMV YyOss4QzJNl8H6ssjX9r65ps2LL8mLpE9DFH17Tk8InkYZ05Tp/Vsres/zQ6VXQN75xqSo +uBsTPjrrVLXC9cAVrMcId5bJ9xPB6pcor8DdgeKkLo8tnIds7qf5yp6MhfUA+VGr9td0R OuHLpeSt61TkUDdzwZiKsAf+o7YQ2uaCnLw78ftXIZrhfEpcRRi8vkfeGsz+jQ== 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=ZnqBSA0fX+jQu5NWHLqll8brJ7sQU9NzIdODqyqj1bE=; b=HfV/uD24kkWJpBncedkJYbJ9LHCd+gIicOaa3Ov9P9oJotKouxwL0LxvVjE4w8l7PdLzLT s7HbM7nauDjMhFDw== 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 7/7] staging: greybus: gpio: Use generic_handle_irq_safe(). Date: Thu, 27 Jan 2022 12:33:03 +0100 Message-Id: <20220127113303.3012207-8-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/staging/greybus/gpio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 7e6347fe93f99..8a7cf1d0e9688 100644 --- a/drivers/staging/greybus/gpio.c +++ b/drivers/staging/greybus/gpio.c @@ -391,10 +391,7 @@ static int gb_gpio_request_handler(struct gb_operation= *op) return -EINVAL; } =20 - local_irq_disable(); - ret =3D generic_handle_irq(irq); - local_irq_enable(); - + ret =3D generic_handle_irq_safe(irq); if (ret) dev_err(dev, "failed to invoke irq handler\n"); =20 --=20 2.34.1