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)
commit39977f4b51cdc544de4e5950751655f6693654a7
tree81177cbf08f24347d266cc83c777321a22f93cb2
parentc3510fec6e824cd7ab75f77c80412b746928aa2b
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