Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp670251pxb; Tue, 14 Sep 2021 06:20:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcG3tQg3sldr8K0C1tumGdVe0CgR2ovi4ENVBmQaIfVmVNLg5JsVglQ1NDfa1LyQHrvXwK X-Received: by 2002:a92:cbc6:: with SMTP id s6mr12113989ilq.260.1631625644824; Tue, 14 Sep 2021 06:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631625644; cv=none; d=google.com; s=arc-20160816; b=l9el6Oho6G1zGnms97OmwioHhfWVtPqhcv2esgwmKcF/zXivXZiAZae5VxxSyipZQ2 EirZdECO1uz24u5ezGCr0M2JJTrQXB3/1sutB+Vdzu8SDKxE9hT6DrWUEdWJlWr/VzCo krFbBQgiJyJ8Qn0GHGKx7O+6ZLncYr5pwnpa4I+OWYb0uoesXtDljE8ISFm5Q2FdZ+y6 JzN6zx/2Ax0ju8fHNi6Gg9tP1JC8H86bWpqZR+RWHxJc+K6VYOtfCYQd/hy59+wODSe7 TmS/iWDffhJZeH3Ac7bVWOS4hJYxAMTBWyPicgc70xHkD70S5OmwNn8wzWq9Mq5vsHui 3eEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vF5L7GXRUK29LXMTYRG6W7BkE3rRpiH/vOLwx+ir5w4=; b=F4iE2WfvTOqTUXBMj+fX/D8jax8Fk7I87wyi5uU2O/qMQaF4IaxuU9awNRxrMf7uVA 0c6SoDpbBt4W6OMWTHi60qVUmYG215O5qkTZtA/sMpfcHEH+0MIC4MW+3XdGGUpBD145 V3rYTYTKrb9BWeDl3D5KKOF+Kl0gu/4hqSaqS3xnRtVi49rm3q6Fq8vATX18JLdzmAZu Gm4Z+TP0+XLRTlZy+Htb6ZJSWrnre0yfPejd6rm7ivlWNav0iKp9iLP0yVdIXvJKmmxg OBpyYK24dKttG/9VGg8Q2OFOcY8b6YvmAmdcXCtvGX7M9/Ncyf8tIE1GVSZrRWGvrrqG yipg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBmEJnqk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si10584984jao.113.2021.09.14.06.20.32; Tue, 14 Sep 2021 06:20:44 -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=@linaro.org header.s=google header.b=rBmEJnqk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232989AbhINNUz (ORCPT + 99 others); Tue, 14 Sep 2021 09:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233122AbhINNUw (ORCPT ); Tue, 14 Sep 2021 09:20:52 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B70DFC061760 for ; Tue, 14 Sep 2021 06:19:35 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id h9so1120523ile.6 for ; Tue, 14 Sep 2021 06:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vF5L7GXRUK29LXMTYRG6W7BkE3rRpiH/vOLwx+ir5w4=; b=rBmEJnqkXzS41M6QNEd5U6BFmT2ADhSPFtA/aqR/0hSd99MmexWWeb3DwdZKukJzlF gNrsslLy6bpsbDJA/GveRZoLSFc6eruRHDg4HKEPDgb/rLDY48dgOYdTg7nCsFXDgrZB 6bR7YAcjNUrpPmGBP+ZOf2b8Lu8uOmiPANWB6wY1Sy5CxPZZdQhHi85pwwEYnAM9ZOwv TEQW1NKjdP3qQFmbfMyhvh7wBJoW2D/pKK+WtXvkxnMNbonOf3Z0p0H+N65Ci6ByuR36 N8xdsyZJKiml3CyyHgv5vGVuNGe5OKNF3gcyLqH1gKHmIZXV6VI8iqXkFF/fZFe+mkNo IGrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vF5L7GXRUK29LXMTYRG6W7BkE3rRpiH/vOLwx+ir5w4=; b=S/6gDyq+QBykpw47xastPK4Tg9l/HpVaduZtz3ydUnny5j9sFjmar0+VUdKbT49sgY RqMjdCxNJHP/ZUQDKJpakXa5eN/QFwKtHAeyFmOx4p4kKQidaRqWwozabel99h4qEedT 63afOfs+RI11g+4EeG5JbzTxGDImmQTNPGalMrhDIctjeyiDDqFn9epbgwoq38pwvaHq H7VrpAg9oqy1oNZCHmjTAjXNVCWzVEiUOzXSE4I3oQvqnZ+pNiKKGs9eCTcHdE3WPJdf me2h+lzYeQWYh+HYkJPL4g+eRlNP+L6scqyWQK5KAwgy6hzvXudb6UTTDlNCCcqbmTuK ee/Q== X-Gm-Message-State: AOAM53153uYESXgyNE6SvVyQH4S6wBGWnTYOtZbahetkeP7tQglC/Bis AXmYLE9z3Zh4TeuxtGDGpxaQ9w== X-Received: by 2002:a05:6e02:551:: with SMTP id i17mr3532683ils.281.1631625575171; Tue, 14 Sep 2021 06:19:35 -0700 (PDT) Received: from [172.22.22.26] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id f17sm4693585ilq.44.2021.09.14.06.19.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Sep 2021 06:19:34 -0700 (PDT) Subject: Re: [greybus-dev] [PATCH 14/16] tty: drivers/staging/, stop using tty_flip_buffer_push To: Jiri Slaby , gregkh@linuxfoundation.org Cc: Alex Elder , linux-staging@lists.linux.dev, Johan Hovold , linux-kernel@vger.kernel.org, greybus-dev@lists.linaro.org, linux-serial@vger.kernel.org, David Lin References: <20210914091134.17426-1-jslaby@suse.cz> <20210914091415.17918-1-jslaby@suse.cz> <20210914091415.17918-7-jslaby@suse.cz> From: Alex Elder Message-ID: <9cd19a7d-797f-4951-c29a-c263f69a6631@linaro.org> Date: Tue, 14 Sep 2021 08:19:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210914091415.17918-7-jslaby@suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/14/21 4:14 AM, Jiri Slaby wrote: > 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/. For "greybus/uart.c", looks good. Reviewed-by: Alex Elder > > 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; > } > >