diff options
| author | Keith Packard <keithp@keithp.com> | 2015-03-19 23:36:49 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 05:47:11 -0400 |
| commit | 66e3e591891da9899a8990792da080432531ffd4 (patch) | |
| tree | d54303288c4261218e78587c48f9e376d8118f77 /drivers/usb/misc/Kconfig | |
| parent | 1fcefbdf06708a5811ffa8acc949714aee60ae13 (diff) | |
usb: Add driver for Altus Metrum ChaosKey device (v2)
This is a hardware random number generator. The driver provides both a
/dev/chaoskeyX entry and hooks the entropy source up to the kernel
hwrng interface. More information about the device can be found at
http://chaoskey.org
The USB ID for ChaosKey was allocated from the OpenMoko USB vendor
space and is visible as 'USBtrng' here:
http://wiki.openmoko.org/wiki/USB_Product_IDs
v2: Respond to review from Oliver Neukum <oneukum@suse.de>
* Delete extensive debug infrastructure and replace it with calls to
dev_dbg.
* Allocate I/O buffer separately from device structure to obey
requirements for non-coherant architectures.
* Initialize mutexes before registering device to ensure that open
cannot be invoked before the device is ready to proceed.
* Return number of bytes read instead of -EINTR when partial read
operation is aborted due to a signal.
* Make sure device mutex is unlocked in read error paths.
* Add MAINTAINERS entry for the driver
Signed-off-by: Keith Packard <keithp@keithp.com>
Cc: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/Kconfig')
| -rw-r--r-- | drivers/usb/misc/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/usb/misc/Kconfig b/drivers/usb/misc/Kconfig index 76d77206e011..8c331f1dfd23 100644 --- a/drivers/usb/misc/Kconfig +++ b/drivers/usb/misc/Kconfig | |||
| @@ -255,3 +255,15 @@ config USB_LINK_LAYER_TEST | |||
| 255 | This driver is for generating specific traffic for Super Speed Link | 255 | This driver is for generating specific traffic for Super Speed Link |
| 256 | Layer Test Device. Say Y only when you want to conduct USB Super Speed | 256 | Layer Test Device. Say Y only when you want to conduct USB Super Speed |
| 257 | Link Layer Test for host controllers. | 257 | Link Layer Test for host controllers. |
| 258 | |||
| 259 | config USB_CHAOSKEY | ||
| 260 | tristate "ChaosKey random number generator driver support" | ||
| 261 | help | ||
| 262 | Say Y here if you want to connect an AltusMetrum ChaosKey to | ||
| 263 | your computer's USB port. The ChaosKey is a hardware random | ||
| 264 | number generator which hooks into the kernel entropy pool to | ||
| 265 | ensure a large supply of entropy for /dev/random and | ||
| 266 | /dev/urandom and also provides direct access via /dev/chaoskeyX | ||
| 267 | |||
| 268 | To compile this driver as a module, choose M here: the | ||
| 269 | module will be called chaoskey. | ||
