]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Clean up the LSB slot allocation code
authorGary R Hook <gary.hook@amd.com>
Tue, 18 Oct 2016 22:33:37 +0000 (17:33 -0500)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:55:53 +0000 (10:55 -0700)
commitc0d29c8097633f78aaeff1057f6e2560602b89f6
treee6a2ca4263d82a2085725abb7fc6cfc64dbb0eec
parent1b76184df116abd80e51597d1dc3149786c48abe
crypto: ccp - Clean up the LSB slot allocation code

Orabug: 26644685

Fix a few problems revealed by testing: verify consistent
units, especially in public slot allocation. Percolate
some common initialization code up to a common routine.
Add some comments.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 103600ab966a2f02d8986bbfdf87b762b1c6a06d)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-dev-v3.c
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.c