Re: [PATCH v3] i2c: virtio: fix completion handling

2021-12-08 Thread Michael S. Tsirkin
On Thu, Dec 02, 2021 at 04:32:14PM +0100, Vincent Whitchurch wrote: > The driver currently assumes that the notify callback is only received > when the device is done with all the queued buffers. > > However, this is not true, since the notify callback could be called > without any of the queued

Re: [PATCH v3] i2c: virtio: fix completion handling

2021-12-02 Thread Viresh Kumar
On 02-12-21, 16:32, Vincent Whitchurch wrote: > The driver currently assumes that the notify callback is only received > when the device is done with all the queued buffers. > > However, this is not true, since the notify callback could be called > without any of the queued buffers being

[PATCH v3] i2c: virtio: fix completion handling

2021-12-02 Thread Vincent Whitchurch
The driver currently assumes that the notify callback is only received when the device is done with all the queued buffers. However, this is not true, since the notify callback could be called without any of the queued buffers being completed (for example, with virtio-pci and shared interrupts)