Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp650290lqt; Fri, 19 Apr 2024 06:43:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXECxn9YflvcwIOomIWtUBcA5Q2pL0jJuXRuywPzaMzXvCB5JmsJMi/YClGf+vbS0FzZqeCZHhl8TdP34cKP9BHp+Ucis8WbfSyVpk/jQ== X-Google-Smtp-Source: AGHT+IEX6FY6Gi3YUvA5w3nc73vasl07QbZXMNc/xGFKTevf5oMoEQhtC/I5C9+bDbM6F++U2eKa X-Received: by 2002:a05:690c:6e02:b0:615:2d5a:e398 with SMTP id jb2-20020a05690c6e0200b006152d5ae398mr2375223ywb.21.1713534205993; Fri, 19 Apr 2024 06:43:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713534205; cv=pass; d=google.com; s=arc-20160816; b=T/3OAOCfmClDX6M2LIUCCOZ9J/4vRENeWQ7cRN3Ik/dgEwd9ot3TzUgOW84qhOZ+jq x979Q1ycWMhAgIznYdcYY8o7JTDSP1/NvT+BSzIXhgxrZPp55q6sqEn7Q0cqPBv0/d7T GV1G3OHYPbhBS0n3tDW17G6tKq5TXe3dD4z3Kn4BRH3AilEfyYPlPCUYy/orwVFSOeoK gyh/iV/8mMTDitl4U4orsM7Pib0ITFh5iIMHS1W1Ffxltw2PnCwcaZp2MdLSXcuqZisu aKjCdaJSmIWCKcivjLk9afPOsFiqZCs3pxf45ixl8KffEJ/y7CbcjnWGH9V8zGleAhHF 55wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :cc:to:from:date:dkim-signature; bh=/SWo5T27HPZBjevRWtDoRJYaikHCKvINDhNye9BXHcg=; fh=Z4LZ5fPcGfkyE2/hGKEGt+Qre9r43SkcZiKqicW7IDk=; b=KMt+IX+K5Rt9X2K/yDGK5lQiUe4BhToePWGxKfD1zXyhnd67phF7uLo6U4pp+LspSA k/nd8O9RSv9LQuN8/HPxQG5siVaDftMOuxfX/+ryi/AKDXDdtTabxCLzdcasFVkJaJXh I/a3TVF//CYtI+LWZ52xpJ5On9g87tY/uDh7hNOiZa1k2yAxfUE4enDU+g7mB7SETQv9 TsB5i40yge4YQdLT1L7ko7ljHhIvRGLnL6ukOLFGUrnX/p7VrP5nGTWTx9/zHgy2iENT u/1D1jD+K32GOMzLI6VYbxRJBvcZmt8K3HFrjpeQKsbaNzyGrKM2FKltB5wgeFYnAjTf F9bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=m5+1eAEJ; arc=pass (i=1 spf=pass spfdomain=hugovil.com dkim=pass dkdomain=hugovil.com); spf=pass (google.com: domain of linux-kernel+bounces-151496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151496-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j9-20020a05622a038900b004312a27b7f3si3941384qtx.89.2024.04.19.06.43.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 06:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=m5+1eAEJ; arc=pass (i=1 spf=pass spfdomain=hugovil.com dkim=pass dkdomain=hugovil.com); spf=pass (google.com: domain of linux-kernel+bounces-151496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151496-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 705CE1C21900 for ; Fri, 19 Apr 2024 13:43:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F275512CD9C; Fri, 19 Apr 2024 13:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="m5+1eAEJ" Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32EC912B141; Fri, 19 Apr 2024 13:43:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.243.120.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713534190; cv=none; b=eIsSuVBgEHa+UlW2U4DUePTUD5j6irbgcelw9gel5YHhx4rIYDuMN8abNc+72yEvJ6/7xqgogikahmmGMo3ax1hOr70cH5kYPSIeSDdayYdt4eOnU8SAa3KBus7IdDyTrthxHBO6ANdCPV4COGgF/HG5ryOdHAcyFqNLcro0Ch8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713534190; c=relaxed/simple; bh=Ao+6HPE1Vskkt49HDiuaB/xLvWW49nY4+8hJXaqEBIA=; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Mime-Version: Content-Type:Subject; b=N8mQqQ9n2bLll4oVliK9E0SpQy3kdCd83nFRj498iE63C4Dbx064QQcYADcyKydfLk7/81HdZYyiIqKCNJm9t6JFbfJXcMoCokHPlDd/eqRAWixLt0zTKocIVUI9JMu7PfHv4s1Jpv5aKzHE1dYPcW+gB0NHhQJGrz40qf8vxkY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com; spf=pass smtp.mailfrom=hugovil.com; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b=m5+1eAEJ; arc=none smtp.client-ip=162.243.120.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com 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:Message-Id:Cc:To:From :Date:subject:date:message-id:reply-to; bh=/SWo5T27HPZBjevRWtDoRJYaikHCKvINDhNye9BXHcg=; b=m5+1eAEJeajoC+i2udjQOm/4DR ZNrHejjMiqEaL5Ss5yhC/p9Beuczp8gxFkNdgi7U3AsVPGmqc6QRI0qgNtxd9/y4MQJ9xPfmGjnLc H6Fo0JtGvdRBvmd67EYVcnV31WUZvSTLxxwZfVa79KH0JBEKs0hA/2SzNmAXWGhYIiPE=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:48460 helo=debian-acer) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1rxoW3-0002rg-Qg; Fri, 19 Apr 2024 09:43:00 -0400 Date: Fri, 19 Apr 2024 09:42:59 -0400 From: Hugo Villeneuve To: Konstantin Pugin Cc: Konstantin Pugin , Greg Kroah-Hartman , Jiri Slaby , Hugo Villeneuve , Andy Shevchenko , Lech Perczak , Ilpo =?ISO-8859-1?Q?J=E4rvinen?= , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Message-Id: <20240419094259.4257fefba753f6bd5962720c@hugovil.com> In-Reply-To: <20240419124506.1531035-1-rilian.la.te@ya.ru> References: <20240419124506.1531035-1-rilian.la.te@ya.ru> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.2 NICE_REPLY_A Looks like a legit reply (A) Subject: Re: [PATCH v4 0/3] add support for EXAR XR20M1172 UART 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) On Fri, 19 Apr 2024 15:45:00 +0300 Konstantin Pugin wrote: > From: Konstantin Pugin > > EXAR XR20M1172 UART is mostly SC16IS762-compatible, but > it has additional register which can change UART multiplier > to 4x and 8x, similar to UPF_MAGIC_MULTIPLIER does. So, I used this > flag to guard access to its specific DLD register. It seems than > other EXAR SPI UART modules also have this register, but I tested > only XR20M1172. > Yes, in datasheet this register is called "DLD - Divisor Fractional" > or "DLD - Divisor Fractional Register", calling depends on datasheet > version. Hi Konstantin, it would probably be a good idea to also add the device to the list of supported devices for this driver in the Kconfig file. Hugo. > > I am sorry about too many submissions and top post reply. About second - > I do not know how to reply properly to this ML from GMail phone app. About first - I just > get very good feedback from Andy Shevchenko, and want to fix his review picks ASAP. > > Changes in v2: > - use full name in git authorship > > Changes in v3: > - change formatting of commit messages to unify width > - rework commit messages according to code review > - add XR20M117X namespace for EXAR-specific register > - do not use UPF_MAGIC_MULTIPLIER for checking EXAR chip, > use s->devtype directly > - replace while loop to fls function and expanded check > - sort compatibles > - reformat multiline comment. > > Changes in v4: > - rebase onto tty-next branch > - added Kconfig mention of the chip > - used rounddown_power_of_two instead of fls and manual shift > - used FIELD_PREP instead of custom macro > - removed has_dld bit from common struct, replaced by check function, > which checks directly by s->devtype > - fixed tab count > - properly apply Vladimir Zapolskiy's tag to patch 2 only > > Konstantin Pugin (3): > serial: sc16is7xx: announce support of SER_RS485_RTS_ON_SEND > dt-bindings: sc16is7xx: Add compatible line for XR20M1172 UART > serial: sc16is7xx: add support for EXAR XR20M1172 UART > > .../bindings/serial/nxp,sc16is7xx.yaml | 1 + > drivers/tty/serial/Kconfig | 18 +++--- > drivers/tty/serial/sc16is7xx.c | 62 +++++++++++++++++-- > drivers/tty/serial/sc16is7xx_i2c.c | 1 + > drivers/tty/serial/sc16is7xx_spi.c | 1 + > 5 files changed, 70 insertions(+), 13 deletions(-) > > > base-commit: c6795fbffc4547b40933ec368200bd4926a41b44 > -- > 2.34.1 > > > -- Hugo Villeneuve