From patchwork Thu May 25 04:03:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 98776 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp102943vqr; Wed, 24 May 2023 21:22:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mqW4IPoXDpJrnAtDHznnElgJUOJlSMY4lJgI+twcqwAIFIncLFFmG4Fml6P6oMycd7tsf X-Received: by 2002:a17:902:d4c4:b0:1ae:35b8:d5ae with SMTP id o4-20020a170902d4c400b001ae35b8d5aemr116349plg.19.1684988525517; Wed, 24 May 2023 21:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684988525; cv=none; d=google.com; s=arc-20160816; b=YOLKb/V0LMrliCltW3z+AQ5gs44gXaG8yXSWuYz0j/AOSidzxUi7gDsJOykjxaax6v 5kmr2xLmNI9nwGloDCkq3IzZ9ZI8cR/ZhrCBQlnhi2mO2Fao6axG8mRNjq6CG5ZY9rXf F0QO9QSSNxsraE1L+1KJXCgXEFjVM2Gcjrrokz1+f1JR/CXSojLIh5jo4IPuarRwQ52a fiCFpZeWw3v2mHzzWzYY7iIHZERHIKKWJJxq6z2YK5xmSMF1TDwdp6uTY1dWUjlGxrmf 8eZE8ql46UsowfQLsUmPF3AErYOava4C9mzZyU8Fguna/Sfg+Bicfihu10WrJhBW0hGa vSVA== 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=8LddvSprDhEznGBMdyZoKgXbNv0SgICpMxxb43tkSPM=; b=0rDQ1fzU2j2KQ9gxmgL56F0W30HZXhmYuekkQx2tswNCCC+FfrIK3xc+8NfGMh/WsH JkhefYMEf0KSlhpXQz4gDltkkOH+40BXQ6VndX/iWOETYhR5K3r8dQJ7KET8IS+O28qK Has8wPjwWpMGbKMMyDMB/f3WVCbmumItL3h71H4akNicH/EY7nWyRC2XFqZz7agJtwU2 9DP7vcIovXkSOw2YZlK+evJfuQpJY11ufCzm6FUhG90pLj4AFVPMlfhDS0nhWrCPlYof R0qbKnZinnSUH3VLaPapHVVBkTsSk/WXMeK1eP7Az2epBZXreSadrwZ3gbtoWP3d26pi c67Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=m7PMsANW; 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 iz5-20020a170902ef8500b001a216fddd03si461893plb.649.2023.05.24.21.21.49; Wed, 24 May 2023 21:22:05 -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=m7PMsANW; 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 S238660AbjEYEF7 (ORCPT + 99 others); Thu, 25 May 2023 00:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbjEYEE1 (ORCPT ); Thu, 25 May 2023 00:04:27 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BDDE5E; Wed, 24 May 2023 21:04:22 -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=8LddvSprDhEznGBMdyZoKgXbNv0SgICpMxxb43tkSPM=; b=m7PMsANWAUO9nbSCBaPZIxCehR cyTf07pJUC/PadELpwlnrFtfqKqTRII8+0k8bNnRjMr2CESvUrcixCZ1BN9Nvm9GTKyhwWcElVms1 nMLY7i9Ig+8lcQ5WJrbXkjFY7+wrtmeUB1mEImePpj0UXGh3NtC7zm7UApNObO0JS5ks=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:52970 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1q22D0-0001dB-74; Thu, 25 May 2023 00:04:14 -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, tomasz.mon@camlingroup.com, l.perczak@camlintechnologies.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: Thu, 25 May 2023 00:03:16 -0400 Message-Id: <20230525040324.3773741-4-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230525040324.3773741-1-hugo@hugovil.com> References: <20230525040324.3773741-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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH v3 03/11] 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?1766838528013928267?= X-GMAIL-MSGID: =?utf-8?q?1766838528013928267?= 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. Fixes: dfeae619d781 ("serial: sc16is7xx") 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 00054bb49780..a7c4da3cfd2b 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;