Neither is it "remove" in the normal sense either. The hotMakes no sense to me, sorry. What 'not included' changes are you talking about?
path never had an allocation before ... but it could easily
have one now, because that sort of bounce-buffer semantic is
what a DMA_UNSAFE flag demands from the lower levels. (That's
a key part part of the proposed change that's not included in
this patch... making the chage look much smaller.)
Err, this change also allows to get rid of ugly stuff in write_then_read.
How much of the reason you're arguing for this is because you
have that WLAN stack that does some static allocation for I/O
buffers? Changing that to use dynamic allocation -- the more
usual style -- should be easy. But instead, you want all code
in the SPI stack to need to worry about two different kinds of
I/O memory: the normal stuff, and the DMA-unsafe kind. Not
just this WLAN code which for some reason started out usingI'm afraid I just can't understand what you mean by 'portable' here.
a nonportable scheme for allocating I/O buffers.
It'd take a lot more persuasion to make me think that's a goodWhat hard-to-find bugs, I wonder?
idea. That's the kind of subtle confusion that really promotes
hard-to-find bugs in drivers, and lots of developer confusion.