[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200501142018.GB37466@atomide.com>
Date: Fri, 1 May 2020 07:20:18 -0700
From: Tony Lindgren <tony@...mide.com>
To: Pavel Machek <pavel@...x.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Johan Hovold <johan@...nel.org>, Rob Herring <robh@...nel.org>,
Alan Cox <gnomes@...rguk.ukuu.org.uk>,
Lee Jones <lee.jones@...aro.org>, Jiri Slaby <jslaby@...e.cz>,
Merlijn Wajer <merlijn@...zup.org>,
Peter Hurley <peter@...leysoftware.com>,
Sebastian Reichel <sre@...nel.org>,
linux-serial@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org
Subject: Re: [PATCHv6 0/6] n_gsm serdev support and GNSS driver for droid4
* Pavel Machek <pavel@...x.de> [200501 08:22]:
> Hi!
>
> > Now without the chardev support, the /dev/gsmtty* using apps need
> > to use "U1234AT+CFUN?" format for the packets. The advantage is
> > less kernel code, and we keep the existing /dev/gsmtty* interface.
>
> Actually... yes, this works. But no, this is not "existing" tty
> interface.
>
> ttys work per character, and this interface definitely does not... it
> is "packet" based, write() syscalls need exactly right lengths. You
> can't just open minicom, and type "U1234...". You can't paste it,
> either (I tried). tty controls like start/stop bits and baud rate are
> useless here. CR/LF conversions are unwanted/dangerous because it is
> confusing hard to debug if you get them wrong.
Yes.. That's what n_gsm spins up.
> Now, I don't see reason why this could not be made to work, and it may
> be more important to have something in mainline and work with that. So
> if you can make this into -next, I'll not complain too loudly. But it
> is... still wrong and I liked motmdm* more :-).
Yes.. There are issues too with the motmdm* char dev interface too.
I don't think it would work as is for devices with network interfaces
on some channel, and continuation packets could need more handling
possibly.
But let's try to get the basics sorted out first and use the "raw"
gsmtty* interface. More stuff can always be added later as needed.
Regards,
Tony
Powered by blists - more mailing lists