From: Pavan Savoy <pavan_savoy@yahoo.co.in>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, Greg KH <gregkh@suse.de>,
PavanSavoy <pavan_savoy@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/6] drivers:misc: sources for Init manager module
Date: Thu, 25 Mar 2010 02:33:42 +0530 (IST) [thread overview]
Message-ID: <601428.86363.qm@web94903.mail.in2.yahoo.com> (raw)
In-Reply-To: <1269464044.11714.135.camel@localhost.localdomain>
Marcel,
--- On Thu, 25/3/10, Marcel Holtmann <marcel@holtmann.org> wrote:
> From: Marcel Holtmann <marcel@holtmann.org>
> Subject: Re: [PATCH 4/6] drivers:misc: sources for Init manager module
> To: "Pavan Savoy" <pavan_savoy@yahoo.co.in>
> Cc: "Alan Cox" <alan@lxorguk.ukuu.org.uk>, "Greg KH" <gregkh@suse.de>, "PavanSavoy" <pavan_savoy@ti.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
> Date: Thursday, 25 March, 2010, 2:24 AM
> Hi Pavan,
>
> > > > Which puts me back to square 1,
> > > the requirement is TTY device should be open,
> only when
> > > either BT, FM or GPS would want to use it.
> > > > [with your patch one of the steps of
> installing ldisc
> > > would be reduced upon opening].
> > >
> > > Perhaps but its up to you how you write your low
> level
> > > driver and how the
> > > ldisc indicates it wishes to be active (eg speed
> B0 is used
> > > to indicate
> > > 'no carrier' in many cases)
> > >
> > > > Actually why do I even need a TTY device in
> this case
> > > - right ?
> > > > ldisc driver can do the
> tty->ops->write and
> > > tty_read and put it up on different interfaces
> like
> > > eth0/hci0 or /dev/radio0 etc..
> > >
> > > You don't need a tty if you are simply demuxing
> some kind
> > > of stream of
> > > bytes to/from the hardware and you gain nothing
> from the
> > > tty layer and
> > > user space interfaces such as control signal and
> speed
> > > setting.
> > >
> >
> > I still want to maintain this as a ldisc driver and
> the TTY layer is still required to be able to use this with
> different sort of serial drivers.
> >
> > example:
> > We do a have a system here where both 8250/omap-serial
> co-exist creating their own device nodes (ttyS for 8250,
> ttyO for omap-serial) and I would want to be able to on boot
> suggest which serial driver to use, so I can open/install
> ldisc on ttyS or on ttyO.
> >
> >
> > > That may be even cleaner in your case as you can
> then then
> > > provide
> > > suitable links between your demux and the drivers
> attached
> > > to it
> > > indicating when they should be on or off.
> >
> > And as Marcel suggested, can't really put in the
> PM/UART-clk shut off code in ldisc driver because few of
> these driver provide interfaces and few don't.
> >
> > So is there no way this can be accepted with the sysfs
> entry way of communication ?
>
> to be quite honest, I can't see how that can be accepted
> right now. It
> looks wrong on too many levels.
Sigh -
So to save power, and open/install tty-ldisc only when required, the sysfs entry was introduced.
So now I guess I have 2 options :-
1. Fix the UART/LDISC upon boot by the daemon, get away with the sysfs entry + signaling altogether.
2. find a better way of telling the user-space daemon to open/install the line discipline.
- So any suggestions on option 2 ? like some event mechanism which is simple and clean ?
While we are at it, I will send across the BT driver too which makes use of this LDISC.
>
> Regards
>
> Marcel
>
>
>
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
next prev parent reply other threads:[~2010-03-24 21:03 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 21:19 [re-worked] New ldisc for WiLink7.0 pavan_savoy
2010-03-22 21:19 ` [PATCH 1/6] serial: TTY: new ldisc for TI BT/FM/GPS chips pavan_savoy
2010-03-22 21:19 ` [PATCH 2/6] drivers:misc: Kconfig, Makefile for TI's ST ldisc pavan_savoy
2010-03-22 21:19 ` [PATCH 3/6] drivers:misc: sources for ST core pavan_savoy
2010-03-22 21:19 ` [PATCH 4/6] drivers:misc: sources for Init manager module pavan_savoy
2010-03-22 21:19 ` [PATCH 5/6] drivers:misc: sources for HCI LL PM protocol pavan_savoy
2010-03-22 21:19 ` [PATCH 6/6] drivers:misc: sources for ST header file pavan_savoy
2010-03-22 21:36 ` [PATCH 4/6] drivers:misc: sources for Init manager module Greg KH
2010-03-22 22:03 ` Savoy, Pavan
2010-03-24 2:23 ` Greg KH
2010-03-24 8:04 ` Marcel Holtmann
2010-03-24 14:54 ` Pavan Savoy
2010-03-24 15:52 ` Greg KH
2010-03-24 16:11 ` Marcel Holtmann
2010-03-24 16:22 ` Pavan Savoy
2010-03-24 16:38 ` Marcel Holtmann
2010-03-24 16:39 ` Randy Dunlap
2010-03-24 16:54 ` Pavan Savoy
2010-03-24 17:03 ` Alan Cox
2010-03-24 17:09 ` Pavan Savoy
2010-03-24 17:26 ` Alan Cox
2010-03-24 17:32 ` Pavan Savoy
2010-03-24 17:39 ` Alan Cox
2010-03-24 18:46 ` Pavan Savoy
2010-03-24 20:54 ` Marcel Holtmann
2010-03-24 21:03 ` Pavan Savoy [this message]
2010-03-24 17:15 ` Marcel Holtmann
2010-03-24 17:42 ` Pavan Savoy
2010-03-24 20:59 ` Marcel Holtmann
2010-03-24 16:58 ` Alan Cox
2010-03-24 16:56 ` Pavan Savoy
2010-03-24 16:26 ` Greg KH
2010-03-24 16:35 ` Pavan Savoy
2010-03-24 16:52 ` Greg KH
2010-03-24 17:05 ` Pavan Savoy
2010-03-24 17:20 ` Alan Cox
2010-03-22 21:34 ` [PATCH 3/6] drivers:misc: sources for ST core Greg KH
2010-03-23 15:24 ` Alan Cox
2010-03-22 21:34 ` [PATCH 2/6] drivers:misc: Kconfig, Makefile for TI's ST ldisc Greg KH
2010-03-22 21:35 ` Greg KH
2010-03-23 0:07 ` Tilman Schmidt
2010-03-23 15:18 ` Alan Cox
2010-03-24 2:19 ` Greg KH
2010-03-22 21:45 ` Randy Dunlap
2010-03-22 22:37 ` Savoy, Pavan
2010-03-22 22:49 ` Randy Dunlap
2010-03-23 15:20 ` [PATCH 1/6] serial: TTY: new ldisc for TI BT/FM/GPS chips Alan Cox
[not found] <1269466536.11714.144.camel@localhost.localdomain>
2010-03-24 21:46 ` [PATCH 4/6] drivers:misc: sources for Init manager module Pavan Savoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=601428.86363.qm@web94903.mail.in2.yahoo.com \
--to=pavan_savoy@yahoo.co.in \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=pavan_savoy@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome