Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp495454pxb; Tue, 14 Sep 2021 02:16:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU62zwJSUe+F0rdo2e0ytaCm4BTM+MrOaioP8o7jR4AgoUdNiLN9KH+1wEiBKXC9TW2y2W X-Received: by 2002:a6b:be02:: with SMTP id o2mr12541541iof.103.1631610974026; Tue, 14 Sep 2021 02:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631610974; cv=none; d=google.com; s=arc-20160816; b=ndB3fh+OZqS4FXKqGRUOHdFb72i43hDcEKzazorW7Wfcbm1TVLDtsFE1wnYlb1j0el IfHw00f7rugJ5ZEOMR1ghVzHT8jhcDYzxB1In7To1alA4TB6Vul0wCMF0Va+r8Fj8BS2 A5P1QlsBQ8NJs1HJC5M0mC+/NejRlMs9XatUrMdD670mTReBPrdiva1P7YN4hgmQ+BkJ zCzQmxBBJxqDzFr78/T5Irtcz3OvDn5LCnyeyRDuiZUkq/06qydPg8xABmLNu8lj1BOJ B6ELUguCjr3h0dnxK0UrI1jywNgyMkQafTBGRiW9ZjBicslnSzZsRLh5PhZxRGfLsMSD iUWw== 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=txOd2IWUIzDSEFZp5372yeQmEvrfSft2wWeQObhBtmQ=; b=K2MM/xXwd18fg6kOS4PQY6l2uRghwTQXmOzjGjwol+Mhlb8ywZwqGGiqpQ3t7lFJNd c7ed/OjgdfCnP0Z22a+zQQP5NYYwaOKMbNhcpLt2sH0TUSgPGyhDDU+TnrQV82pQCzXO Gb6ZmxcOfGsgeIuETxrxtyzxKF1KvavD/gCqIenWuJniFs5zaPjbkMuRev5truNNrFZl ORuICbjnkrPodHwGF+gah9NlVlVxy9YnSUj8jrxNfqVHhDZnyC0axS398l0DrKXEUJve 6o/mAXQ25/OHo5lgEDSmnrSpcqxVwpKRd1gkbLpowdrlIB2u1UJPSiOn3OM0DoZeuSYY +JBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ji4MUNTG; 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 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 q22si8899496jae.93.2021.09.14.02.16.02; Tue, 14 Sep 2021 02:16:14 -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=Ji4MUNTG; 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 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 S231449AbhINJQD (ORCPT + 99 others); Tue, 14 Sep 2021 05:16:03 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:44060 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbhINJPh (ORCPT ); Tue, 14 Sep 2021 05:15:37 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 47E81200E2; Tue, 14 Sep 2021 09:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1631610859; 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=txOd2IWUIzDSEFZp5372yeQmEvrfSft2wWeQObhBtmQ=; b=Ji4MUNTGGQyTZ+hFIkdlpNPwXoDGHzXXxeiGQdON33E6pNbzW2NNz4JwLSSygvyeVFt5mD jAYuWzaViaue1ATKk9rn29sxKWgt0g8c1sTzvmvwIqSBh95Jy1HQhWl+rAulc/PdEJKgRJ oLN9rqe/K1wnjGFqZFv+rbRhWZVGiGo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1631610859; 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=txOd2IWUIzDSEFZp5372yeQmEvrfSft2wWeQObhBtmQ=; b=ttzstxSjRCq5UcgkxklHOopri5R6NOZ5g0oejhtNt08CifpekTXQdd46iYbLByipBFi3cy i+UW18w74OUJsiBg== 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 161CCA3B8E; 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 , David Lin , Johan Hovold , Alex Elder , linux-staging@lists.linux.dev, greybus-dev@lists.linaro.org Subject: [PATCH 14/16] tty: drivers/staging/, stop using tty_flip_buffer_push Date: Tue, 14 Sep 2021 11:14:13 +0200 Message-Id: <20210914091415.17918-7-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 drivers/staging/. Signed-off-by: Jiri Slaby Cc: David Lin Cc: Johan Hovold Cc: Alex Elder Cc: linux-staging@lists.linux.dev Cc: greybus-dev@lists.linaro.org --- drivers/staging/fwserial/fwserial.c | 4 ++-- drivers/staging/gdm724x/gdm_tty.c | 2 +- drivers/staging/greybus/uart.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index e8fa7f53cd5e..b2d3f95edbc3 100644 --- a/drivers/staging/fwserial/fwserial.c +++ b/drivers/staging/fwserial/fwserial.c @@ -518,7 +518,7 @@ static void fwtty_emit_breaks(struct work_struct *work) if (c < t) break; } - tty_flip_buffer_push(&port->port); + tty_schedule_flip(&port->port); if (port->mstatus & (UART_LSR_BI << 24)) schedule_delayed_work(&port->emit_breaks, FREQ_BREAKS); @@ -565,7 +565,7 @@ static int fwtty_rx(struct fwtty_port *port, unsigned char *data, size_t len) c = tty_insert_flip_string_fixed_flag(&port->port, data, TTY_NORMAL, n); if (c > 0) - tty_flip_buffer_push(&port->port); + tty_schedule_flip(&port->port); n -= c; if (n) { diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index 04df6f9f5403..95a3b4e61fec 100644 --- a/drivers/staging/gdm724x/gdm_tty.c +++ b/drivers/staging/gdm724x/gdm_tty.c @@ -129,7 +129,7 @@ static int gdm_tty_recv_complete(void *data, if (data && len) { if (tty_buffer_request_room(&gdm->port, len) == len) { tty_insert_flip_string(&gdm->port, data, len); - tty_flip_buffer_push(&gdm->port); + tty_schedule_flip(&gdm->port); } else { return TO_HOST_BUFFER_REQUEST_FAIL; } diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index e6d860a9678e..2bdc2401b652 100644 --- a/drivers/staging/greybus/uart.c +++ b/drivers/staging/greybus/uart.c @@ -122,7 +122,7 @@ static int gb_uart_receive_data_handler(struct gb_operation *op) recv_data_size, count); } if (count) - tty_flip_buffer_push(port); + tty_schedule_flip(port); return 0; } -- 2.33.0