From patchwork Mon May 29 14:07:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 100298 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1545647vqr; Mon, 29 May 2023 07:13:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hcOr0RLUs3Yc8WJyRbvT4TJhh0GcGvaAIT3TEMr+bkLLQME5f+WZ+yEAFSxrfOAEaQfc9 X-Received: by 2002:a17:90a:1283:b0:256:2efc:270e with SMTP id g3-20020a17090a128300b002562efc270emr11106050pja.5.1685369605134; Mon, 29 May 2023 07:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685369605; cv=none; d=google.com; s=arc-20160816; b=gGT+1OwE6c4zIzehM3vDGA6U5DLyr9isDl1BYP9OexlmrgH3CVoGe/7eRrswHW/qs3 uAqyO43lX0UIgM9hhTgYmOjwTfmR7ZfBsVf12U9qsUMhIVoGOEbmzYhYLkckOxrKSg3r UEGOhJHw/B7srTRX2KmruwtslLVwOePP9C1AL9U29rWXte86ckwEW20jaoa2bbFaz9fI XdS2caMsaU5H029z8qsLj2znqZqFOmFDPhmNxSjmgj2gRFi/hVNCmHcwH5TENqWyOVuR kLaosGfEGxps6kn69NzjxH0uoBVQuU+MzfOofpVqFGW/8sPZyV48RTxOSSjCEAP9DO6H CJ6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=JjwtWGYCgdakg501584h93E/CCeikIpomzeTdJTVJDs=; b=iqQlgjh04kPnU32NrxrsFkwvgQjIcx4EVvmdYRG8vShoCAXDpGU4uYgftNw9VzNCdK xLuOiVaaiYkrM473nzk26W4DKrXNis0/2rSuYZ8PVmf8zLT6eGviFg3BuEr7rW/0IKac t75OzfvQ9tdAry8+aCpyV9FloQ5gW+x7gXrgHVjOv+8WR6xIEYjZ1EHE2q4ZP4m7kVTA cEaf6JuCEY8i/+F7WQ2z5YzVKsQAIsRm8wi+84YYgYpKHFapYiFsbA+0a/D4QtcVVIe1 jX6zbsmOBey/c0QpkC944gLrmqfW5tUG/dQ2T6pHWcdk4zKXE/vJR6SmVYIM3uid00e7 6hkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b="Q4tVd/5D"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a17090abc8400b0024981e98175si1576557pjr.75.2023.05.29.07.13.13; Mon, 29 May 2023 07:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b="Q4tVd/5D"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230283AbjE2OHe (ORCPT + 99 others); Mon, 29 May 2023 10:07:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjE2OHd (ORCPT ); Mon, 29 May 2023 10:07:33 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1305A7; Mon, 29 May 2023 07:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JjwtWGYCgdakg501584h93E/CCeikIpomzeTdJTVJDs=; b=Q4tVd/5D0ZGOD6ETwfikevNU0u 0VJP8PAxuhUc/Lyiz1y0f5171T6OwnFWeUEBYAtsTafFME9qsRNhV5+1qf2T1nfw89ZkbpPAAer8J N6/eHoSM+FLvfq3mcwRI89KZwDPFCK7cYw6dvYc662K9KuAV9Qsq7eKT7/ce8KqF+twQ=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:50024 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1q3dWp-0004Ht-6N; Mon, 29 May 2023 10:07:19 -0400 From: Hugo Villeneuve To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jirislaby@kernel.org, jringle@gridpoint.com, l.perczak@camlintechnologies.com, tomasz.mon@camlingroup.com Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hugo@hugovil.com, linux-gpio@vger.kernel.org, Hugo Villeneuve Date: Mon, 29 May 2023 10:07:03 -0400 Message-Id: <20230529140711.896830-2-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230529140711.896830-1-hugo@hugovil.com> References: <20230529140711.896830-1-hugo@hugovil.com> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH v4 1/9] serial: sc16is7xx: mark IOCONTROL register as volatile X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767238118860614464?= X-GMAIL-MSGID: =?utf-8?q?1767238118860614464?= From: Hugo Villeneuve Bit SRESET (3) is cleared when a reset operation is completed. Having the IOCONTROL register as non-volatile will always read SRESET as 1. Therefore mark IOCONTROL register as a volatile register. Signed-off-by: Hugo Villeneuve --- drivers/tty/serial/sc16is7xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index abad091baeea..fbaadec557d8 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -488,6 +488,7 @@ static bool sc16is7xx_regmap_volatile(struct device *dev, unsigned int reg) case SC16IS7XX_TXLVL_REG: case SC16IS7XX_RXLVL_REG: case SC16IS7XX_IOSTATE_REG: + case SC16IS7XX_IOCONTROL_REG: return true; default: break;