compress/qat: prevent usage if incorrect firmware
authorFiona Trahe <fiona.trahe@intel.com>
Fri, 13 Jul 2018 02:28:24 +0000 (03:28 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Jul 2018 23:48:10 +0000 (01:48 +0200)
commit2519de891e74d2bf8ed0c18ef45d68044bad819f
treeddc9b6d00de4ad937ad80bbd3fab970cd05215a4
parentc0c90bc4cade706f9ea271b1235f05f78870fe55
compress/qat: prevent usage if incorrect firmware

Previous check only causes op to fail on dequeue.
This extends so once first fail is detected, application can
no longer enqueue ops to the device and will also get an
appropriate error if trying to reconfigure or setup the device.

Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/compress/qat/qat_comp_pmd.c