[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180326135920.GA1450@amd>
Date: Mon, 26 Mar 2018 15:59:20 +0200
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>,
Discussions about the Letux Kernel
<letux-kernel@...nphoenux.org>,
Benoît Cousson <bcousson@...libre.com>,
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>,
linux-omap <linux-omap@...r.kernel.org>,
Rob Herring <robh+dt@...nel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
Kevin Hilman <khilman@...libre.com>,
Thierry Reding <treding@...dia.com>,
Andreas Färber <afaerber@...e.de>,
Jonathan Cameron <jic23@...nel.org>
Subject: Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps
receiver) power control driver
Hi!
> > No, we need some kind of at least rudimentary gps framework even if we
> > allow for a raw (NMEA) interface for the time being (possibly
> > indefinitely).
>
> Ok, that would be fine if we can get that!
>
> For a minimal set of API I think something like this (following hci_dev) would suffice:
>
> struct gps_dev {
> ...
> int (*open)(struct gps_dev *gdev);
> int (*close)(struct gps_dev *gdev);
> int (*send)(struct gps_dev *gdev, char *data, int length);
> };
>
> int gps_register_dev(struct gps_dev *gdev);
> void gps_unregister_dev(struct gps_dev *gdev);
> int gps_recv_nmea_chars(struct gps_dev *gdev, char *data, int length);
>
> If that would wrap all creation of some /dev/ttyGPS0 (or however it is called),
> it would fit our needs for a driver and user-space for our system.
>
> And I would be happy to get rid of creating and registering a /dev/ttyGPS0
> in the w2sg0004 driver.
Sounds like a good start.
Best regards,
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