1. 14 5月, 2014 1 次提交
    • A
      virtio-rng: support multiple virtio-rng devices · 08e53fbd
      Amos Kong 提交于
      Current hwrng core supports to register multiple hwrng devices,
      and there is only one device really works in the same time.
      QEMU alsu supports to have multiple virtio-rng backends.
      
      This patch changes virtio-rng driver to support multiple
      virtio-rng devices.
      
      ]# cat /sys/class/misc/hw_random/rng_available
      virtio_rng.0 virtio_rng.1
      ]# cat /sys/class/misc/hw_random/rng_current
      virtio_rng.0
      ]# echo -n virtio_rng.1 > /sys/class/misc/hw_random/rng_current
      ]# dd if=/dev/hwrng of=/dev/null
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      08e53fbd
  2. 11 4月, 2014 1 次提交
    • M
      hwrng: bcm2835 - fix oops when rng h/w is accessed during registration · eb4a5346
      Matt Porter 提交于
      Commit "d9e79726 hwrng: add randomness to system from rng sources"
      exposed a bug in the bcm2835-rng driver resulting in boot failure
      on Raspberry Pi due to the following oops:
      
      [   28.261523] BUG: soft lockup - CPU#0 stuck for 23s! [swapper:1]
      [   28.271058]
      [   28.275958] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.0+ #11
      [   28.285374] task: db480000 ti: db484000 task.ti: db484000
      [   28.294279] PC is at bcm2835_rng_read+0x28/0x48
      [   28.302276] LR is at hwrng_register+0x1a8/0x238
      .
      .
      .
      
      The RNG h/w is not completely initialized and enabled before
      hwrng_register() is called and so the bcm2835_rng_read() fails.
      Fix this by making the warmup/enable writes before registering
      the RNG source with the hwrng core.
      Signed-off-by: NMatt Porter <mporter@linaro.org>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      eb4a5346
  3. 13 3月, 2014 1 次提交
  4. 10 3月, 2014 6 次提交
  5. 27 2月, 2014 2 次提交
  6. 21 2月, 2014 1 次提交
  7. 09 2月, 2014 1 次提交
  8. 08 2月, 2014 1 次提交
    • P
      drivers/char: delete non-required instances of include <linux/init.h> · 4c020b03
      Paul Gortmaker 提交于
      None of these files are actually using any __init type directives
      and hence don't need to include <linux/init.h>.  Most are just a
      left over from __devinit and __cpuinit removal, or simply due to
      code getting copied from one driver to the next.
      
      Cc: David Airlie <airlied@linux.ie>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Corey Minyard <minyard@acm.org>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Peter Huewe <peterhuewe@gmx.de>
      Cc: Ashley Lai <ashley@ashleylai.com>
      Cc: Marcel Selhorst <tpmdd@selhorst.net>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4c020b03
  9. 15 11月, 2013 1 次提交
  10. 11 11月, 2013 1 次提交
    • R
      powerpc: add missing explicit OF includes for ppc · c11eede6
      Rob Herring 提交于
      Commit b5b4bb3f (of: only include prom.h on sparc) removed implicit
      includes of of_*.h headers by powerpc's prom.h. Some components were
      missed in initial clean-up patch, so add the necessary includes to fix
      powerpc builds.
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Vinod Koul <vinod.koul@intel.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: linux-ide@vger.kernel.org
      Cc: linux-crypto@vger.kernel.org
      c11eede6
  11. 30 10月, 2013 1 次提交
  12. 16 10月, 2013 1 次提交
  13. 11 10月, 2013 2 次提交
  14. 10 10月, 2013 1 次提交
  15. 07 10月, 2013 2 次提交
  16. 23 9月, 2013 1 次提交
  17. 13 9月, 2013 1 次提交
  18. 02 9月, 2013 1 次提交
  19. 21 8月, 2013 1 次提交
    • O
      hwrng: omap - reorder OMAP TRNG driver code · a246968e
      Olof Johansson 提交于
      The newly added omap4 support in the driver was added without
      consideration for building older configs. When building omap1_defconfig,
      it resulted in:
      
      drivers/char/hw_random/omap-rng.c:190:12: warning: 'omap4_rng_init' defined but not used [-Wunused-function]
      drivers/char/hw_random/omap-rng.c:215:13: warning: 'omap4_rng_cleanup' defined but not used [-Wunused-function]
      drivers/char/hw_random/omap-rng.c:251:20: warning: 'omap4_rng_irq' defined but not used [-Wunused-function]
      
      Move the code around so it is grouped with its operations struct, which
      for the omap4 case means also under the #ifdef CONFIG_OF, where it needs
      to be.
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      a246968e
  20. 14 8月, 2013 1 次提交
    • J
      hwrng: tx4939 - simplify use of devm_ioremap_resource · 9dc48034
      Julia Lawall 提交于
      Remove unneeded error handling on the result of a call to
      platform_get_resource when the value is passed to devm_ioremap_resource.
      
      Move the call to platform_get_resource adjacent to the call to
      devm_ioremap_resource to make the connection between them more clear.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression pdev,res,n,e,e1;
      expression ret != 0;
      identifier l;
      @@
      
      - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        ... when != res
      - if (res == NULL) { ... \(goto l;\|return ret;\) }
        ... when != res
      + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        e = devm_ioremap_resource(e1, res);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      9dc48034
  21. 09 8月, 2013 6 次提交
  22. 01 8月, 2013 1 次提交
  23. 21 6月, 2013 1 次提交
  24. 19 6月, 2013 1 次提交
    • A
      hwrng: bcm2835: fix MODULE_LICENSE tag · 22e8099f
      Arnd Bergmann 提交于
      The MODULE_LICENSE macro invocation must use either "GPL" or "GPL v2",
      but not "GPLv2" in order to be detected by the module loader.
      
      This fixes the allmodconfig build error:
      
      FATAL: modpost: GPL-incompatible module bcm2835-rng.ko uses GPL-only symbol 'platform_driver_unregister'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NLubomir Rintel <lkundrak@v3.sk>
      Cc: Dom Cobley <popcornmix@gmail.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: linux-rpi-kernel@lists.infradead.org
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      22e8099f
  25. 11 6月, 2013 1 次提交
  26. 05 6月, 2013 2 次提交