]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
sparc64: Add auto-loading mechanism to crypto-opcode drivers.
authorDavid S. Miller <davem@davemloft.net>
Sat, 15 Sep 2012 16:46:25 +0000 (09:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Sep 2012 16:46:25 +0000 (09:46 -0700)
commit979e93ca24e8336acb660529676dcda6817d8a1f
tree40f854f3b7b0e3e333738cf699d0acfcbfef85bf
parent71741680a9858a7fcba54acf5b321d185abef1e8
sparc64: Add auto-loading mechanism to crypto-opcode drivers.

Just simply provide a device table containing an entry for sun4v cpus,
the capability mask checks in the drivers themselves will take care of
the rest.

This makes the bootup logs on pre-T4 cpus slightly more verbose, with
each driver indicating lack of support for the associated opcode(s).

But this isn't too much of a real problem.

I toyed with the idea of using explicit entries with compatability
fields of "SPARC-T4", "SPARC-T5", etc. but all future cpus will have
some subset of these opcodes available and this would just be one more
pointless thing to do as each new cpu is released with a new string.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/crypto/Makefile
arch/sparc/crypto/crop_devid.c [new file with mode: 0644]