crypto: ccp - Add debugfs entries for CCP information
authorGary R Hook <gary.hook@amd.com>
Tue, 2 May 2017 22:33:40 +0000 (17:33 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:11:47 +0000 (14:11 +0800)
commit3cdbe346ed3f380eae1cb3e9febfe703e7d8a7b0
tree8126f8342958f529bf10645f3af9f62e660a0e0b
parent03d2c5114c95797c0aa7d9f463348b171a274fd4
crypto: ccp - Add debugfs entries for CCP information

Expose some data about the configuration and operation of the CCP
through debugfs entries: device name, capabilities, configuration,
statistics.

Allow the user to reset the counters to zero by writing (any value)
to the 'stats' file. This can be done per queue or per device.

Changes from V1:
 - Correct polarity of test when destroying devices at module unload

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/Makefile
drivers/crypto/ccp/ccp-debugfs.c [new file with mode: 0644]
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-dev.h