History log of /drivers/char/hw_random/timeriomem-rng.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b21cb324f141d16833137ef0355f686efb9bd84f 26-Nov-2011 Axel Lin <axel.lin@gmail.com> char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver()

This patch converts the drivers in drivers/char/hw_random/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Cc: David S. Miller <davem@davemloft.net>
Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Alexander Clouter <alex@digriz.org.uk>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/drivers/char/hw_random/timeriomem-rng.c
033590fc9d38bb82b904439daada78f930c070db 08-Jun-2011 H Hartley Sweeten <hsweeten@visionengravers.com> hwrng: timeriomem - use resource_size

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/drivers/char/hw_random/timeriomem-rng.c
08ced854fc4a979d9e59ba01000bf96e7057cfbc 03-Jun-2009 Alexander Clouter <alex@digriz.org.uk> hwrng: timeriomem - Fix potential oops (request_mem_region/__devinit)

Fixed oops when calling device_unregister followed by device_register
(changing __init to __devinit) and removed request_mem_region() as
platform_device_register already does this which can result in EBUSY

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/drivers/char/hw_random/timeriomem-rng.c
3341323bb4c198f704cffbfdda37bcec1226ef7d 26-Mar-2009 Alexander Clouter <alex@digriz.org.uk> hwrng: timeriomem - Use phys address rather than virt

There is no ioremap'ing or anything in timeriomem-rng.c as I foolishly
used already remapped virtual addresses instead of passing the physical
address to be polled.

This patch fixes this flaw and lets developers do the Right Thing(tm).

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/drivers/char/hw_random/timeriomem-rng.c
9c3c133b1ed6e6d01bfabb6de29bf3d0f0886354 21-Feb-2009 Alexander Clouter <alex@digriz.org.uk> hwrng: timeriomem - New driver

Some hardware platforms, the TS-7800[1] is one for example, can
supply the kernel with an entropy source, albeit a slow one for
TS-7800 users, by just reading a particular IO address. This
source must not be read above a certain rate otherwise the quality
suffers.

The driver is then hooked into by calling
platform_device_(register|add|del) passing a structure similar to:
------
static struct timeriomem_rng_data ts78xx_ts_rng_data = {
.address = (u32 *__iomem) TS_RNG,
.period = 1000000, /* one second */
};

static struct platform_device ts78xx_ts_rng_device = {
.name = "timeriomem_rng",
.id = -1,
.dev = {
.platform_data = &ts78xx_ts_rng_data,
},
.num_resources = 0,
};
------

[1] http://www.embeddedarm.com/products/board-detail.php?product=TS-7800

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/drivers/char/hw_random/timeriomem-rng.c