diff options
Diffstat (limited to 'drivers/crypto/atmel-i2c.c')
-rw-r--r-- | drivers/crypto/atmel-i2c.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c index dc876fab2882..1d3355913b40 100644 --- a/drivers/crypto/atmel-i2c.c +++ b/drivers/crypto/atmel-i2c.c | |||
@@ -21,6 +21,18 @@ | |||
21 | #include <linux/workqueue.h> | 21 | #include <linux/workqueue.h> |
22 | #include "atmel-i2c.h" | 22 | #include "atmel-i2c.h" |
23 | 23 | ||
24 | static const struct { | ||
25 | u8 value; | ||
26 | const char *error_text; | ||
27 | } error_list[] = { | ||
28 | { 0x01, "CheckMac or Verify miscompare" }, | ||
29 | { 0x03, "Parse Error" }, | ||
30 | { 0x05, "ECC Fault" }, | ||
31 | { 0x0F, "Execution Error" }, | ||
32 | { 0xEE, "Watchdog about to expire" }, | ||
33 | { 0xFF, "CRC or other communication error" }, | ||
34 | }; | ||
35 | |||
24 | /** | 36 | /** |
25 | * atmel_i2c_checksum() - Generate 16-bit CRC as required by ATMEL ECC. | 37 | * atmel_i2c_checksum() - Generate 16-bit CRC as required by ATMEL ECC. |
26 | * CRC16 verification of the count, opcode, param1, param2 and data bytes. | 38 | * CRC16 verification of the count, opcode, param1, param2 and data bytes. |