Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2439639pxb; Thu, 11 Feb 2021 12:22:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjD4Xf1gevk+0jZHkwZcKIDaaCFD6s1mmU4qisAzPA0M8q6P4pHCfXjmVj6g/l8TsueIX3 X-Received: by 2002:aa7:cc18:: with SMTP id q24mr9787292edt.82.1613074927968; Thu, 11 Feb 2021 12:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613074927; cv=none; d=google.com; s=arc-20160816; b=PE32cKOcL8zxzoJDqoNUUWvtbxEr22l33FkW7QcFDv1ZTEy37NQ4bOSLR9EEypaIii e869+R6kmr7YWshyNSmCdIZg7Kg4pYIXKAE2W4uqGjgj8g+Iq/3FXStOrilC7c/cl/dM 3pBMfdw+yD2DCazFS2mpbyyABVvRqMhYjSYa9U0ikzzxkuRlWYEAb7l/jVyJ2ELgoKSH ZRO4itdpv1lHO5BmMMo63DrJPrbodE35F92R5WtswsdX2LkG4JVE6dLDkySXuZZlj/kE 1TQS7vQKusG43qEvAzYdm3YLUtnhOdrq4rJFsy3Miq3wemI1QsZZG772CIewD60z4Jso JVow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kr2SCd91PPpyHaD2qofeEm2a8JukcuL1omeQb1kfYAY=; b=jJUcIu06uwg0CTL2Pqz4UkS78vIULfMCU7JmSHQ0QfxUP7p8/dm6xLqrD1BT2Gr+MF oy7+Y4fWrUsWYvoDQQHluaOrGh1zeYpYP8/3KKs0cAcu/Vsg8y+OZFxjCzHB9BEGDSUq iVZSyxF7k62t/KZBR5vMUgM/Y/p1mMGUQtgILqEZet7wt4o9M5i/WnGcdoMqbR//1x3R MOs0KppNFSYSDKvL3XnbHTtUt/upxCUEN7d8qAflh+8Pr8sG5w+1E+pPY1FmXG522hDK +/fkFgXJRP22Uj3RZsxwIaOKLgYoMP6e8Hwg2CyuMQ3dj/F+CXRAJBf92bCYRMIT/ZtQ 7WvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="gItRj/dh"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si4167041ejp.340.2021.02.11.12.21.44; Thu, 11 Feb 2021 12:22:07 -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=@ti.com header.s=ti-com-17Q1 header.b="gItRj/dh"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231447AbhBKUTh (ORCPT + 99 others); Thu, 11 Feb 2021 15:19:37 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45450 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbhBKUSV (ORCPT ); Thu, 11 Feb 2021 15:18:21 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11BKGvU8006233; Thu, 11 Feb 2021 14:16:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613074617; bh=kr2SCd91PPpyHaD2qofeEm2a8JukcuL1omeQb1kfYAY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=gItRj/dhG56kIkp+3wnzTMbA3EdhiRuDOmVhfPKCs96JbqFwqbH/I3yis7UEUcjvH ZG5WILnk75vuyD0DSLqdauGsShgcv9plTyxCWM2pFi4iMUE22bGJMZHfp95ggOywyh Si9jHzYxVwu4IdUQJwLOLxDJgTeZ7mFeRU/387kQ= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11BKGvwq105162 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 11 Feb 2021 14:16:57 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 11 Feb 2021 14:16:56 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 11 Feb 2021 14:16:56 -0600 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 11BKGrAU029198; Thu, 11 Feb 2021 14:16:54 -0600 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: Arnd Bergmann CC: Luo Jiaxing , Linus Walleij , Andy Shevchenko , Andy Shevchenko , Santosh Shilimkar , Kevin Hilman , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , References: <1612774577-55943-1-git-send-email-luojiaxing@huawei.com> <1612774577-55943-2-git-send-email-luojiaxing@huawei.com> From: Grygorii Strashko Message-ID: Date: Thu, 11 Feb 2021 22:16:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/2021 21:39, Arnd Bergmann wrote: > 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. Note. there is also generic_handle_irq() call inside. -- Best regards, grygorii