Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp538543rdb; Thu, 30 Nov 2023 11:11:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv5hgqcWP+ssZMGai9N+oLwtFH+4zfl7wr46QPtVb3AhfvPwdJiBmDF4EtEUcQ5+T+dxZA X-Received: by 2002:a05:6a00:21c4:b0:6cb:b7b7:c04c with SMTP id t4-20020a056a0021c400b006cbb7b7c04cmr23443077pfj.12.1701371470554; Thu, 30 Nov 2023 11:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701371470; cv=none; d=google.com; s=arc-20160816; b=fHTTXMinn9w4/Z6QAEAokh2mQbghJCpZUtW5F+SBhy6oulM0leTQdWbfk2RbJUmd/l U6hjiHhlAtZ5VdAV3tnC7x8h0UExSdVtu50qIFJznCcIh9bK39E++kvpfjH7X+AUjlE6 lnzbs7f6WDWtTJhmP35QfJL7iYW+1Voa4TezKZGI92QYGYrcoDKzMf6RORloVE8keVsM ETdyAf7V0y1l9qha9RnwyqMLuN75tCKQ4fa80/CakwD+JKUq5w5V8dpfmvJbcn8jp+P4 VPfZG5ZgMSLfgT5fyQ8l7006iSbFYmkRuUARK/sYGVeNdszZ/52vXpj6/PvJPSiTLHmY KWiA== 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 :message-id:date:cc:to:from:dkim-signature; bh=UV2kGcH6+Z9wP1X2LMycZ5WrcrpzIA4/73bs01XpTXc=; fh=TwCzphd3GvIn5DzVyM5Tad6hmxhn7TdVF0rNjlsRujg=; b=iud2+T5LNsfLIsu0T0MgvB6KX5PugxqIxQWlBlmCu+4Rqy5BCkEPlXT2i28TH0UOZZ Hn4GHDPIWexp15BR+S5dUL7EwmigDoBVkfDBuX/hCQchtvFQk+Xaxyr/ihtpN20UlQ95 e44txhjZPzFblf3W0mwswMeG7TWfZ2FwPb1ex0vqIIaJKL7VghxtpyPEAopEcaiefZp0 MgmHkyuJjlTEo35WeupAg29YsXTXDHqhGOWWv4fzZ3QCHPEy91iEh82LQ2eSH+xz+WB6 MALKK3s/4ZidEWEWk8iZDCyl8kw49zXzCZc1eQuwGdd74AM1wh1+evCJ1Nw8g1R+ZJKi B0Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=kvA5k2X3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e20-20020a056a001a9400b006cd905021d4si1809297pfv.367.2023.11.30.11.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:11:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=kvA5k2X3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 965EF8028A7E; Thu, 30 Nov 2023 11:11:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231352AbjK3TKw (ORCPT + 99 others); Thu, 30 Nov 2023 14:10:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbjK3TKv (ORCPT ); Thu, 30 Nov 2023 14:10:51 -0500 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E1F10E3; Thu, 30 Nov 2023 11:10:57 -0800 (PST) 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:Date:Cc:To :From:subject:date:message-id:reply-to; bh=UV2kGcH6+Z9wP1X2LMycZ5WrcrpzIA4/73bs01XpTXc=; b=kvA5k2X3IwFPR0P1qwEjDsEXQ8 Y1p2OChsIKWnH8b/F0jO72LJDSBgz7bgDuaRdQtXof5LuW0w89Xan6TvtKcBN7zD3Sa8gBxHMi8zm Ubd8Q0Xqa0judaGvubS9LJ7OGWFz0+uMhsx7yezFe3I275bm6NK/MfWr/Mz7IFJXMejM=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:48272 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1r8mR3-0003sb-07; Thu, 30 Nov 2023 14:10:54 -0500 From: Hugo Villeneuve To: gregkh@linuxfoundation.org, jirislaby@kernel.org, hvilleneuve@dimonoff.com Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, hugo@hugovil.com Date: Thu, 30 Nov 2023 14:10:42 -0500 Message-Id: <20231130191050.3165862-1-hugo@hugovil.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 lipwig.vger.email X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_CSS autolearn=unavailable autolearn_force=no version=3.4.6 Subject: [PATCH 0/7] serial: sc16is7xx and max310x: regmap fixes and improvements 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 30 Nov 2023 11:11:06 -0800 (PST) From: Hugo Villeneuve Hello, this patch series brings fixes and improvements related to regmap access for sc16is7xx and max310x drivers. They are related to commit 3837a0379533 ("serial: sc16is7xx: improve regmap debugfs by using one regmap per port"). Patches 1 and 2 address some comments formulated during review of the source patch listed above. Patch 3 removes a structure member made obsolete. Patches 4 and 5 are improvements for code readability. Patches 6 and 7 port improvements from patches 4 and 5 of the sc16is7xx driver over to the max310x driver. I have tested the changes on a custom board with two SC16IS752 DUART over a SPI interface using a Variscite IMX8MN NANO SOM. The four UARTs are configured in RS-485 mode. Thank you. Hugo Villeneuve (7): serial: sc16is7xx: fix snprintf format specifier in sc16is7xx_regmap_name() serial: sc16is7xx: remove global regmap from struct sc16is7xx_port serial: sc16is7xx: remove unused line structure member serial: sc16is7xx: add macro for max number of UART ports serial: sc16is7xx: improve sc16is7xx_regmap_name() buffer size computation serial: max310x: add macro for max number of ports serial: max310x: use separate regmap name for each port drivers/tty/serial/max310x.c | 19 +++++++++++++++++-- drivers/tty/serial/sc16is7xx.c | 32 ++++++++++++++++++-------------- 2 files changed, 35 insertions(+), 16 deletions(-) base-commit: d804987153e7bedf503f8e4ba649afe52cfd7f6d -- 2.39.2