From: "Enrico Weigelt, metux IT consult" <lkml@metux.net>
To: Linus Walleij <linus.walleij@linaro.org>,
Martyn Welch <martyn.welch@collabora.com>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
kernel@collabora.com
Subject: Re: [RFC] Addition of kernel
Date: Wed, 26 Jun 2019 20:16:18 +0200 [thread overview]
Message-ID: <c80c67e8-ed4c-d4eb-9655-9fbb4a6a4cd8@metux.net> (raw)
In-Reply-To: <CACRpkdaLEDmJ49m_fpuuA1e33hTtyB-LsyZeOmpRybbULgmHDA@mail.gmail.com>
On 24.06.19 23:46, Linus Walleij wrote:
> A GPS unit should be handled using the GNSS subsystem in
> drivers/gnss:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gnss
yes, since serdev we can also easily drive serial-connected devices
(which many gps receivers are) from inside the kernel. there're also
composite devices (eg. combined basebands) which also have gps amongst
other things, so an own subsystem for gps devices is the way to go.
> While we do encourage to use the right subsystems for this kind
> of stuff there are certain cases we do defer to be handled in userspace,
> but not many. These include one-off things like prototypes and
Those are cases which probably nobody wants to have special support
in the mainline kernel ... i recall some rules about no kernel drivers
without corresponding free userland ...
> factory lines with a myriad of relays (some PLC usecases),
> door openers (we don't want drivers/dooropener)
Actually, I've got something like that in the pipeline: a generic relais
subsystem for anything that just switches on/off. Haven't gathered all
requirements yet - for now just abusing LED for that (yes, also actually
door openers). Okay, door openers could be a complex matter on their
own, depending on how it electrically/mechanically works - some devices
let motors spin until an end reached, etc. ... but haven't had an
actual usecase for putting such things into the kernel.
> or fire alarm button
Button -> input subsystem ?
> (but definately any elaborate IIO sensors
> goes into drivers/iio) so it is a bit on case-by-case intuition
> here.
yes, and it's primarily about high level functionality. in industrial
world we often have composite devices that span multiple subsystems.
I any case, for a good decision we need to know what exactly some
individual device actually does.
--mtx
--
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287
prev parent reply other threads:[~2019-06-26 18:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-17 8:29 [RFC] Addition of kernel Martyn Welch
2019-06-17 8:38 ` Phil Reid
2019-06-17 11:41 ` Linus Walleij
2019-06-17 12:39 ` Enrico Weigelt, metux IT consult
2019-06-19 11:54 ` Martyn Welch
2019-06-24 8:49 ` Enrico Weigelt, metux IT consult
2019-06-24 21:46 ` Linus Walleij
2019-06-26 18:16 ` Enrico Weigelt, metux IT consult [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c80c67e8-ed4c-d4eb-9655-9fbb4a6a4cd8@metux.net \
--to=lkml@metux.net \
--cc=bgolaszewski@baylibre.com \
--cc=kernel@collabora.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=martyn.welch@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).