Re: [PATCH 4/6] drivers:misc: sources for Init manager module

Previous thread: behavior of recvmmsg() on blocking sockets by Brandon Black on Wednesday, March 24, 2010 - 9:15 am. (1 message)

Next thread: [PATCH] oom killer: break from infinite loop by Anfei Zhou on Wednesday, March 24, 2010 - 9:25 am. (82 messages)
From: Pavan Savoy
Date: Wednesday, March 24, 2010 - 9:22 am

Illustration: The BT driver on top of this ST driver, would create a hci0 interface, when someone does an DEVUP on that interface, the BT driver would then do a st-register - which in-turn would ask the hciattach-like daemon to install the line discipline for it via the sysfs entry.
The same concept goes for FM-V4L2 and GPS character driver.


Yes, I don't feel good about it either. But how do I request for a line discipline from kernel space ?
Currently a daemon has to run in user-space to maintain the ldisc, at all times, and I don't want to open TTY @ boot, and install Ldisc (tiocsetd) on it, without BT/FM or GPS core on chip being used - The Power Management team here would beat me up if I do that, 



      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
--

From: Marcel Holtmann
Date: Wednesday, March 24, 2010 - 9:38 am

so let us get the facts straight here. The device in question is using a
serial port to connect to the host and then multiplexing BT, FM and GPS
over it. My question again, what protocol does it talk.

Also why not just install the line discipline and then control the
subdevices via RFKILL?

You need to share some information about your hardware with us that

Lets forget about this at all. This is not working out at all. We need

I dislike using the staging tree as review process. We can make a proper
review on LKML and go towards a real upstream solution.

Regards

Marcel


--

From: Randy Dunlap
Date: Wednesday, March 24, 2010 - 9:39 am

I agree.  If I had a new driver, I would try to keep it out of staging,
not get it added there.

-- 
~Randy
--

From: Alan Cox
Date: Wednesday, March 24, 2010 - 9:58 am

> The core of the problem is we cannot ask/install/ldisc_put for a line discipline from kernel space.

The device is always in WL protocol mode and starts this way ?

If so lets simply fix the tty layer to allow a driver to set the initial

I would certainly prefer this as it is much easier to refine this way

Alan
--

Previous thread: behavior of recvmmsg() on blocking sockets by Brandon Black on Wednesday, March 24, 2010 - 9:15 am. (1 message)

Next thread: [PATCH] oom killer: break from infinite loop by Anfei Zhou on Wednesday, March 24, 2010 - 9:25 am. (82 messages)