Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7385223pxb; Thu, 18 Feb 2021 08:43:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz97wT+C/8oZ7lVuKxHljzaLSKuAoqaWdT8WXdU5HGAQatPr5Ev77iDjpcPHLE/TitbhRC6 X-Received: by 2002:a50:f382:: with SMTP id g2mr4931782edm.273.1613666596240; Thu, 18 Feb 2021 08:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613666596; cv=none; d=google.com; s=arc-20160816; b=R3SqVcfJTqlZq5o1axm1bq1qnLltQUPa7ziZC2X+PvqzaptEasubPn60ROzWkdx07S q3aeI56XbrR143+/buP/4eveJlLmHJx52OKZMxANvLr/Ijdb7RyLqVkjZ/krRn5yqejD 3TpLcWpEVFxiqwIzUL04ngGwDLz/FkKOyPhyYYUlYWFjA/CuhcYYDImk693lqKKzlaSh dN4xmYoKGAB2oGjrYvzmTjZPpaHrW0VUlLZ7XT0EO6G952O16veiSrjQzWGCgsHgMxym bl36ynTrHjcm9gQCESvRc55l01EF8s4uixZ/v40rDGqoONfH9vYpKnPSyV5vvltgMkxy dX1A== 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:subject:from :references:cc:to; bh=N6HhSWC3006Pe0iTGwVi83RaoOPINlJcBy3RFEKfn+c=; b=NJPR2HIHdEh+iivm4LuutvXkQbap6tBZopZRJCE1csUU8mJFsyQFQvZK3/mCC7E47J GKx76vsVi7DLQHq/wSJ7kcCr4zyzS0WosLDN8odPzeWNJHk1S1Tnf5Zzp3i398EV/kLk bNU1oRyXNWuh+fmlt5S6msosifyAROxn75zv1pEMvyfKDpSxvzn8JQpYnq6p800ViIbS RwQ3HQBMaEhfU1BR/GCqE+qqMh6AFu4GtvYxeM+yclx6qisDtVn9WqRYm+m1qPd+fo0L 8ccwqFz2XD4j1fiLc5iLaycKQctSLPWoHGChsvKZ9pcuPiUNd1+3ZbuGbZpjy4/+uRFu YaAw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si4994447ejc.661.2021.02.18.08.42.52; Thu, 18 Feb 2021 08:43:16 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233561AbhBRQlW (ORCPT + 99 others); Thu, 18 Feb 2021 11:41:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbhBRN6H (ORCPT ); Thu, 18 Feb 2021 08:58:07 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9755AC061574 for ; Thu, 18 Feb 2021 05:57:26 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id C0AB541E96; Thu, 18 Feb 2021 13:53:12 +0000 (UTC) To: Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Rob Herring , Arnd Bergmann , Olof Johansson , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210215121713.57687-1-marcan@marcan.st> <20210215121713.57687-20-marcan@marcan.st> <20210215184012.sf6p6dbk5c25phdm@kozik-lap> From: Hector Martin Subject: Re: [PATCH v2 19/25] tty: serial: samsung_tty: IRQ rework Message-ID: <31068a51-736b-08f6-6c00-1779734465ea@marcan.st> Date: Thu, 18 Feb 2021 22:53:10 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210215184012.sf6p6dbk5c25phdm@kozik-lap> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/02/2021 03.40, Krzysztof Kozlowski wrote: > On Mon, Feb 15, 2021 at 09:17:07PM +0900, Hector Martin wrote: >> * Split out s3c24xx_serial_tx_chars from s3c24xx_serial_tx_irq, >> where only the latter acquires the port lock. > > I miss here information why you do all this. Added an explanation for v3. This is used by a subsequent patch in the series. >> >> * For S3C64xx, return IRQ_NONE if no flag bits were set, so the >> interrupt core can detect IRQ storms. Note that both IRQ handlers >> always return IRQ_HANDLED anyway, so 'or' logic isn't necessary here, >> if either handler ran we are always going to return IRQ_HANDLED. > > It looks like separate patch. Your patches should do only one thing at > once. The fact that you have here three bullet points is a warning > sign. This is even more important if you do some refactorings and > cleanups which should not affect functionality. Hiding there changes > which could affect functionality is a no-go. I've reverted this one. I don't think it should affect functionality, but I don't have any way to test on these devices, so I'll leave it to someone else to be safe :) >> >> * Rename s3c24xx_serial_rx_chars to s3c24xx_serial_rx_irq for >> consistency with the above. All it does now is call two other >> functions anyway. > > Separate patch for trivial renaming. I think it makes sense to do this rename together with the first change above, as it keeps both functions symmetric. Otherwise we end up with an inconsistent function naming between both patches. If you really want it separate though, I can do that. > >> >> Signed-off-by: Hector Martin >> --- >> drivers/tty/serial/samsung_tty.c | 41 +++++++++++++++++++------------- >> 1 file changed, 24 insertions(+), 17 deletions(-) >> >> diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c >> index 21955be680a4..821cd0e4f870 100644 >> --- a/drivers/tty/serial/samsung_tty.c >> +++ b/drivers/tty/serial/samsung_tty.c >> @@ -151,6 +151,9 @@ struct s3c24xx_uart_port { >> #endif >> }; >> >> +static void s3c24xx_serial_start_next_tx(struct s3c24xx_uart_port *ourport); >> +static void s3c24xx_serial_tx_chars(struct s3c24xx_uart_port *ourport); >> + >> /* conversion functions */ >> >> #define s3c24xx_dev_to_port(__dev) dev_get_drvdata(__dev) >> @@ -316,8 +319,6 @@ static void s3c24xx_serial_stop_tx(struct uart_port *port) >> ourport->tx_mode = 0; >> } >> >> -static void s3c24xx_serial_start_next_tx(struct s3c24xx_uart_port *ourport); >> - > > Why moving this? Why adding s3c24xx_serial_tx_chars() forward > declaration? This should've gone in the next patch. A previous reviewer told me to put declarations at the top of the file, so I put it there and moved this one along with it, but I'll keep it to the additon only for v3. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub