Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp367923pxb; Tue, 12 Apr 2022 03:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx42TwStI1/4L10FHAalb3pstdEapH2ZRO8c7HuxhKW+gBd28cvt1j8qptK/XvTQDVd81/q X-Received: by 2002:a05:6402:b2c:b0:41d:7adc:e441 with SMTP id bo12-20020a0564020b2c00b0041d7adce441mr10136557edb.285.1649761012302; Tue, 12 Apr 2022 03:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649761012; cv=none; d=google.com; s=arc-20160816; b=GPYJsnnyxTDmcFXSKwx80TSuUdnYi+V6BdQ6ARs3BHeJDiH4kKkmacVY4Y9NOYhlh0 uNX+tgioT77scb4hOQtQ8UpF0Y6tFlrWIPHGiD9AlpfH+RtltxhyMMno21euzH5SvGnN 0qps0veuNHMVjgU3MpYGrLv5zoiJTAn5vCBT1EKe5AQz0+VriyUVbrAPHMif8WGChUGn e204HdBqwMfSdTyw8MI1A61IButtz+PvOteiuEzti9xbc2zMiZuoTRKXTAG0Ldw5+DjM N4LoWTwdwLi6TiwkQmH2O8FMiMlDLyr09V8Vi9bXAoBPKvLuEqr9Cce/o4Xgjr4Jz7HE cVng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=j1s/ljyl7zRa3Wwc8LKTq4IIoQmYHWi7pP4k8x7uAGE=; b=zIWyX3zNazh2v8Logtb7WEzV4GF9jL5LYGq5c+o2sxT+oPofa16yuLQ6ia1A1Qihtq K8OzgfNypE1dIemD1KFGqIHwR7RCClaC8cufbZScCyT5PQQY+melJiMsq5n2SrFCkve0 9neIuJRKy6Pmyq/Wq2cQKIqevkJ1TTz/Rb3Tg2pIXx5iTB29RDd/hqMRZxtfDLZSUWGB Ag9xrQocDLGLGdGD5Ii1ffKpSV2XfthvY2VAoaAm5sV7zcDJ0df4Zs8uKdVPfK2q0CVt /hVW/4aPTUM5muMzRyfjgxKi2OLu8qoR7vk+MmBnX6lI0NvuW8pixFYOcBvkqilpT0ti IQ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=UTiDDmUH; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a170906138300b006e7ed9e28f0si8823101ejc.979.2022.04.12.03.56.23; Tue, 12 Apr 2022 03:56:52 -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=pass header.i=@suse.cz header.s=susede2_rsa header.b=UTiDDmUH; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S233096AbiDKK4p (ORCPT + 99 others); Mon, 11 Apr 2022 06:56:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240251AbiDKK4Z (ORCPT ); Mon, 11 Apr 2022 06:56:25 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF5A0B12; Mon, 11 Apr 2022 03:54:08 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 8BED81F38D; Mon, 11 Apr 2022 10:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649674447; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j1s/ljyl7zRa3Wwc8LKTq4IIoQmYHWi7pP4k8x7uAGE=; b=UTiDDmUHwjaSsgqSy4T6CE3RTR8l+AnaXBjXW2ap/oDIsan5ZsvNBm2HM/XMMiOftaqqrK A8lEUQKIGeOmYFOU9L4oju9eMuMTurRmqIStodrOOkwJh4c/F3KHeJKmDOUh4E0DAMmp3A 8iKjxbiu1viVQPm3c0vm7LW//vNl1Q0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649674447; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j1s/ljyl7zRa3Wwc8LKTq4IIoQmYHWi7pP4k8x7uAGE=; b=91vAcOt5z+ytrUcuWk8bvmToYhRU/F6vOBRZ9r7aVzeI9ni048a5Le5rVB3bf0VrRSxahD rYPIYAwSuBxUe4Bg== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id F00D2A3B87; Mon, 11 Apr 2022 10:54:05 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Tobias Klauser , Richard Genoud , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Vladimir Zapolskiy , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam , Russell King , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Kevin Cernekee , Palmer Dabbelt , Paul Walmsley , Orson Zhai , Baolin Wang , Chunyan Zhang , Patrice Chotard , linux-riscv@lists.infradead.org Subject: [PATCH 0/3] tty: TX helpers Date: Mon, 11 Apr 2022 12:54:02 +0200 Message-Id: <20220411105405.9519-1-jslaby@suse.cz> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First, this series depends on "tty: various cleanups" (20220411104506.8990-1-jslaby@suse.cz). This series introduces uart_port_tx{,_limit}() TX helpers. See PATCH 1/3 for the details. Comments welcome. Then it switches drivers to use them. First, uart_port_tx() in 2/3 and then uart_port_tx_limit() in 3/3. The diffstat of patches 2+3 is as follows: 27 files changed, 330 insertions(+), 883 deletions(-) which appears to be nice. Cc: Tobias Klauser Cc: Richard Genoud Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Claudiu Beznea Cc: Vladimir Zapolskiy Cc: Liviu Dudau Cc: Sudeep Holla Cc: Lorenzo Pieralisi Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: "Andreas Färber" Cc: Manivannan Sadhasivam Cc: Russell King Cc: Florian Fainelli Cc: bcm-kernel-feedback-list@broadcom.com Cc: "Pali Rohár" Cc: Kevin Cernekee Cc: Palmer Dabbelt Cc: Paul Walmsley Cc: Orson Zhai Cc: Baolin Wang Cc: Chunyan Zhang Cc: Patrice Chotard Cc: linux-riscv@lists.infradead.org Jiri Slaby (3): tty: serial: introduce uart_port_tx{,_limit}() helpers tty: serial: use uart_port_tx() helper tty: serial: use uart_port_tx_limit() helper Documentation/driver-api/serial/driver.rst | 28 +++++++++++ drivers/tty/serial/21285.c | 40 ++++++---------- drivers/tty/serial/altera_jtaguart.c | 43 +++++------------ drivers/tty/serial/altera_uart.c | 47 ++++++------------- drivers/tty/serial/amba-pl010.c | 40 +++------------- drivers/tty/serial/apbuart.c | 37 +++------------ drivers/tty/serial/atmel_serial.c | 37 ++++++--------- drivers/tty/serial/bcm63xx_uart.c | 48 ++++--------------- drivers/tty/serial/fsl_lpuart.c | 49 +++++++------------- drivers/tty/serial/lantiq.c | 50 +++++++------------- drivers/tty/serial/lpc32xx_hs.c | 53 +++++++-------------- drivers/tty/serial/mcf.c | 35 ++++++-------- drivers/tty/serial/mpc52xx_uart.c | 54 +++++++--------------- drivers/tty/serial/mps2-uart.c | 44 ++++++------------ drivers/tty/serial/mux.c | 48 ++++++------------- drivers/tty/serial/mvebu-uart.c | 47 ++++++------------- drivers/tty/serial/mxs-auart.c | 43 ++++++++--------- drivers/tty/serial/omap-serial.c | 53 ++++++--------------- drivers/tty/serial/owl-uart.c | 47 ++++++------------- drivers/tty/serial/pxa.c | 43 ++++------------- drivers/tty/serial/rp2.c | 36 ++++----------- drivers/tty/serial/sa1100.c | 50 ++++++++------------ drivers/tty/serial/serial_core.c | 53 +++++++++++++++++++++ drivers/tty/serial/serial_txx9.c | 40 +++------------- drivers/tty/serial/sifive.c | 48 +++---------------- drivers/tty/serial/sprd_serial.c | 41 +++------------- drivers/tty/serial/st-asc.c | 51 +++----------------- drivers/tty/serial/vr41xx_siu.c | 42 +++-------------- drivers/tty/serial/vt8500_serial.c | 47 ++++++------------- include/linux/serial_core.h | 9 ++++ 30 files changed, 420 insertions(+), 883 deletions(-) -- 2.35.1