[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180212152547.GA13962@amd>
Date: Mon, 12 Feb 2018 16:25:47 +0100
From: Pavel Machek <pavel@....cz>
To: "H. Nikolaus Schaller" <hns@...delico.com>
Cc: Johan Hovold <johan@...nel.org>,
Mark Rutland <mark.rutland@....com>,
DTML <devicetree@...r.kernel.org>,
linux-omap <linux-omap@...r.kernel.org>,
Arnd Bergmann <arnd@...db.de>,
Tony Lindgren <tony@...mide.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
kernel@...a-handheld.com, Russell King <linux@...linux.org.uk>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Rob Herring <robh+dt@...nel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
Benoît Cousson <bcousson@...libre.com>,
Kevin Hilman <khilman@...libre.com>,
Thierry Reding <treding@...dia.com>,
Andreas Färber <afaerber@...e.de>,
Jonathan Cameron <jic23@...nel.org>,
Discussions about the Letux Kernel
<letux-kernel@...nphoenux.org>
Subject: Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps
receiver) power control driver
Hi!
> >> I'm sorry (and I know this discussion has been going on for a long
> >> time),but this still feels like too much of a hack.
>
> Happy new year ... Happy new attempt...
>
> Let's restart this discussion and focus on the main roadblock (others are minor
> details which can be sorted out later).
>
> If it feels like a hack, the key issue seems to me to be the choice of
> the API to present the GPS data to user space. Right?
>
> I see three reasonable options how this presentation can be done:
>
> 1. char device
> 2. tty device
> 3. some new gps interface API (similar to network, bluetooth interfaces)
> 4. no driver and use the UART tty directly
> 3. some new gps interface API
> + could become very elegant and general
> - does not exist (AFAIK not even a plan but I am not aware of everything)
> - no user-space daemons and applications exist which use it
Yes, that is what needs to be done. It is very similar problem to
serial mice we used to have long time ago. (And it has pretty much
same solution; exporting NMEA for gpsd, then slowly moving to system
with no gpsd).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists