Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2416213pxb; Thu, 11 Feb 2021 11:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf7iNkv9IBfgwgXk75dOdk3JP0bObO9OD5LCAIlRtf0/V0Aj3OUmzakIWoMLroFDx38i/S X-Received: by 2002:a17:906:4cd3:: with SMTP id q19mr9693974ejt.78.1613072689368; Thu, 11 Feb 2021 11:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613072689; cv=none; d=google.com; s=arc-20160816; b=1DM+HZuIOY53NpoiDx/x85ENQrVPxjoBOSR7zMjOBrDHlWwSzO4p3uDXvXhw5XjVVJ uh8aO73DvdaLhklNLIlE3XG3doO0OnV3RlyB8H+emyb/LzB332Bn8PcEEfv5LfQ3I3xk RhjUggufetw83Zzu0ndfYyZwh71AK40kfPRvnjl1mNV2HkBbBeqZp6iBOfEenJVi6YnQ Yunu7kg5guEzFiSsQZEcA9N0gQax6Qi0j1ZGbcWwr2QT0S5p7JA5UqbUMuDoTRch5YsY xnfVcYWRiyrwtKHmMFhUjgP+3pBvb9uBm/zfsL3P9D5g7M0sWbctLx47VU6lJHs7g4lx 3o4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a+dUOLB1NnpOMutA+4BjxPpRVrc/rny45vVkhEiZ5NA=; b=rticG1BO+hRyun8wpaKR457g8XBMjzHTGm20NxupEufiTmi08+5SXQEHBaOQmEwRwB V9bqXd8GmVzosQw17qnfvKftaGeukSNebD7mM5UQayvDzoHf2WSN/bF9wUZGSk4JFFJL kDEmJHhnsfO7D4hmfQNDZ7qcYHcJyfhNW4r0u439JlQP6fpntn0eB+Gar+ZHjkjbYZM/ R1SYadyj2o/kb+BHp+udOI3m4kO2X4OOlx1z/Quy1LaRYh6kdS3B4RfbU3TfKFpMTjGz lccnkvhBrBiquyNe1/IrnfjKWrk+9qvWOJItFU4mu9fk9YYb7lBUsUX2Swn2j89jDf8/ tWzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QE/owqm/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si4248585edm.503.2021.02.11.11.44.02; Thu, 11 Feb 2021 11:44:49 -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=@kernel.org header.s=k20201202 header.b="QE/owqm/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231274AbhBKTkO (ORCPT + 99 others); Thu, 11 Feb 2021 14:40:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:33840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbhBKTkG (ORCPT ); Thu, 11 Feb 2021 14:40:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A65664E42; Thu, 11 Feb 2021 19:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613072366; bh=LguSyM2AivDGUxr0ZbABm+fz9iY7GOwz9PKFxyl5pRQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QE/owqm/xyrvnuTwZvUsN/dOzbkXdXJop6JG7B1kItBAZBbwHEgkv463F9FTErir4 WbnUMU5HUqa2jLkJqAlv3HjeLPt2rhIdJp+CB3zkM2x0/IzTxfq5GMMSN/dwQNgwU/ tEllBvPsqdCbG06UhlSHt1Oup/vu+aTVHGebf74X7VaADrPq/yC6FjUceOD8M04iUi VyujGjWFlSh7DfZxpt1YLelUsdxi7u/XoRYzGmPq1aQPqgQaiAaSCRM3iXSRai5uBb +Y4aKQubp3NhMFC7zAi1DFEN8o3ITsALPaACnYz6Mt1DiI1Yk0H4rRyM5zx/ERlVVq faOrvpgZ+2+7g== Received: by mail-ot1-f46.google.com with SMTP id a5so5101298otq.4; Thu, 11 Feb 2021 11:39:26 -0800 (PST) X-Gm-Message-State: AOAM532s6uPOy0ndp0QN6v+YhHCIdjgWo6xBe1rCrtXLpS0A6VQs6agW PWOvlnfdmJ6yZscwy6u57fsOOv02/ZnjDG7S3ck= X-Received: by 2002:a05:6830:18e6:: with SMTP id d6mr7022758otf.251.1613072365543; Thu, 11 Feb 2021 11:39:25 -0800 (PST) MIME-Version: 1.0 References: <1612774577-55943-1-git-send-email-luojiaxing@huawei.com> <1612774577-55943-2-git-send-email-luojiaxing@huawei.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 11 Feb 2021 20:39:09 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler() To: Grygorii Strashko Cc: Luo Jiaxing , Linus Walleij , Andy Shevchenko , Andy Shevchenko , Santosh Shilimkar , Kevin Hilman , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , linuxarm@openeuler.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 7:25 PM Grygorii Strashko wrote: > On 08/02/2021 10:56, Luo Jiaxing wrote: > > There is no need to use API with _irqsave in omap_gpio_irq_handler(), > > because it already be in a irq-disabled context. > > NACK. > Who said that this is always hard IRQ handler? > What about RT-kernel or boot with "threadirqs"? In those cases, the interrupt handler is just a normal thread, so the preempt_disable() that is implied by raw_spin_lock() is sufficient. Disabling interrupts inside of an interrupt handler is always incorrect, the patch looks like a useful cleanup to me, if only for readability. Arnd