Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp495478pxb; Tue, 14 Sep 2021 02:16:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKlOlUwWoAyalluXJu2eR6t1MYajPgAhl0FauR637tTa/j8QJep658Q3Bauyhfe+AjbJd8 X-Received: by 2002:a05:6e02:1d87:: with SMTP id h7mr6226341ila.92.1631610976612; Tue, 14 Sep 2021 02:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631610976; cv=none; d=google.com; s=arc-20160816; b=Pnivljwx8NnOdvQJBPT6/W3tVqlPqKqMHUmFfYPLxAsN2jQlZzG2eDrgsjLT4hctxb 8KagJIDVUeebf9EfAhF4Ow0y5WfFPh3SVeKDXwb5/EBudfwWSoIfhwJ958vSNyKM2Eoi kD1ClsW3AjMqBjlk+tzKhGpISeDFYSVKrBvyWsT8kkAJnQj+CxmI7cbxS+6MJRwQPiSU dLX5RwlG0PIjKHGrrvr7YL1ITPNVxZsUJkoATGmG4I5UDxY9oqyl4KiFFzGDglpQkVKt Ru22Y08vPTUQoyRibsrihIWClac4wYYOeW0ioAvNAg8A2EfuYC1Xt4YMLLAg5YwfzIC1 naaw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=LMC4EVcw/uF5QULJdQl6X+7D4+czqBFVcA6/z6KRT6U=; b=kysjS7GB6nIyxDjKj7XaLHUzqOXTaDn+RDzsyZ8mq+sBC1zBcQBIeUsirV+TWQw+zn +r09+Rg5zmuXiCVPOEEgf6EVn5TZZDKRebDS2R4zswZ/v/fM35LaK3qDmdLRhkm9Pj2F z8bn6ClyD8+tJblKOeFofNXF8FXxm1rHtcCUsw1zkNIwbgyf6Kyv6Cg2srjVoNTg6lAg QCp1aLRgHSXxySaMaWFnrUSEBxW2SZN8gdEVNyD9AR0UmJcuLVqXAxYF+q0u8+jI5dWV nqOmbFVVZaLZ6zA2t/LJtUCwj5/GLIj6cmoD2v9JT4x5XFroFzQJRcnNTp2ORFzZa3+s nUZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=k3u9KliM; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si10475759ios.12.2021.09.14.02.16.06; Tue, 14 Sep 2021 02:16:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=k3u9KliM; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbhINJQG (ORCPT + 99 others); Tue, 14 Sep 2021 05:16:06 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:34578 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbhINJPi (ORCPT ); Tue, 14 Sep 2021 05:15:38 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 6F225220D3; Tue, 14 Sep 2021 09:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1631610860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LMC4EVcw/uF5QULJdQl6X+7D4+czqBFVcA6/z6KRT6U=; b=k3u9KliMlQ1JEcDJvVDy77s4yVKR33N/MOhZteBtose3V9JGHCU5xKsufTw/GNkxmTvPcq ceA7dHCV8Kc0Q9ps41X27qMDo+SS+cEu3ogV+qTVdoRAdiZr17UO1/0grQWpgxWvbIEeyn TeQqHhmfFsBo3/fjQkyDSKIlN6Gzo3U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1631610860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LMC4EVcw/uF5QULJdQl6X+7D4+czqBFVcA6/z6KRT6U=; b=g7ekpIiGMxbDSdboue8huaHEfTONuSAE/MPja2vjTxyK9Qbst7oCMmpJPa/ZqdrGZgIFUn eAgjdQYKKMFrUZBQ== Received: from localhost.localdomain (unknown [10.100.201.122]) (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 4DA9BA3B94; Tue, 14 Sep 2021 09:14:19 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Arnd Bergmann , Samuel Iglesias Gonsalvez , Jens Taprogge , Scott Branden , Ulf Hansson , "David S. Miller" , Jakub Kicinski , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Subject: [PATCH 15/16] tty: the rest, stop using tty_flip_buffer_push Date: Tue, 14 Sep 2021 11:14:14 +0200 Message-Id: <20210914091415.17918-8-jslaby@suse.cz> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210914091415.17918-1-jslaby@suse.cz> References: <20210914091134.17426-1-jslaby@suse.cz> <20210914091415.17918-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are going to remove the former, so call the latter directly in the couple of remaining users. Signed-off-by: Jiri Slaby Cc: Arnd Bergmann Cc: Samuel Iglesias Gonsalvez Cc: Jens Taprogge Cc: Scott Branden Cc: Ulf Hansson Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Luiz Augusto von Dentz --- drivers/char/pcmcia/synclink_cs.c | 2 +- drivers/ipack/devices/ipoctal.c | 2 +- drivers/misc/bcm-vk/bcm_vk_tty.c | 2 +- drivers/mmc/core/sdio_uart.c | 2 +- drivers/net/usb/hso.c | 2 +- net/bluetooth/rfcomm/tty.c | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index 78baba55a8b5..29a7a89ee58d 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c @@ -952,7 +952,7 @@ static void rx_ready_async(MGSLPC_INFO *info, int tcd) } if (work) - tty_flip_buffer_push(port); + tty_schedule_flip(port); } diff --git a/drivers/ipack/devices/ipoctal.c b/drivers/ipack/devices/ipoctal.c index c14e65a5d38f..714e2b8c551f 100644 --- a/drivers/ipack/devices/ipoctal.c +++ b/drivers/ipack/devices/ipoctal.c @@ -184,7 +184,7 @@ static void ipoctal_irq_rx(struct ipoctal_channel *channel, u8 sr) sr = ioread8(&channel->regs->r.sr); } while (isr & channel->isr_rx_rdy_mask); - tty_flip_buffer_push(port); + tty_schedule_flip(port); } static void ipoctal_irq_tx(struct ipoctal_channel *channel) diff --git a/drivers/misc/bcm-vk/bcm_vk_tty.c b/drivers/misc/bcm-vk/bcm_vk_tty.c index 1b6076a89ca6..328109a719be 100644 --- a/drivers/misc/bcm-vk/bcm_vk_tty.c +++ b/drivers/misc/bcm-vk/bcm_vk_tty.c @@ -114,7 +114,7 @@ static void bcm_vk_tty_wq_handler(struct work_struct *work) } if (count) { - tty_flip_buffer_push(&vktty->port); + tty_schedule_flip(&vktty->port); /* Update read offset from shadow register to card */ vkwrite32(vk, vktty->rd, BAR_1, diff --git a/drivers/mmc/core/sdio_uart.c b/drivers/mmc/core/sdio_uart.c index 04c0823e0359..55fc67bd0937 100644 --- a/drivers/mmc/core/sdio_uart.c +++ b/drivers/mmc/core/sdio_uart.c @@ -418,7 +418,7 @@ static void sdio_uart_receive_chars(struct sdio_uart_port *port, *status = sdio_in(port, UART_LSR); } while ((*status & UART_LSR_DR) && (max_count-- > 0)); - tty_flip_buffer_push(&port->port); + tty_schedule_flip(&port->port); } static void sdio_uart_transmit_chars(struct sdio_uart_port *port) diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 7dc1ef3f93c3..55ea64b162e1 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -2018,7 +2018,7 @@ static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial) if (count >= urb->actual_length) { tty_insert_flip_string(&serial->port, urb->transfer_buffer, urb->actual_length); - tty_flip_buffer_push(&serial->port); + tty_schedule_flip(&serial->port); } else { dev_warn(&serial->parent->usb->dev, "dropping data, %d bytes lost\n", urb->actual_length); diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index ebd78fdbd6e8..2a09637bdb00 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c @@ -618,7 +618,7 @@ static void rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb) BT_DBG("dlc %p len %d", dlc, skb->len); tty_insert_flip_string(&dev->port, skb->data, skb->len); - tty_flip_buffer_push(&dev->port); + tty_schedule_flip(&dev->port); kfree_skb(skb); } @@ -677,7 +677,7 @@ static void rfcomm_tty_copy_pending(struct rfcomm_dev *dev) rfcomm_dlc_unlock(dev->dlc); if (inserted > 0) - tty_flip_buffer_push(&dev->port); + tty_schedule_flip(&dev->port); } /* do the reverse of install, clearing the tty fields and releasing the -- 2.33.0