Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7357989pxb; Thu, 18 Feb 2021 08:05:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJyUb6pn+w9KKr4mtxAMwmlNMLqFZ8yRJ4cyB/Tw2YlZpviYsoJ3cOgcoQEjM/RG9y01GO X-Received: by 2002:a17:906:fca:: with SMTP id c10mr4777033ejk.272.1613664356625; Thu, 18 Feb 2021 08:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613664356; cv=none; d=google.com; s=arc-20160816; b=WJF1Fn6UvCIOO93Fyw+OLDeTA4Dg3QrPbyvdDe6jv1u4GsZbj/TYmIlVibpSU66IOX CXGRXG5Ey6jLxGU45xcAK7pbfzOzUTAjGo3l1NhDbSRzfJlxksCAcqqR3Zu7MUNdVfDE LmHDSZOwiEmSRCLu8YUA0S+kp7fz2Q6XblL2tHJIdZotHLlkvo4bY6k4tLkzQ595uILX Wa2eOUijYOubkK72QZcjk+1BkvRTIbtOUuyMr6nYM24zxapKbcobvotVFhDbv2pF7AX5 3+oEqvRUQciRCesiM74EIY2WkXKH0OJeaXw8/z+wv+snT4ENZdykfS4luMhwzUG+QAku wRyA== 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=plbHL4TMgJLr1vie+yzL30tRel6EPAUqBXBSQ/ImwZU=; b=cvyMNv9LP/rwapg4mt6U1KmV7d5Nb/9BfJIpwSJR/vduwh9/ffVRKEVWIZZ74GLz7S 6rZlFgcTvC7tjjJtAYj2WmpZS/9HlQeA8x/BaP4pOY/ok+32JbKY9ZoHfP+Ar7ImQBHO +1eMrqdSolbgPGhxRDkabvuP7XnWjxQtbFsvyh/K0maOu6Lox//vmk/r7Gxmzt+/b8BQ yWi7x/9U96zvvdwEFpOmX1nbi6Aevil8FG1lreC5fRivmoGGVsDdzgfir1CK7FABB3PX DzoN4CU9p7c89YzJEWrcxRqnUMjr9/pAZXymXCDf+rcvZPEvZGhtgPm7FX2P5+dCAMtm z3Mw== 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 r21si4609554ejo.415.2021.02.18.08.05.30; Thu, 18 Feb 2021 08:05:56 -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 S232626AbhBRQBb (ORCPT + 99 others); Thu, 18 Feb 2021 11:01:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhBRNax (ORCPT ); Thu, 18 Feb 2021 08:30:53 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C046DC061788 for ; Thu, 18 Feb 2021 05:29:31 -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 5984A3FA55; Thu, 18 Feb 2021 13:24:58 +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-18-marcan@marcan.st> <20210215180652.tbccd5dhsfjpdayp@kozik-lap> From: Hector Martin Subject: Re: [PATCH v2 17/25] tty: serial: samsung_tty: Separate S3C64XX ops structure Message-ID: <4475513e-ffe5-6064-d37e-8dbc16805dc7@marcan.st> Date: Thu, 18 Feb 2021 22:24:55 +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: <20210215180652.tbccd5dhsfjpdayp@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.06, Krzysztof Kozlowski wrote: > On Mon, Feb 15, 2021 at 09:17:05PM +0900, Hector Martin wrote: >> +static void s3c64xx_serial_shutdown(struct uart_port *port) >> +{ >> + struct s3c24xx_uart_port *ourport = to_ourport(port); >> + >> + free_irq(port->irq, ourport); >> + >> + wr_regl(port, S3C64XX_UINTP, 0xf); >> + wr_regl(port, S3C64XX_UINTM, 0xf); >> + >> + ourport->tx_enabled = 0; >> + ourport->tx_mode = 0; >> + ourport->rx_enabled = 0; > > For S3C64xx type this is not equivalent: the assignments were > happening before free_irq() and wr_regl(). Honestly I don't know whether > it matters (except some barriers coming from these functions) but please > do not change the order of code in this patch. If needed, the > re-ordering should be a patch on its own. With explanation why. Honestly, I think if anything the masking should happen first (to make sure no IRQs go off), but at this point it's probably better to play it safe and not introduce any logic changes, so I've moved the assignments first to retain the old behavior. > Make the s3c24xx_serial_ops const as well. Done for v3, thanks. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub