Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2850418pxb; Fri, 12 Feb 2021 03:05:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNuMpL9kIZ5zY2uxxL+y0x3gtvcKiowpv0sH1ck0Nl8O0/pZgxwDGe5IIkvf11nzsqipO6 X-Received: by 2002:a05:6402:1291:: with SMTP id w17mr2765848edv.112.1613127912241; Fri, 12 Feb 2021 03:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613127912; cv=none; d=google.com; s=arc-20160816; b=Lvga0aVuKnYupoAfXhsAMblsLshIFZdxT0HBVoellS6yau3Kx1MjUp0wMOHwPZG4Gi o4oVIWuKsXEGThMOrMNRB/vdR745boyWE/lRiHvken6vZwUnOpbEbHlE/C5g1L6Oix0b 01sQk32hN3u8ezgjM4S9u4WSIcp97J36qmfkhWbXeOJjTYY4GnSkxob2m1tvZPUPpowS MgOjSmkQiWRBuI4jJtK3KyXkqlLylHRqQskK6yDxS9d/YxdTB8LtoKfOvuvk5MqDf4B6 9A6qBlkS/qMX6gEgIhBnqt9TDaDHHPhwmij00uiXgYART63nfich4mQ7cak4suU1A0No FHZA== 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=PkHRY/SMVfhDNtMX2dp9HPJ4r3BfwM0e/JVs3ODzbEE=; b=Q8mCAxakVmu580bnF6wyU39jfhcy4XBtGjOhpVqfSHHKF1Xtfz+4Khrv2AXFz1Mtng 1iIOteu6o7DsP1bdfi2ql3RCzzr7q+k+N7NTyF9OJrzK/GGcFGyB2cuKVlJa3JZ0roIs JnaUNkx7fZ7uAJC0i0M0+AG/BfI7CpOkd64DykOy//vGCMFyugCFtpPIhntX/g/BBjpd 3ajtmRNfFJpxipRgj76eYxr2f9Lmuz8pSCaSuhws9Us6SVEI0bS8Dxny3FC1Fi5DZPqI Epw/rZAvFEfAZ90bFxEAZQ9kk1+jQE8Tl6S7YJ5cbptmFUkU6X/azPIAtOInjnOmvyTM aUNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KlAVFzmQ; 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 z9si6094906ejm.194.2021.02.12.03.04.46; Fri, 12 Feb 2021 03:05:12 -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=KlAVFzmQ; 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 S230389AbhBLLBz (ORCPT + 99 others); Fri, 12 Feb 2021 06:01:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:58138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbhBLLA0 (ORCPT ); Fri, 12 Feb 2021 06:00:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D633C64E74; Fri, 12 Feb 2021 10:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613127586; bh=dOd1zYO5Nn3XjGlskgniasDG7qC1K106t/ncttY1SFA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KlAVFzmQf3dRDjZ2VsKc44xbxM2HVM/xXANy9/mH1Lc0Q7gaHr+sbt4eB6rFecAXi U/SK+fCbHjCaJXw7fANSRhSs+VlTWmg0PBjla2sPFNocvgPAPOHo3kEKrjH5AZsbcf H+BmHbGqD6N0E/SALcfMDaJRtcZF7T7OFe/uKbDmX33B5SLdsASL+o63Y0QWSaOhR/ I6FzmTGjkv/NpdA8GGFSl6MflzsyNONm4VsPvJMIMMLGdt1hEQpWO6i/vsa7F1ZaKO FsfrjUKnOgx5unHMmNsvvREV4y8LjLSVaZhB6Q0vTWt/665XD3dJoTa/1Eh9bWTWOV BXI+p/GofGp9w== Received: by mail-ot1-f48.google.com with SMTP id d7so7995803otq.6; Fri, 12 Feb 2021 02:59:45 -0800 (PST) X-Gm-Message-State: AOAM533fT7KiO2JbsVB3GUbxHK58lRu67zKrlcWCTsdLiVOAM5ukRmCn 8Y0T5fGUXIQJrXfouELNyb4yFDUOlLWWZPuIUes= X-Received: by 2002:a9d:6c11:: with SMTP id f17mr1599122otq.210.1613127585105; Fri, 12 Feb 2021 02:59:45 -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> <2a12cf7a21f74a0c9e2552a467b77fae@hisilicon.com> In-Reply-To: <2a12cf7a21f74a0c9e2552a467b77fae@hisilicon.com> From: Arnd Bergmann Date: Fri, 12 Feb 2021 11:59:28 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler() To: "Song Bao Hua (Barry Song)" Cc: Grygorii Strashko , luojiaxing , 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 Fri, Feb 12, 2021 at 11:42 AM Song Bao Hua (Barry Song) wrote: > > Ok, second thought. irqsave before generic_handle_irq() won't defeat > the purpose of preemption too much as the dispatched irq handlers by > gpiochip will run in their own threads but not in the thread of > gpiochip's handler. > > so looks like this patch can improve by: > * move other raw_spin_lock_irqsave to raw_spin_lock; > * keep the raw_spin_lock_irqsave before generic_handle_irq() to mute > the warning in genirq. It seems that the other drivers just call handle_nested_irq() instead of generic_handle_irq(). Arnd