On Tue, Feb 20, 2024 at 6:09 PM Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote: > > 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. Nice to know! Thanks for clarification. > > Cheers, > -- > Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt Thanks Barry