crypto: qat - fix bar discovery for c62x
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 22 Dec 2016 15:00:12 +0000 (15:00 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Dec 2016 11:52:27 +0000 (19:52 +0800)
commit4f78ce870a4da0cf4db265ec4fd31eb4fb7f9c57
tree2b51e3497553133851d03a5e272321191e947fe8
parentac6d9a2cec195a7778e013f405cfb86c1dd244a7
crypto: qat - fix bar discovery for c62x

Some accelerators of the c62x series have only two bars.
This patch skips BAR0 if the accelerator does not have it.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_c62x/adf_drv.c
drivers/crypto/qat/qat_common/adf_accel_devices.h