Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933212AbbBIIlc (ORCPT ); Mon, 9 Feb 2015 03:41:32 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:39700 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932587AbbBIIla (ORCPT ); Mon, 9 Feb 2015 03:41:30 -0500 X-Google-Original-Sender: Date: Mon, 9 Feb 2015 16:42:40 +0800 From: Johan Hovold To: Peter Hung Cc: Sergei Shtylyov , johan@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, tom_tsai@fintek.com.tw, peter_hong@fintek.com.tw, Peter Hung Subject: Re: [PATCH V5 6/8] USB: f81232: clarify f81232_ioctl() Message-ID: <20150209084240.GA10150@localhost> References: <1423216014-571-1-git-send-email-hpeter+linux_kernel@gmail.com> <1423216014-571-7-git-send-email-hpeter+linux_kernel@gmail.com> <54D4B1B3.60001@cogentembedded.com> <54D85AC0.70000@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54D85AC0.70000@gmail.com> User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1789 Lines: 53 On Mon, Feb 09, 2015 at 02:59:12PM +0800, Peter Hung wrote: > Hello, > > Sergei Shtylyov 於 2015/2/6 下午 08:21 寫道: > >> We extract TIOCGSERIAL section in f81232_ioctl() to > >> f81232_get_serial_info() > >> to make it clarify > > > > You're also changing 'ser.baud_rate' from 460800 to 115200. And > > explicitly overriding some previously initialized to 0 fields. > > F81232 max baudrate is only 115200bps, so I set it for > 1.8432MHz/16 = 115200. > > We had add some closing time referenced from serial_core.c. The default > value is: > > port->close_delay = HZ / 2; /* .5 seconds */ > port->closing_wait = 30 * HZ;/* 30 seconds */ > > We had increasing close_delay about 10x to > > port->close_delay = 5 * HZ ; You're never changing anything, you're just reporting an incorrect value to userspace here. The value you should be returning is jiffies_to_msecs(port->port.closing_wait) / 10, unless the value is ASYNC_CLOSING_WAIT_NONE in which case you simply return that, and similarly for close_delay. > >> The f81232_set_mctrl() replace set_control_lines() to do MCR control > >> so we clean-up the set_control_lines() function. > > > > I don't see where are you doing this... > > > > This text is my patch V5 5/8 second section. I had wrong operation of > copy & paste. It's doesn't need for this patch, sorry for it. Make sure to update the commit log for the next revision so that it describes what you actually do. I will probably not have time to review this version this week I'm afraid. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/