1. 20 8月, 2014 1 次提交
  2. 17 6月, 2014 1 次提交
  3. 01 6月, 2014 1 次提交
  4. 30 4月, 2014 1 次提交
  5. 15 4月, 2014 1 次提交
  6. 23 2月, 2014 1 次提交
  7. 16 1月, 2014 1 次提交
  8. 13 1月, 2014 1 次提交
  9. 28 11月, 2013 1 次提交
  10. 24 11月, 2013 1 次提交
  11. 17 10月, 2013 1 次提交
  12. 26 9月, 2013 1 次提交
  13. 05 9月, 2013 1 次提交
    • M
      spi/pxa2xx: check status register as well to determine if the device is off · 269e4a41
      Mika Westerberg 提交于
      The current interrupt handler calls pm_runtime_suspended() to check if the
      device is suspended or not. However, runtime PM status of the device is
      only set to suspended once all PM runtime suspend hooks have executed.
      
      In case of Intel Lynxpoint we have the device bound to the ACPI power
      domain and its runtime suspend hook will put the device to D3hot (or D3cold
      if possible). This means that the device is powered off before its state is
      set to runtime suspended. While in this state the device might get an
      interrupt that is meant for another device (as the interrupt line is
      shared), and because the device is powered off accessing its registers will
      return 0xffffffff that the driver misinterprets as an invalid state.
      
      When this happens user will see messages like below on the console:
      
        pxa2xx-spi INT33C0:00: bad message state in interrupt handler
      
      Fix this by checking the status register for ~0 and returning IRQ_NONE in
      that case.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      269e4a41
  14. 30 7月, 2013 1 次提交
  15. 15 7月, 2013 1 次提交
  16. 21 6月, 2013 1 次提交
    • M
      spi/pxa2xx: fix memory corruption due to wrong size used in devm_kzalloc() · cc0ee987
      Mika Westerberg 提交于
      ACPI part of the driver accidentally used sizeof(*ssp) instead of the
      correct sizeof(*pdata). This leads to nasty memory corruptions like the one
      below:
      
          BUG: unable to handle kernel paging request at 0000000749fd30b8
          IP: [<ffffffff813fe8a1>] __list_del_entry+0x31/0xd0
          PGD 0
          Oops: 0000 [#1] PREEMPT SMP
          Modules linked in:
          CPU: 0 PID: 30 Comm: kworker/0:1 Not tainted 3.10.0-rc6v3.10-rc6_sdhci_modprobe+ #443
          task: ffff8801483a0940 ti: ffff88014839e000 task.ti: ffff88014839e000
          RIP: 0010:[<ffffffff813fe8a1>]  [<ffffffff813fe8a1>] __list_del_entry+0x31/0xd0
          RSP: 0000:ffff88014839fde8  EFLAGS: 00010046
          RAX: ffff880149fd30b0 RBX: ffff880149fd3040 RCX: dead000000200200
          RDX: 0000000749fd30b0 RSI: ffff880149fd3058 RDI: ffff88014834d640
          RBP: ffff88014839fde8 R08: ffff88014834d640 R09: 0000000000000001
          R10: ffff8801483a0940 R11: 0000000000000001 R12: ffff880149fd3040
          R13: ffffffff810e0b30 R14: ffff8801483a0940 R15: ffff88014834d640
          FS:  0000000000000000(0000) GS:ffff880149e00000(0000) knlGS:0000000000000000
          CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
          CR2: 0000000000000168 CR3: 0000000001e0b000 CR4: 00000000001407f0
          DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
          DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
          Stack:
           ffff88014839fe48 ffffffff810e0baf ffffffff81120abd ffff88014839fe20
           ffff8801483a0940 ffff8801483a0940 ffff8801483a0940 ffff8801486b1c90
           ffff88014834d640 ffffffff810e0b30 0000000000000000 0000000000000000
          Call Trace:
           [<ffffffff810e0baf>] worker_thread+0x7f/0x390
           [<ffffffff81120abd>] ? trace_hardirqs_on+0xd/0x10
           [<ffffffff810e0b30>] ? manage_workers.isra.22+0x2b0/0x2b0
           [<ffffffff810e6c09>] kthread+0xd9/0xe0
           [<ffffffff810f93df>] ? local_clock+0x3f/0x50
           [<ffffffff810e6b30>] ? kthread_create_on_node+0x110/0x110
           [<ffffffff818c5dec>] ret_from_fork+0x7c/0xb0
           [<ffffffff810e6b30>] ? kthread_create_on_node+0x110/0x110
      
      Fix this by using the right structure size in devm_kzalloc().
      Reported-by: NJerome Blin <jerome.blin@intel.com>
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      Cc: stable@vger.kernel.org # 3.9+
      cc0ee987
  17. 30 5月, 2013 1 次提交
  18. 13 5月, 2013 4 次提交
  19. 08 4月, 2013 1 次提交
  20. 02 4月, 2013 1 次提交
  21. 13 3月, 2013 1 次提交
  22. 08 2月, 2013 6 次提交
  23. 26 1月, 2013 3 次提交
  24. 08 1月, 2013 1 次提交
    • M
      spi/pxa2xx: embed the ssp_device to platform data · 851bacf5
      Mika Westerberg 提交于
      The spi-pxa2xx-pci glue driver had to implement pxa_ssp_request()/free() in
      order to support the spi-pxa2xx platform driver. Since the ACPI enabled
      platforms can use the same platform driver we would need to implement
      pxa_ssp_request()/free() in some central place that can be shared by the
      ACPI and PCI glue code.
      
      Instead of doing that we can make pxa_ssp_request()/free() to be available
      only when CONFIG_ARCH_PXA is set. On other arches these are being stubbed
      out in preference to passing the ssp_device from the platform data
      directly.
      
      We also change the SPI bus number to be taken from ssp->port_id instead of
      platform device id. This way the supporting code that passes the ssp can
      decide the number (or it can set it to the same as pdev->id).
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      851bacf5
  25. 08 12月, 2012 1 次提交
  26. 06 6月, 2011 1 次提交
  27. 08 4月, 2011 1 次提交
  28. 31 3月, 2011 1 次提交
  29. 22 1月, 2011 1 次提交
  30. 03 12月, 2010 1 次提交