Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1209608pxb; Wed, 10 Feb 2021 02:57:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0wJkKcvB22sZjRSCDeN48I/EtJhFinqIt0uv2SWIH/1cJnQ6HZKT9JFWddITw83PkU76w X-Received: by 2002:a17:906:85d8:: with SMTP id i24mr2378501ejy.115.1612954631469; Wed, 10 Feb 2021 02:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612954631; cv=none; d=google.com; s=arc-20160816; b=ehVSrcNDmnFOEKSgo1sNg5mXv+Xru8tFwmhP8H2Jug0loiuUF2b62hFqlhQQzQNs7I CHZ3C1vjg5167TGGKlkMRfwhK0tGZ4+3MULWipukJOO2CJSq5aRRXAiidxCCJ4pyAe1H bHRhpd9P6K6itlsex1xVTqhHS3/oHAXDoVsKEETBPQ3kqjIqoU4CCq9WJ9x0dexjEcf/ ipV5shkcwnrdjdeY4UsfoHuiAmf0AuotLDnEwvMWRNzk0BLYt2kYN90soCV0GFG7viz5 hMBLASAeiby25cO4KMkJ1513WIeG+hiTfht9D+kBaQZ1U3LeGZj4Pkq7UQTzlqSxcor8 2Zrw== 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=5aQ3P4pzj3MIu+x6a2h0jZYuvjE+2Bw6hXq6j4YSBkE=; b=puwwyK1IvVmq2+eqQw+5f5FG0Q/qE3tyJfgprp7AcOf0kHtQx15yczOHyZfIl3gSWp 5lq/rGnK6PzyFVGvh/Q/Or6OatZl7V0zK1SP16qEkuOLZ8G/NQRGdu913pkv+GGHyYWy /CfEyXUfad+aQV5wPGrOEPvrQEt/nCwIrA+LOHvqMtTQBanly5hSAZ7wRiyjYP+XDaJV JFAuO0YY9GPLpX5fE4GolUizhmvlpz/PDv4Ay0mBDiYzw/Cesv+GX91pUnxM9eydPpTD SQnMZdaetqSjfwXcjaZ9CAyV9N9eQWdwAzGBgS9Z2BY+wxH/7V7+/0mLlD+frg/a7jej V1qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TYxdWTbB; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si1098390edc.372.2021.02.10.02.56.47; Wed, 10 Feb 2021 02:57:11 -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=@gmail.com header.s=20161025 header.b=TYxdWTbB; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231584AbhBJK4G (ORCPT + 99 others); Wed, 10 Feb 2021 05:56:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbhBJKxN (ORCPT ); Wed, 10 Feb 2021 05:53:13 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD55C061574; Wed, 10 Feb 2021 02:52:25 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id 18so1021693pfz.3; Wed, 10 Feb 2021 02:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5aQ3P4pzj3MIu+x6a2h0jZYuvjE+2Bw6hXq6j4YSBkE=; b=TYxdWTbB/BabarLs4YVgppIIivafvxLP7lWhOGbgvAl4Xl+RqRBjR9WqlWhSfnM6vU m6LPN8dnmaZHzCJx/2ilVNL+DAudR9YIgrYHjX+Q8BEEdXBYZ5/KqF6JzwMMIRjMVzU5 vraqt53tPXV9/Ero9FbwbGbZm42V5TV137/KIaaMzGdHOLQzIAd7AmRPu8HBH3TwAWx/ XEV/VGTCodtPYpV76gXJx1PDZAaOR41As25Bk820QO0lgQCpY3ogRZybSgazHC8Jg5Ke 9wlJfwGYL4wwIPtIDw6zxW9Xcx6SXTq2RjWGGpVC6o2Zvu5OrsIqU76Vat6LUrOrNh7P Egiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5aQ3P4pzj3MIu+x6a2h0jZYuvjE+2Bw6hXq6j4YSBkE=; b=Lsxkhev8wuFikA6HM8muiMkLCh4DvYq2C4vJdNIEVKob2KhGRgANXbodPLhbGcBtsG U/0GSANi1Ru95adNJ6W0lTa1VZ/O8wN2Grw2bFaXciqguiCmRqUMQYLKHmk7LxBL8S8r ngiiSdAm+qWlJm2YucUqYjz3IiLno/QlWS8krayWS4Dk3ZInSviVbUxIcknqPxQG4FyJ WF8dPB38x+VwJdUWDuzwatWYnC650196rbeJdVV45cAxjBYUQ4Mx0eChECGaaEQ+nz5I 0BBVFgx3meqsfjWr5IPH7IyLScyABUKo0ZGaAXYPgd/U6R9hGN+oW1Rea3FcOuEb9jHo ySxA== X-Gm-Message-State: AOAM530801Lkxjp1NLH1RZcVfYFsLIbhfomwr3uOiOk2ZprEcFQvQrtc KrB0w+xYEG61x2ES31N3JLzY5eW3N/eSGO/DSE8= X-Received: by 2002:a05:6a00:854:b029:1b7:6233:c5f with SMTP id q20-20020a056a000854b02901b762330c5fmr2472078pfk.73.1612954344590; Wed, 10 Feb 2021 02:52:24 -0800 (PST) MIME-Version: 1.0 References: <1612774677-56758-1-git-send-email-luojiaxing@huawei.com> <1612774677-56758-3-git-send-email-luojiaxing@huawei.com> In-Reply-To: <1612774677-56758-3-git-send-email-luojiaxing@huawei.com> From: Andy Shevchenko Date: Wed, 10 Feb 2021 12:52:08 +0200 Message-ID: Subject: Re: [PATCH for next v1 2/2] gpio: grgpio: Replace spin_lock_irqsave with spin_lock in grgpio_irq_handler() To: Luo Jiaxing Cc: Linus Walleij , Andy Shevchenko , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linuxarm@openeuler.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2021 at 10:58 AM Luo Jiaxing wrote: > > There is no need to use API with _irqsave in grgpio_irq_handler(), > because it already be in a irq-disabled context. It seems you haven't read the code. The handler here is shared. And lock there is about something else that we discussed in the cover letter. Moreover, the driver is quite outdated and code inside is horrible according to the modern APIs / standards. I would rather remove the driver completely. -- With Best Regards, Andy Shevchenko