From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751882AbXCHOXx (ORCPT ); Thu, 8 Mar 2007 09:23:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751922AbXCHOXx (ORCPT ); Thu, 8 Mar 2007 09:23:53 -0500 Received: from nf-out-0910.google.com ([64.233.182.185]:23196 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751882AbXCHOXv (ORCPT ); Thu, 8 Mar 2007 09:23:51 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gP8agUL0Ng2P4U1/0y9YDsr7U7s4HvKqpaST4be+QL6ASeOmezu+Jx8zzYK0yYm7Kdgw98O49//QnX5C16uOBA8snaRxAy0jw4kWBU+KXGhjLlnpuvMgcnZOe+NDkt2vGDrB3qifgh6WT4WegOfnmufZ6EaXnEzWR8j5Wbz17BA= Message-ID: <57354eff0703080623r2f7f88c3r7ddf6381061cbd73@mail.gmail.com> Date: Thu, 8 Mar 2007 15:23:49 +0100 From: "Oleksiy Kebkal" To: "Robin Getz" , "Oleksiy Kebkal" , "Krzysztof Halasa" , "Mike Frysinger" , "Linux Kernel Mailing List" , linux-serial@vger.kernel.org Subject: Re: should RTS init in serial core be tied to CRTSCTS In-Reply-To: <20070308134800.GA30023@flint.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8bd0f97a0703011603m794e00f5x875eb68ad0db05de@mail.gmail.com> <200703071019.55896.rgetz@blackfin.uclinux.org> <57354eff0703071330k2395e9c8n58e12f2111dcb25a@mail.gmail.com> <200703080844.32157.rgetz@blackfin.uclinux.org> <20070308134800.GA30023@flint.arm.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 2007/3/8, Russell King : > On Thu, Mar 08, 2007 at 08:44:31AM -0500, Robin Getz wrote: > > On Wed 7 Mar 2007 16:30, Oleksiy Kebkal pondered: > > > 2007/3/7, Robin Getz : > > > > Right - so the question is where to manage the default state? I was > > > > thinking in the resource might be a good idea, but there isn't really a > > > > good place for it. (You could re-use some bits if flags, but I think that > > > > would not be a good idea). > > > > > > /proc/tty/driver/uartN/settings? > > > > > > > That would let you change things are run time, but the problem is at boot > > time. A default setting needs to be set, so when things initialize, and proc > > does not exist yet, it is still set properly... > > I disagree. "proc does not exist yet" - the only time that applies is > long before userspace as active. > > As I've said already, having a console on the same port as your application > program is just asking for trouble. All bets are off - the kernel _will_ > corrupt your data stream in random places. > > Don't do it - it will _NEVER_ be reliable. > > Never, ever, mix kernel consoles with application serial ports. Ok. I understand now one of the sources of misunderstanding. I don't want to mix console and application serial port. It was a question, Myke Frisinger initially asked. I would switch on/off console depending on some external control action if possible... The other problem is how to open serial port with correct settings _after_ booting. In this case /proc could be applicable, isn't it? -Oleksiy