From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Harald Welte <laforge@gnumonks.org>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>,
linux-kernel@vger.kernel.org,
Aloisio Almeida <aloisio.almeida@openbossa.org>,
Arnd Bergmann <arnd@arndb.de>,
Waldemar.Rymarkiewicz@tieto.com
Subject: Re: [RFC] NFC subsystem prototype
Date: Sat, 9 Apr 2011 18:45:59 +0100 [thread overview]
Message-ID: <20110409184559.41b947af@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20110409130945.GC3248@prithivi.gnumonks.org>
> If you're worried about SPI-attached RFID/NFC ASICs, then I think the
> propper approach is to have a generic support for exporting SPI devices to
> userspace (similar to what we have with usb + libusb).
That bit in my experience doesn't work. Most i²c devices for example end
up needing an actual kernel driver because you have to manage the
transaction flow to stop users breaking things horribly.
> I simply do not see the advantage of having this in the kenrel. There are
> no latency/timing constraints, and the amount of data you are moving is so
> small, that performance considerations also don't really play any role.
The big one is security management - once you've got readers that are
needing to report different stuff to different people you need at least
the muxing in kernel. It also separates protocol stacks from apps which
is rather important in more complex systems.
> 2) even if you go for an in-kernel subsystem, what is your strategy for the
> many existing CL-RC5xx / CL-RC6xx ASIC based RFID/NFC readers? For them,
> you typically need your own software implementation of the anti-collision
> procedures of 14443-3 (a+b) and the T=CL (14443-4) code. All of this has
> been implemented in userspace e.g. librfid - but do you want to port or
> re-implement it all in kernel-land, and then 'glue' it below your current
> NFC subsystem approach?
The obvious thing would be to plug it into the kernel at a higher level
than the raw asic interface. We manage that sort of stuff with all sorts
of network devices just fine, and in fact we'll need chunks of that
anyway for virtualisation of rfid/nfc.
next prev parent reply other threads:[~2011-04-09 17:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 22:17 Lauro Ramos Venancio
2011-04-09 13:09 ` Harald Welte
2011-04-09 17:45 ` Alan Cox [this message]
2011-04-12 6:19 ` Harald Welte
2011-04-11 23:31 ` Lauro Ramos Venancio
2011-04-12 6:08 ` Harald Welte
2011-04-12 7:08 ` Clemens Ladisch
2011-04-14 21:51 ` Lauro Ramos Venancio
2011-04-14 14:17 ` Samuel Ortiz
2011-04-14 22:57 ` Lauro Ramos Venancio
2011-04-14 23:09 ` Samuel Ortiz
2011-04-15 18:27 ` Lauro Ramos Venancio
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=20110409184559.41b947af@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Waldemar.Rymarkiewicz@tieto.com \
--cc=aloisio.almeida@openbossa.org \
--cc=arnd@arndb.de \
--cc=laforge@gnumonks.org \
--cc=lauro.venancio@openbossa.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®