On Tue, Feb 20, 2024 at 06:05:16PM +1300, Barry Song wrote: > > So it could be something like: > if data is short, acomp driver works by polling; if data is > long, acomp driver works by sleeping and waiting. This sort of logic is specific to each piece of hardware and should go into the driver. There is no reason why an async driver cannot return synchronously. The API fully supports this mode of operation. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt