David Brownell wrote:
- it can be compiled as a module
Which as I pointed out would be a rather minor patch to mine. There's a
bit of code to manage the board-specific SPI tables, which _can't_ be
a module. Then there's something less than 2KB of code (ARM .text) that
could live in a module. I can't get excited about making that live in
a module, but I'd take a patch to change that.
Well, it's a sign of convergence :)
- it is DMA-safe
Which as I pointed out is incorrect. The core API (async) has always
been fully DMA-safe. And a **LOT** lower overhead than yours, which
allocates buffers behind the back of drivers, and encourages lots of
memcpy rather than just doing DMA directly to/from the buffers that
are provided by the SPI protocol drivers.
Lower overhead? Lemme absolutely disagree with you. Please be aware that
memory allocation routines are abstract, so no necessary memory allocation.
Yeah, anyway, your latest core doesn't look DMA-unsafe to me.
- it is priority inversion-free
- it can gain more performance with multiple controllers
- it's more adapted for use in real-time environments
You'd have to explain what you mean by all of these. I could guess
based on what you've said before (disagree!), but that won't help.
Your taking semaphore in spi_write_then_read which all the sync routines
are based on may lead to priority inversion and of course is not optimal
in terms of overall performance, if there's more than one controller
(have you tested your core in this situation BTW?)
Suppose you have two kernel threads with different priorities dealing
with SPI controller each... Of course you'll get priority inversion when
the thread with higher prio will wait for semaphore release!
- it's not so lightweight, but it leaves less effort for the bus driver developer.
Whereas in my previous comments about your framework, I think I've
pointed out that imposing needless and restrictive policies on how
the controller drivers work is a Bad Thing.
It's just a *reasonable* _default_ policy.
Vitaly
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]