Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422680AbXBAKiX (ORCPT ); Thu, 1 Feb 2007 05:38:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422777AbXBAKiX (ORCPT ); Thu, 1 Feb 2007 05:38:23 -0500 Received: from wx-out-0506.google.com ([66.249.82.238]:40787 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422773AbXBAKiV (ORCPT ); Thu, 1 Feb 2007 05:38:21 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aAdcfQwoJmdE9pvxMlOaMleajM1D19xdUxqyj4zGMdBo8/WfgPsatAvcPM0t6wGgJrTwY7xQuDe1HO5wMVb0SLqTwe9LFpabmQhJbFPTAIELeErNUAfQs2diuq7zYiaO5vtUckeqZs16pIY9feRZNhChvAvdwbHUQN1Q8rP0cqI= Message-ID: <6d6a94c50702010238p7866f5a5m8824d2ca518eb704@mail.gmail.com> Date: Thu, 1 Feb 2007 18:38:20 +0800 From: "Aubrey Li" To: Tosoni Subject: Re: [BUG]: 2.6.19.2: Weird serial core issue Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Alan In-Reply-To: <000201c745d9$4577fe20$2e01a8c0@acksys.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6d6a94c50701311833m5952c6fdn8e1f0db28d674e79@mail.gmail.com> <000201c745d9$4577fe20$2e01a8c0@acksys.local> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1775 Lines: 51 On 2/1/07, Tosoni wrote: > If I understand Alan'answer correctly: > > You appear to use a *shell* on that console. The shell gets your ENTER key > and in the succeeding processing the shell resets the crtscts flag to what > the shell thinks is right for him. > > The shell must make some tty tweaking in order to allow you to edit the > commands. > > You must disable login, shell and anything on that port in order to make a > significant test. But beware that in this case you will close and reopen the > port each time you run your test. > But the problem seems not like you said. if enable crtscts by default, your thoughts makes sense. But if disable crtscts by default, the fact is not as your thoughts. The following is the test result on my side. =================================== root:~> cflag = 0x80001cb1, old = 0x1cb1 cflag = 0x1cb1, old = 0x80001cb1 cflag = 0x1cb1, old = 0x1cb1 =================================== When run "stty -F /dev/ttyS0 crtscts", I got ------------ root:~> cflag = 0x80001cb1, old = 0x1cb1 ------------ That means crtscts in the old terminal setting is disabled. Now it's enabled. But When I type "ENTER" key, I got ------------ cflag = 0x1cb1, old = 0x80001cb1 cflag = 0x1cb1, old = 0x1cb1 ------------ That means terminal setting is back to crtscts disabled. But here I didn't do anything to disable it, I just type "ENTER", crtscts setting should keep enabled. What makes it back to disabled? Now I guess there must be something wrong with serial core. -Aubrey - 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/