Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1423650pxb; Sun, 7 Mar 2021 18:42:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDb9ZqKDW6NM5czlknZIXDSGsUMY7mppMjpUc7FUYIbO84mudIAaf5+v9X8DSXRt+cAjy8 X-Received: by 2002:aa7:ce8a:: with SMTP id y10mr20224161edv.66.1615171369173; Sun, 07 Mar 2021 18:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615171369; cv=none; d=google.com; s=arc-20160816; b=BZfg9Kw8Zy6Y8DpGXnF9H8QOxC3hI0n5dA+Xx18yDM+UXWXqyPozSLTYH1US+8nFOF uKcQsVkIqgSV8w8lcXIh3AK3lxh036Y2vdrTiznWTTHSlWozId87xTE3tw+hFShm2wnc 0S9Wxb2MFE4YK/v6zAu4KbPG/rEWFkt0hCbtXwiRP5wEEmeSyndH1QNRH2fFkgY/Xm8k V6SWwtw+MAVxl69CZCvy28BKxU4q2LU8y5BobwyVHoq0/TXsvSBuHdENU/9Rbx6UM94v YZw7EY5Gll0EmzTy9jjWa5+0Iz9Yt9YhxFlSOM/m/Ww9AqHtbjXx6OFrRYl4zi9mHnnL ejSQ== 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=M/Y9wtSX+B5gqxqAU8DIWs7/+N+6/yV4//SxQ7ZeP1U=; b=QSo4ccDTAQhTr8RulXVLWw3TDDXt8iHv67AW6ZY9hxpzn7RMyHy6ak3P07FuCf7jn5 bWdatfp2NVbxHSwaNOqCgo8gJkSFjco6/cjCImN8JeRySkIEudnuFhZPrE56RGEAd46x sw9mqcEOob7abNzZhCYNtE7D3O6WEwH2USOALmBGCeRxAiW8hWjb3zz5k1jp3C7OZqnZ 3toh2xp8Mg2E74dnrY2F2rsa1MZx6Gen0Zuxddiqo7Q7nvXU//59wAYJgl1w97cs+l2P bRgVutBC930YgJj5Kq0FaVQQCbJ2aratrgUtLruP1rSdCRE6f6TmyWtH20qSrdQnocwo 9Lxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uvTAugzr; 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 b26si6388347eja.162.2021.03.07.18.42.25; Sun, 07 Mar 2021 18:42: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=uvTAugzr; 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 S232397AbhCGQCk (ORCPT + 99 others); Sun, 7 Mar 2021 11:02:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:39472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232383AbhCGQCN (ORCPT ); Sun, 7 Mar 2021 11:02:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B322650FA; Sun, 7 Mar 2021 16:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615132932; bh=W3DWtdKbzB/Ewq0JXP5uIPr5sVdrpUWScZRv+BpwOOQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uvTAugzrUQYpKuCcE5EB2V7uskUn7uQ1kw3Ti9BBAyqQTmqLgQKYlYnumatE5cRFc TxVpaDX8t7wop24oROmlUS96NMdVeY7PBHDIW/T3WSmx/aCPFFh9v3xHu0e6GSI/Rx ViYKo1BNlVsFC65pNKLgytdDsWIOhzT8pO1yqotAUcGPJGH0Nj83z5XIkuCh3gzRaP RCvB3K4RyMw+BKYpyVQxCNekIzPX2+xiiY9/RoaX+oINmRapsa/7H7PofVuHzmkqdE iMY49sccaS1j16kG5oQvyCvriltmludfQy+PNzABu+/0WPz+XC05tDuL+SaC1iYVBI NrHiOR3ly/7qQ== Received: by mail-oi1-f176.google.com with SMTP id x78so8416232oix.1; Sun, 07 Mar 2021 08:02:12 -0800 (PST) X-Gm-Message-State: AOAM530y6b8oPrrVJXGClw9xhwoqQGy/mg1Cjs168qlZpXpvZdilevcY QxGhW2KOMGlKtNwmvWNCSSg2hvTE1tOXKtV04i4= X-Received: by 2002:aca:5e85:: with SMTP id s127mr13583208oib.67.1615132931842; Sun, 07 Mar 2021 08:02:11 -0800 (PST) MIME-Version: 1.0 References: <20210304213902.83903-1-marcan@marcan.st> <20210304213902.83903-22-marcan@marcan.st> <535ff48e-160e-4ba4-23ac-54e478a2f3ee@marcan.st> <05ccc09f-ffea-71cd-4288-beed3020bd45@marcan.st> In-Reply-To: From: Arnd Bergmann Date: Sun, 7 Mar 2021 17:01:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT PATCH v3 21/27] tty: serial: samsung_tty: IRQ rework To: Krzysztof Kozlowski Cc: Hector Martin , Andy Shevchenko , linux-arm Mailing List , Marc Zyngier , Rob Herring , Olof Johansson , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , Mark Rutland , Greg Kroah-Hartman , Jonathan Corbet , Catalin Marinas , Christoph Hellwig , "David S. Miller" , devicetree , "open list:SERIAL DRIVERS" , Linux Documentation List , Linux Samsung SOC , Linux-Arch , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 7, 2021 at 12:34 PM Krzysztof Kozlowski wrote: > On 05/03/2021 17:29, Hector Martin wrote: > > On 06/03/2021 01.20, Andy Shevchenko wrote: > >>> I am just splitting an > >>> existing function into two, where one takes the lock and the other does > >>> the work. Do you mean using a different locking function? I'm not > >>> entirely sure what you're suggesting. > >> > >> Yes, as a prerequisite > >> > >> spin_lock_irqsave -> spin_lock(). > > > > Krzysztof, is this something you want in this series? I was trying to > > avoid logic changes to the non-Apple paths. > > I don't quite get the need for such change (the code will be still > called in interrupt handler, right?), but assuming the "why?" is > properly documented, it can be a separate patch here. This is only for readability: the common rule is to not disable interrupts when they are already disabled, so a reader might wonder if this instance of the handler is special in some case that it might be called with interrupts enabled. There is also a small overhead in accessing the global irq mask register on some architectures, but for a uart that does not make any difference of course. While I'm generally in favor of that kind of cleanup, I'd also prefer to leave it out of this series -- once you get into details like this the series gets harder to review. Arnd