]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - module parameter to limit the number of enabled CCPs
authorHook, Gary <Gary.Hook@amd.com>
Tue, 9 Jul 2019 15:07:29 +0000 (15:07 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 12:08:04 +0000 (22:08 +1000)
commit36b08b5f1419e67ef69762b232dfdfdd61672daf
tree2abf11361c6e0559b2ab903ff020f38cf5a928d7
parent734d53d42c5f9bb4c454adf65a7191080dae964a
crypto: ccp - module parameter to limit the number of enabled CCPs

Provide the ability to constrain the total number of enabled devices in
the system. Once max_devs devices have been configured, subsequently
probed devices are ignored.

The max_devs parameter may be zero, in which case all CCPs are disabled.
PSPs are always enabled and active.

Disabling the CCPs also disables DMA and RNG registration.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev.c