crypto: qat - extract send and wait from adf_vf2pf_request_version()
authorMarco Chiappero <marco.chiappero@intel.com>
Tue, 28 Sep 2021 11:44:39 +0000 (12:44 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Oct 2021 12:02:43 +0000 (20:02 +0800)
commitaa3c68634df86280087e8a4f2d3ba751eee3c6b4
treee8a055ece6c4de541ef2859dcc69b4fbe64818e5
parent7a73c4622aaa8a7a3820800c5c6b53e1097527ed
crypto: qat - extract send and wait from adf_vf2pf_request_version()

In the function adf_vf2pf_request_version(), the VF sends a request to
the PF and waits for a response before parsing and handling it.

Since this pattern will be used by other requests, define a new
function, adf_send_vf2pf_req(), that only deals with sending a VF2PF
request and waiting for a response.

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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_pf2vf_msg.c