]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qat - add delay before polling mailbox
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 30 Jul 2020 12:27:42 +0000 (13:27 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:43:50 +0000 (14:43 +1000)
commitf292bc5c1b1df4a51c53d7fd22f73c76c9ea6bbb
tree1c6058a693b5fb3d4deae666d481f75b65b2dcb3
parente5f0bf958198ed018c9fdf06e8d307ced9af9c95
crypto: qat - add delay before polling mailbox

The mailbox CSR register has a write latency and requires a delay before
being read. This patch replaces readl_poll_timeout with read_poll_timeout
that allows to sleep before read.
The initial sleep was removed when the mailbox poll loop was replaced with
readl_poll_timeout.

Fixes: 3113b8d76b1d ("crypto: qat - update timeout logic in put admin msg")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_admin.c