1. 14 3月, 2017 1 次提交
    • N
      ARM: at91: pm: cpu_idle: switch DDR to power-down mode · 60b89f19
      Nicolas Ferre 提交于
      On some DDR controllers, compatible with the sama5d3 one,
      the sequence to enter/exit/re-enter the self-refresh mode adds
      more constrains than what is currently written in the at91_idle
      driver. An actual access to the DDR chip is needed between exit
      and re-enter of this mode which is somehow difficult to implement.
      This sequence can completely hang the SoC. It is particularly
      experienced on parts which embed a L2 cache if the code run
      between IDLE calls fits in it...
      
      Moreover, as the intention is to enter and exit pretty rapidly
      from IDLE, the power-down mode is a good candidate.
      
      So now we use power-down instead of self-refresh. As we can
      simplify the code for sama5d3 compatible DDR controllers,
      we instantiate a new sama5d3_ddr_standby() function.
      Signed-off-by: NNicolas Ferre <nicolas.ferre@microchip.com>
      Cc: <stable@vger.kernel.org> # v4.1+
      Fixes: 017b5522 ("ARM: at91: Add new binding for sama5d3-ddramc")
      Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
      60b89f19
  2. 11 1月, 2017 1 次提交
  3. 21 6月, 2016 1 次提交
  4. 18 2月, 2016 3 次提交
  5. 05 12月, 2015 1 次提交
  6. 05 9月, 2015 1 次提交
    • V
      genalloc: add name arg to gen_pool_get() and devm_gen_pool_create() · 73858173
      Vladimir Zapolskiy 提交于
      This change modifies gen_pool_get() and devm_gen_pool_create() client
      interfaces adding one more argument "name" of a gen_pool object.
      
      Due to implementation gen_pool_get() is capable to retrieve only one
      gen_pool associated with a device even if multiple gen_pools are created,
      fortunately right at the moment it is sufficient for the clients, hence
      provide NULL as a valid argument on both producer devm_gen_pool_create()
      and consumer gen_pool_get() sides.
      
      Because only one created gen_pool per device is addressable, explicitly
      add a restriction to devm_gen_pool_create() to create only one gen_pool
      per device, this implies two possible error codes returned by the
      function, account it on client side (only misc/sram).  This completes
      client side changes related to genalloc updates.
      
      [akpm@linux-foundation.org: gen_pool_get() cleanup]
      Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      73858173
  7. 28 7月, 2015 1 次提交
  8. 01 7月, 2015 1 次提交
    • V
      genalloc: rename dev_get_gen_pool() to gen_pool_get() · 0030edf2
      Vladimir Zapolskiy 提交于
      To be consistent with other genalloc interface namings, rename
      dev_get_gen_pool() to gen_pool_get().  The original omitted "dev_" prefix
      is removed, since it points to argument type of the function, and so it
      does not bring any useful information.
      
      [akpm@linux-foundation.org: update arch/arm/mach-socfpga/pm.c]
      Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
      Cc: Vinod Koul <vinod.koul@intel.com>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Alan Tull <atull@opensource.altera.com>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Kevin Hilman <khilman@linaro.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0030edf2
  9. 20 5月, 2015 1 次提交
  10. 06 4月, 2015 1 次提交
  11. 19 3月, 2015 2 次提交
  12. 13 3月, 2015 6 次提交
  13. 12 3月, 2015 1 次提交
  14. 04 3月, 2015 1 次提交
  15. 19 2月, 2015 1 次提交
  16. 02 2月, 2015 2 次提交
  17. 26 1月, 2015 1 次提交
  18. 17 1月, 2015 4 次提交
  19. 02 12月, 2014 1 次提交
  20. 27 11月, 2014 1 次提交
  21. 25 8月, 2014 1 次提交
  22. 20 8月, 2014 1 次提交
  23. 08 5月, 2014 1 次提交
  24. 20 12月, 2013 1 次提交
  25. 13 12月, 2013 1 次提交
  26. 02 12月, 2013 1 次提交
  27. 17 10月, 2013 1 次提交
    • D
      ARM: at91: cpuidle: Convert to platform driver · 5ad945ea
      Daniel Lezcano 提交于
      Using the platform driver model is a good way to separate the cpuidle specific
      code from the low level pm code. It allows to remove the dependency between
      these two components.
      
      The platform_device is located in the pm code and a 'set' function has been
      added to set the standby function from the AT91_SOC_START initialization
      function. Each SoC with a cpuidle driver will set the standby function in the
      platform_data field at init time. Then pm code will register the cpuidle
      platform device.
      
      The cpuidle driver will register the platform_driver and use the device's
      platform_data as a standby callback in the idle path.
      
      The at91_pm_enter function contains a { if then else } based on cpu_is_xx
      similar to what was in cpuidle. This is considered dangerous when adding a new
      SoC. Like the cpuidle driver, a standby ops is defined and assigned when the
      SoC init function specifies what is its standby function and reused in the
      at91_pm_enter's 'case' block.
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com>
      5ad945ea
  28. 21 6月, 2013 1 次提交