OSDN Git Service

crypto: qat - fix bar discovery for c62x
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 22 Dec 2016 15:00:12 +0000 (15:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:33 +0000 (15:25 -0800)
commit2d5dd056884e147a369aa1f6aa786e65a36e624a
tree4920aeec6765d689b20c0989180433ef7f7a61d3
parentb4de8af91b8ab9a604a5acd78b0d8763cf5818b5
crypto: qat - fix bar discovery for c62x

commit 3484ecbe0e9deb94afb0b9b6172d77e98eb72b94 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/qat/qat_c62x/adf_drv.c
drivers/crypto/qat/qat_common/adf_accel_devices.h