diff options
author | Marco Chiappero <marco.chiappero@intel.com> | 2021-12-16 10:13:22 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-12-24 04:18:25 +0100 |
commit | 1c94d8035905c10f4930708a9944f2ee65d26f47 (patch) | |
tree | 7176e7e0ccfa4d4764b80112ee2187fd9ceb2196 /block/blk-mq.c | |
parent | crypto: qat - leverage bitfield.h utils for PFVF messages (diff) | |
download | linux-1c94d8035905c10f4930708a9944f2ee65d26f47.tar.xz linux-1c94d8035905c10f4930708a9944f2ee65d26f47.zip |
crypto: qat - leverage read_poll_timeout in PFVF send
Replace the polling loop, waiting for the remote end to acknowledge
the reception of the message, with the equivalent and standard
read_poll_timeout() in adf_gen2_pfvf_send().
Also, the use of the read_poll_timeout():
- implies the use of microseconds for the timings, so update the previous
values from ms to us
- allows to leverage the return value for both success and error,
removing the need for the reset of the 'ret' variable soon after the
'start' label.
Signed-off-by: Marco Chiappero <marco.chiappero@intel.com>
Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions