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)
commit90773bc1ab407bc2198d7e9fc1c6d6b5ef27a24f
tree2abf11361c6e0559b2ab903ff020f38cf5a928d7
parentc4a89279086e9c98eba659d7665b1732e0d5e3e3
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