]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon - add vfs_num module param for zip
authorHao Fang <fanghao11@huawei.com>
Thu, 7 Nov 2019 03:48:29 +0000 (11:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 00:37:29 +0000 (08:37 +0800)
commit3b63126d59bf0a3e803b03cc996c479d32827263
tree81177cbf08f24347d266cc83c777321a22f93cb2
parent889658cdf5fa2302041ee1fdec424b97313e9b25
crypto: hisilicon - add vfs_num module param for zip

Currently the VF can be enabled only through sysfs interface
after module loaded, but this also needs to be done when the
module loaded in some scenarios.

This patch adds module param vfs_num, adds hisi_zip_sriov_enable()
in probe, and also adjusts the position of probe.

Signed-off-by: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_main.c