1. 20 Jan, 2013 1 commit
  2. 03 Jan, 2013 1 commit
    • Greg Kroah-Hartman's avatar
      Drivers: char: remove __dev* attributes. · bcd2982a
      Greg Kroah-Hartman authored
      
      
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bcd2982a
  3. 21 Nov, 2012 3 commits
  4. 05 Nov, 2012 1 commit
    • Linus Walleij's avatar
      ARM: plat-nomadik: move MTU, kill plat-nomadik · 694e33a7
      Linus Walleij authored
      
      
      This moves the MTU timer driver from arch/arm/plat-nomadik
      to drivers/clocksource and moves the header file to the
      platform_data directory.
      
      As this moves the last file being compiled to an object out
      of arch/arm/plat-nomadik, we have to "turn off the light"
      and delete the plat-nomadik directory, because it is not
      allowed to have an empty Makefile in a plat-* directory.
      This is probably also a desired side effect of depopulating
      the arch/arm directory of drivers. Luckily we have just
      deleted all the <plat/*> include files prior to this so
      by moving the last one we may delete the directory.
      
      After this all the Ux500 and Nomadik device drivers live
      outside of the arch/arm hierarchy.
      
      Cc: Alessandro Rubini <rubini@unipv.it>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      694e33a7
  5. 15 Oct, 2012 1 commit
    • Tony Lindgren's avatar
      ARM: OMAP: Trivial driver changes to remove include plat/cpu.h · 27615a97
      Tony Lindgren authored
      
      
      Drivers should not use cpu_is_omap or cpu_class_is_omap macros,
      they should be private to the platform init code. And we'll be
      removing plat/cpu.h and only have a private soc.h for the
      arch/arm/*omap* code.
      
      This patch is intended as preparation for the core omap changes
      and removes the need to include plat/cpu.h from several drivers.
      This is needed for the ARM common zImage support.
      
      These changes are OK to do because:
      
      - omap-rng.c does not need plat/cpu.h
      
      - omap-aes.c and omap-sham.c get the proper platform_data
        passed to them so they don't need extra checks in the driver
      
      - omap-dma.c and omap-pcm.c can test the arch locally as
        omap1 and omap2 cannot be compiled together because of
        conflicting compiler flags
      
      Cc: Deepak Saxena <dsaxena@plexity.net>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Venkatraman S <svenkatr@ti.com>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: Vinod Koul <vinod.koul@intel.com>
      Cc: Dan Williams <djbw@fb.com>
      Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: linux-crypto@vger.kernel.org
      Cc: linux-mmc@vger.kernel.org
      Cc: alsa-devel@alsa-project.org
      Cc: linux-kernel@vger.kernel.org
      [tony@atomide.com: mmc changes folded in to an earlier patch]
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      27615a97
  6. 23 Sep, 2012 3 commits
  7. 06 Sep, 2012 2 commits
    • Fabio Estevam's avatar
      hwrng: mxc-rnga - Access data via structure · 821873ab
      Fabio Estevam authored
      
      
      In current driver, everytime we need to access the rng clock
      ,ie to enable or disable it, a call to clk_get is done.
      
      This is not correct and the preferred way is to provide a rng data structure
      that could be used for accessing rng resources.
      Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      821873ab
    • Fabio Estevam's avatar
      hwrng: mxc-rnga - Adapt clocks to new i.mx clock framework · a9ccb7bd
      Fabio Estevam authored
      
      
      Adapt clocks to the new i.mx clock framework and fix the following warning:
      
      ------------[ cut here ]------------
      WARNING: at drivers/clk/clk.c:511 __clk_enable+0x9c/0xac()
      Modules linked in:
      Backtrace:
      [<800124c8>] (dump_backtrace+0x0/0x10c) from [<804172dc>] (dump_stack+0x18/0x1c)
       r7:00000009 r6:000001ff r5:8032cb50 r4:00000000
      [<804172c4>] (dump_stack+0x0/0x1c) from [<80021834>] (warn_slowpath_common+0x54)
      [<800217e0>] (warn_slowpath_common+0x0/0x6c) from [<80021870>] (warn_slowpath_n)
       r9:80581cac r8:8700a9c0 r7:805ab070 r6:80000013 r5:806133d4
      r4:8700a9c0
      [<8002184c>] (warn_slowpath_null+0x0/0x2c) from [<8032cb50>] (__clk_enable+0x9c)
      [<8032cab4>] (__clk_enable+0x0/0xac) from [<8032cb88>] (clk_enable+0x28/0x44)
       r5:806133d4 r4:8700a9c0
      [<8032cb60>] (clk_enable+0x0/0x44) from [<80560f14>] (mxc_rnga_probe+0x68/0x164)
       r7:805ab070 r6:8706ec00 r5:80611314 r4:00000000
      [<80560eac>] (mxc_rnga_probe+0x0/0x164) from [<8025914c>] (platform_drv_probe+0)
      [<8025912c>] (platform_drv_probe+0x0/0x24) from [<80257c7c>] (driver_probe_devi)
      [<80257bfc>] (driver_probe_device+0x0/0x204) from [<80257e94>] (__driver_attach)
       r9:80581cac r8:0000008e r7:00000000 r6:8706ec3c r5:805ab070
      r4:8706ec08
      [<80257e00>] (__driver_attach+0x0/0x98) from [<8025642c>] (bus_for_each_dev+0x6)
       r7:00000000 r6:80257e00 r5:87035e98 r4:805ab070
      [<802563c4>] (bus_for_each_dev+0x0/0x94) from [<80257adc>] (driver_attach+0x20/)
       r7:00000000 r6:873f2380 r5:805ab338 r4:805ab070
      [<80257abc>] (driver_attach+0x0/0x28) from [<80256d50>] (bus_add_driver+0x18c/0)
      [<80256bc4>] (bus_add_driver+0x0/0x268) from [<802584c4>] (driver_register+0x80)
      [<80258444>] (driver_register+0x0/0x134) from [<802594f4>] (platform_driver_reg)
       r7:00000000 r6:805c2e00 r5:00000007 r4:805ab05c
      [<802594a8>] (platform_driver_register+0x0/0x60) from [<80259528>] (platform_dr)
      [<80259508>] (platform_driver_probe+0x0/0xa4) from [<80560ea0>] (mod_init+0x18/)
       r7:00000000 r6:805c2e00 r5:00000007 r4:87034000
      [<80560e88>] (mod_init+0x0/0x24) from [<800086b4>] (do_one_initcall+0x40/0x194)
      [<80008674>] (do_one_initcall+0x0/0x194) from [<8053d3f4>] (kernel_init+0xfc/0x)
      [<8053d2f8>] (kernel_init+0x0/0x1cc) from [<80027190>] (do_exit+0x0/0x7ec)
      ---[ end trace 4198eed02050f461 ]---
      Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      a9ccb7bd
  8. 22 Aug, 2012 1 commit
  9. 20 Aug, 2012 1 commit
  10. 10 Aug, 2012 1 commit
    • Arnd Bergmann's avatar
      omap-rng: fix use of SIMPLE_DEV_PM_OPS · 59596df6
      Arnd Bergmann authored
      
      
      omap_rng_suspend and omap_rng_resume are unused if CONFIG_PM is enabled
      but CONFIG_PM_SLEEP is disabled. I found this while building all defconfig
      files on ARM. It's not clear to me if this is the right solution, but
      at least it makes the code consistent again.
      
      Without this patch, building omap1_defconfig results in:
      
      drivers/char/hw_random/omap-rng.c:165:12: warning: 'omap_rng_suspend' defined but not used [-Wunused-function]
      drivers/char/hw_random/omap-rng.c:171:12: warning: 'omap_rng_resume' defined but not used [-Wunused-function]
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKevin Hilman <khilman@ti.com>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      59596df6
  11. 29 Jul, 2012 4 commits
  12. 24 Jul, 2012 1 commit
  13. 10 Jul, 2012 2 commits
  14. 27 Jun, 2012 1 commit
  15. 11 Jun, 2012 1 commit
    • Peter Korsgaard's avatar
      hwrng: atmel-rng - fix data valid check · c475c06f
      Peter Korsgaard authored
      
      
      Brown paper bag: Data valid is LSB of the ISR (status register), and NOT
      of ODATA (current random data word)!
      
      With this, rngtest is a lot happier. Before:
      
      rngtest 3
      Copyright (c) 2004 by Henrique de Moraes Holschuh
      This is free software; see the source for copying conditions.  There is NO warr.
      
      rngtest: starting FIPS tests...
      rngtest: bits received from input: 20000032
      rngtest: FIPS 140-2 successes: 3
      rngtest: FIPS 140-2 failures: 997
      rngtest: FIPS 140-2(2001-10-10) Monobit: 604
      rngtest: FIPS 140-2(2001-10-10) Poker: 996
      rngtest: FIPS 140-2(2001-10-10) Runs: 36
      rngtest: FIPS 140-2(2001-10-10) Long run: 0
      rngtest: FIPS 140-2(2001-10-10) Continuous run: 117
      rngtest: input channel speed: (min=622.371; avg=23682.481; max=28224.350)Kibitss
      rngtest: FIPS tests speed: (min=12.361; avg=12.718; max=12.861)Mibits/s
      rngtest: Program run time: 2331696 microsecondsx
      
      After:
      rngtest 3
      Copyright (c) 2004 by Henrique de Moraes Holschuh
      This is free software; see the source for copying conditions.  There is NO warr.
      
      rngtest: starting FIPS tests...
      rngtest: bits received from input: 20000032
      rngtest: FIPS 140-2 successes: 999
      rngtest: FIPS 140-2 failures: 1
      rngtest: FIPS 140-2(2001-10-10) Monobit: 0
      rngtest: FIPS 140-2(2001-10-10) Poker: 0
      rngtest: FIPS 140-2(2001-10-10) Runs: 1
      rngtest: FIPS 140-2(2001-10-10) Long run: 0
      rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
      rngtest: input channel speed: (min=777.363; avg=43588.270; max=47870.711)Kibitss
      rngtest: FIPS tests speed: (min=11.943; avg=12.716; max=12.844)Mibits/s
      rngtest: Program run time: 1955282 microseconds
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      Reported-by: default avatarGeorge Pontis <GPontis@z9.com>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c475c06f
  16. 31 May, 2012 1 commit
    • Peter Korsgaard's avatar
      hwrng: atmel-rng - fix race condition leading to repeated bits · 121daad8
      Peter Korsgaard authored
      
      
      Data valid gets cleared by reading the ISR (status register) and NOT from
      reading ODATA (data register). A new data word can become available between
      checking ISR and reading ODATA, causing us to reuse the same data word next
      time atmel_trng_read() gets called, if that happens before the following
      data word is ready.
      
      With this fixed, rngtest no longer complains of 'Continous run' errors.
      Before:
      
      rngtest -c 1000 < /dev/hwrng
      rngtest 3
      Copyright (c) 2004 by Henrique de Moraes Holschuh
      This is free software; see the source for copying conditions.  There is NO warr.
      
      rngtest: starting FIPS tests...
      rngtest: bits received from input: 20000032
      rngtest: FIPS 140-2 successes: 923
      rngtest: FIPS 140-2 failures: 77
      rngtest: FIPS 140-2(2001-10-10) Monobit: 0
      rngtest: FIPS 140-2(2001-10-10) Poker: 0
      rngtest: FIPS 140-2(2001-10-10) Runs: 1
      rngtest: FIPS 140-2(2001-10-10) Long run: 0
      rngtest: FIPS 140-2(2001-10-10) Continuous run: 76
      rngtest: input channel speed: (min=721.402; avg=46003.510; max=49321.338)Kibitss
      rngtest: FIPS tests speed: (min=11.442; avg=12.714; max=12.801)Mibits/s
      rngtest: Program run time: 1931860 microseconds
      
      After:
      
      rngtest -c 1000 < /dev/hwrng
      rngtest 3
      Copyright (c) 2004 by Henrique de Moraes Holschuh
      This is free software; see the source for copying conditions.  There is NO warr.
      
      rngtest: starting FIPS tests...
      rngtest: bits received from input: 20000032
      rngtest: FIPS 140-2 successes: 1000
      rngtest: FIPS 140-2 failures: 0
      rngtest: FIPS 140-2(2001-10-10) Monobit: 0
      rngtest: FIPS 140-2(2001-10-10) Poker: 0
      rngtest: FIPS 140-2(2001-10-10) Runs: 0
      rngtest: FIPS 140-2(2001-10-10) Long run: 0
      rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
      rngtest: input channel speed: (min=777.518; avg=36988.482; max=43115.342)Kibitss
      rngtest: FIPS tests speed: (min=11.951; avg=12.715; max=12.887)Mibits/s
      rngtest: Program run time: 2035543 microseconds
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      Reported-by: default avatarGeorge Pontis <GPontis@z9.com>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      121daad8
  17. 13 May, 2012 1 commit
  18. 30 Apr, 2012 1 commit
  19. 26 Apr, 2012 1 commit
  20. 16 Apr, 2012 1 commit
  21. 16 Mar, 2012 1 commit
  22. 24 Feb, 2012 1 commit
  23. 12 Jan, 2012 1 commit
    • Julia Lawall's avatar
      hwrng: tx4939 - use devm_request_and_ioremap · d0b03c5f
      Julia Lawall authored
      Reimplement a call to devm_request_mem_region followed by a call to ioremap
      or ioremap_nocache by a call to devm_request_and_ioremap.
      
      The semantic patch that makes this transformation is as follows:
      (http://coccinelle.lip6.fr/
      
      )
      
      // <smpl>
      @nm@
      expression myname;
      identifier i;
      @@
      
      struct platform_driver i = { .driver = { .name = myname } };
      
      @@
      expression dev,res,size;
      expression nm.myname;
      @@
      
      -if (!devm_request_mem_region(dev, res->start, size,
      -                              \(res->name\|dev_name(dev)\|myname\))) {
      -   ...
      -   return ...;
      -}
      ... when != res->start
      (
      -devm_ioremap(dev,res->start,size)
      +devm_request_and_ioremap(dev,res)
      |
      -devm_ioremap_nocache(dev,res->start,size)
      +devm_request_and_ioremap(dev,res)
      )
      ... when any
          when != res->start
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      d0b03c5f
  24. 11 Jan, 2012 1 commit
  25. 30 Nov, 2011 1 commit
  26. 22 Nov, 2011 1 commit
  27. 02 Nov, 2011 1 commit
  28. 31 Oct, 2011 1 commit
  29. 10 Oct, 2011 1 commit
  30. 28 Jul, 2011 1 commit
  31. 07 Jul, 2011 1 commit