]> 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)
commit5cdeda1a2ed47c8619c754c1979faa8eb73980a5
tree81177cbf08f24347d266cc83c777321a22f93cb2
parent4d13821f04c431480b2de2856202037e01b00ced
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