Re: [virtio-dev] Re: [PATCH v2 3/9] ALSA: virtio: handling control messages

2021-02-01 Thread Anton Yakovlev
On 25.01.2021 16:22, Guennadi Liakhovetski wrote: > I think the use of (devm_)kmalloc() and friends needs some refinement in > several patches in the series. Maybe yes, but using non-managed resources will slightly complicate the device removing path. ...[snip]... >> +/** >> + *

Re: [PATCH v2 3/9] ALSA: virtio: handling control messages

2021-01-25 Thread Guennadi Liakhovetski
I think the use of (devm_)kmalloc() and friends needs some refinement in several patches in the series. On Sun, 24 Jan 2021, Anton Yakovlev wrote: The control queue can be used by different parts of the driver to send commands to the device. Control messages can be either synchronous or

[PATCH v2 3/9] ALSA: virtio: handling control messages

2021-01-24 Thread Anton Yakovlev
The control queue can be used by different parts of the driver to send commands to the device. Control messages can be either synchronous or asynchronous. The lifetime of a message is controlled by a reference count. Introduce a module parameter to set the message completion timeout: