From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758771AbcIXN5U (ORCPT ); Sat, 24 Sep 2016 09:57:20 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:36272 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900AbcIXN5S (ORCPT ); Sat, 24 Sep 2016 09:57:18 -0400 Subject: Re: [PATCH] mos7840: fix chars_in_buffer() return value To: Stas Sergeev References: <1474724823-28872-1-git-send-email-stsp@list.ru> Cc: Caylan Van Larson , Alan Cox , Johan Hovold , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org From: Sergei Shtylyov Message-ID: Date: Sat, 24 Sep 2016 16:57:15 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1474724823-28872-1-git-send-email-stsp@list.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. On 9/24/2016 4:47 PM, Stas Sergeev wrote: > The TIOCOUTQ ioctl calls chars_in_buffer(), and some apps depend on > a correct behaviour of that. > mos7840 implements it wrongly: if you write just one char, TIOCOUTQ > will return 32. > This patch should fix it by accounting the number of chars actually > writCaylan Van Larson ten. ??? > This patch, unfortunately, misses the Tesed-by tag. Tested-by. > The reported didn't test it, and I don't have the hardware in question. Reporter? > Signed-off-by: Stas Sergeev > Reported-by: Caylan Van Larson > CC: Caylan Van Larson > CC: Alan Cox > CC: Johan Hovold > CC: Greg Kroah-Hartman > CC: linux-usb@vger.kernel.org > CC: linux-kernel@vger.kernel.org [...] MBR, Sergei