crypto/qat: add lock around CSR access and change logic
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 13 Jun 2018 12:14:08 +0000 (14:14 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 27 Jun 2018 23:25:33 +0000 (01:25 +0200)
commitc3056d98ae14602fdc9450a538a4b4dd377f8f35
tree3bad452a47cd4154f9b7581a85abd792e5fb7850
parentf9a3d7f68f05644ec3e3ef3854535ef25ed2d3df
crypto/qat: add lock around CSR access and change logic

Add lock around accesses to the arbiter CSR
and use & instead of ^ as ^ not safe if
arb_disable called when already disabled.

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_qp.c