1. 27 8月, 2015 3 次提交
  2. 24 7月, 2015 4 次提交
  3. 01 6月, 2015 8 次提交
  4. 25 5月, 2015 1 次提交
  5. 09 4月, 2015 1 次提交
    • F
      mmc: sdhci-esdhc-imx: Call mmc_of_parse() · 8d86e4fc
      Fabio Estevam 提交于
      Currently it is not possible to use 'mmc-pwrseq-simple' property with this
      driver because mmc_of_parse() is never called.
      
      mmc_of_parse() calls mmc_pwrseq_alloc() that manages MMC power sequence and
      allows passing GPIOs in the devicetree to properly power/reset the Wifi
      chipset.
      
      When using mmc_of_parse() we no longer need to have custom code to request
      card-detect and write-protect pins, as this can now be handled by the mmc
      core.
      
      Tested on a imx6sl-warp board where BT/Wifi is functional and also on a
      imx6q-sabresd.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      8d86e4fc
  6. 25 3月, 2015 1 次提交
  7. 23 3月, 2015 1 次提交
  8. 19 1月, 2015 2 次提交
    • U
      mmc: sdhci-esdhc-imx: Fixup runtime PM conditions during ->probe() · 77903c01
      Ulf Hansson 提交于
      By configure runtime PM prior we enable the use of it, we close the gap
      for strange and unhandled conditions. Moreover it makes us rely on the
      driver core, after finalized ->probe(), to request an inactive device
      to become runtime PM idle/suspended, which earlier potentially could
      happen already at pm_runtime_set_autosuspend_delay().
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      77903c01
    • U
      mmc: sdhci-esdhc-imx: Fixup ->remove() · 0b414368
      Ulf Hansson 提交于
      Since sdhci_remove_host() access the device, we need to make sure it's
      runtime PM resumed.
      
      To handle clock gating properly in remove, we first have to make sure
      the clocks are ungated.
      
      To fix both these issues, by invoking pm_runtime_get_sync() early in
      ->remove() callback. Later once we disabled runtime PM, we can restore
      the usage count.
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      0b414368
  9. 08 12月, 2014 1 次提交
  10. 05 12月, 2014 1 次提交
  11. 10 11月, 2014 1 次提交
  12. 09 9月, 2014 3 次提交
  13. 22 5月, 2014 12 次提交
  14. 14 1月, 2014 1 次提交
    • D
      mmc: sdhci-esdhc-imx: fix warning during module remove function · a7f2be94
      Dong Aisheng 提交于
      Since the clock is managed by runtime pm currently, we do not need
      disable it again during driver remove function, or it will cause
      clock disable count mismatch issue since the clocks have already been disabled.
      
      The issue can be simply reproduced by unbind the devices via sysfs.
      mx6slevk:/sys/bus/platform/drivers/sdhci-esdhc-imx# echo 2194000.usdhc > unbind
      mmc1: card aaaa removed
      ------------[ cut here ]------------
      WARNING: CPU: 0 PID: 657 at drivers/clk/clk.c:842 __clk_disable+0x68/0x88()
      Modules linked in:
      CPU: 0 PID: 657 Comm: sh Not tainted 3.13.0-rc1+ #285
      Backtrace:
      [<80012160>] (dump_backtrace+0x0/0x10c) from [<80012438>] (show_stack+0x18/0x1c)
       r6:80481370 r5:00000000 r4:8088ecc8 r3:00000000
      [<80012420>] (show_stack+0x0/0x1c) from [<80616b14>] (dump_stack+0x84/0x9c)
      [<80616a90>] (dump_stack+0x0/0x9c) from [<80027158>] (warn_slowpath_common+0x70/0x94)
       r5:00000009 r4:00000000
      [<800270e8>] (warn_slowpath_common+0x0/0x94) from [<80027220>] (warn_slowpath_null+0x24/0x2c)
       r8:bec4ff78 r7:0000000e r6:bf91d800 r5:bf81d080 r4:bf81d080
      [<800271fc>] (warn_slowpath_null+0x0/0x2c) from [<80481370>] (__clk_disable+0x68/0x88)
      [<80481308>] (__clk_disable+0x0/0x88) from [<8048148c>] (clk_disable+0x20/0x2c)
       r4:200f0113 r3:bf95ec00
      [<8048146c>] (clk_disable+0x0/0x2c) from [<80463bd8>] (sdhci_esdhc_imx_remove+0x64/0xa4)
       r5:bf81d080 r4:bfabb010
      [<80463b74>] (sdhci_esdhc_imx_remove+0x0/0xa4) from [<8032e82c>] (platform_drv_remove+0x20/0x24)
       r6:808ae0e0 r5:808ae0e0 r4:bf91d810 r3:80463b74
      [<8032e80c>] (platform_drv_remove+0x0/0x24) from [<8032d010>] (__device_release_driver+0x78/0xd0)
      [<8032cf98>] (__device_release_driver+0x0/0xd0) from [<8032d090>] (device_release_driver+0x28/0x34)
       r5:bf91d810 r4:bf91d844
      [<8032d068>] (device_release_driver+0x0/0x34) from [<8032c0c8>] (unbind_store+0x80/0xc4)
       r5:bf91d810 r4:80899ba0
      [<8032c048>] (unbind_store+0x0/0xc4) from [<8032b648>] (drv_attr_store+0x28/0x34)
       r7:bed73100 r6:0000000e r5:00000000 r4:8032b620
      [<8032b620>] (drv_attr_store+0x0/0x34) from [<80140580>] (sysfs_write_file+0x1b0/0x1e4)
      [<801403d0>] (sysfs_write_file+0x0/0x1e4) from [<800dcda0>] (vfs_write+0xb4/0x190)
      [<800dccec>] (vfs_write+0x0/0x190) from [<800dd3e4>] (SyS_write+0x44/0x80)
       r9:0000000e r8:00000000 r7:01a00408 r6:bf3b1c00 r5:00000000
      r4:00000000
      [<800dd3a0>] (SyS_write+0x0/0x80) from [<8000e900>] (ret_fast_syscall+0x0/0x48)
       r9:bec4e000 r8:8000eac4 r7:00000004 r6:76f5fb40 r5:01a00408
      r4:0000000e
      ---[ end trace a0897d268e6233b2 ]---
      
      If without runtime pm, we just run as before to match the clock enable
      in probe function.
      Signed-off-by: NDong Aisheng <b29396@freescale.com>
      Acked-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NChris Ball <chris@printf.net>
      a7f2be94