[RFC] g_serial: Real tty device passthrough.
stefan at datenfreihafen.org
Thu Mar 8 23:58:34 CET 2007
We have a linux smartphone here with the GSM modem on /dev/ttySAC0 .
As now like to make this tty available to the host through g_serial.
This allows us faster development and testing.
The first idea we had was to splice /dev/ttygs* and /dev/ttySAC0
together in phone userspace. But how can we handle things like
baudrate change on the host, etc. The passthrough should be as
transparent as possible.
We now think about a solution like the ine used in file_storage.c .
Let the g_serial driver directly communicate with the device. Loading
the driver with something like
modprobe g_serial device=ttySAC0
should route the whole communication to /dev/ttySAC0 instead of
Anybody already worked on something like this?
As we like to include all our code into mainline all comments on such
a solution are more then welcome.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 241 bytes
Desc: Digital signature
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20070308/4b923eb9/attachment.pgp
More information about the openmoko-kernel