On 18-08-21, 10:03, Arnd Bergmann wrote:
I'd prefer your earlier approach.
My feeling is that changing the virtqueue code to allow zero-length buffers is more fragile than having something in the virtio-i2c code that has a special case for leaving out both read_buf and write_buf.
Exactly what I think about it and so my hesitation for the same :)
Even if we fix the linux virtqueue code to deal with zero-length NULL buffers, there are other implementations that will require similar workarounds for existing sanity checks.
Lets say what Michael thinks about it.