aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_common/adf_pfvf_utils.h
diff options
context:
space:
mode:
authorMarco Chiappero <marco.chiappero@intel.com>2021-12-16 09:13:22 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2021-12-24 14:18:25 +1100
commit1c94d8035905c10f4930708a9944f2ee65d26f47 (patch)
tree7176e7e0ccfa4d4764b80112ee2187fd9ceb2196 /drivers/crypto/qat/qat_common/adf_pfvf_utils.h
parentcrypto: qat - leverage bitfield.h utils for PFVF messages (diff)
downloadlinux-dev-1c94d8035905c10f4930708a9944f2ee65d26f47.tar.xz
linux-dev-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 '')
0 files changed, 0 insertions, 0 deletions