1. 22 9月, 2017 1 次提交
  2. 19 6月, 2017 1 次提交
    • J
      NFC: fix broken device allocation · 20777bc5
      Johan Hovold 提交于
      Commit 7eda8b8e ("NFC: Use IDR library to assing NFC devices IDs")
      moved device-id allocation and struct-device initialisation from
      nfc_allocate_device() to nfc_register_device().
      
      This broke just about every nfc-device-registration error path, which
      continue to call nfc_free_device() that tries to put the device
      reference of the now uninitialised (but zeroed) struct device:
      
      kobject: '(null)' (ce316420): is not initialized, yet kobject_put() is being called.
      
      The late struct-device initialisation also meant that various work
      queues whose names are derived from the nfc device name were also
      misnamed:
      
        421 root         0 SW<  [(null)_nci_cmd_]
        422 root         0 SW<  [(null)_nci_rx_w]
        423 root         0 SW<  [(null)_nci_tx_w]
      
      Move the id-allocation and struct-device initialisation back to
      nfc_allocate_device() and fix up the single call site which did not use
      nfc_free_device() in its error path.
      
      Fixes: 7eda8b8e ("NFC: Use IDR library to assing NFC devices IDs")
      Cc: stable <stable@vger.kernel.org>     # 3.8
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      20777bc5
  3. 30 12月, 2015 1 次提交
  4. 27 10月, 2015 1 次提交
  5. 03 2月, 2015 1 次提交
  6. 27 1月, 2015 2 次提交
  7. 15 3月, 2014 2 次提交
  8. 24 2月, 2014 1 次提交
  9. 04 1月, 2014 2 次提交
    • S
      NFC: Only warn on SE discovery error · a434c240
      Samuel Ortiz 提交于
      SE discovery errors are currently overwriting the dev_up() return error.
      This is wrong for many reasons:
      
      - We don't want to report an error if we actually brought the device up
        but it failed to discover SEs. By doing so we pretend we don't have an
        NFC functional device even we do. The only thing we could not do was
        checking for SEs availability. This is the false negative case.
      
      - In some cases the actual device power up failed but the SE discovery
        succeeded. Userspace then believes the device is up while it's not.
        This is the false positive case.
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      a434c240
    • A
      NFC: Fix target mode p2p link establishment · d31652a2
      Arron Wang 提交于
      With commit e29a9e2a, we set the active_target pointer from
      nfc_dep_link_is_up() in order to support the case where the target
      detection and the DEP link setting are done atomically by the driver.
      That can only happen in initiator mode, so we need to check for that
      otherwise we fail to bring a p2p link in target mode.
      Signed-off-by: NArron Wang <arron.wang@intel.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      d31652a2
  10. 11 12月, 2013 1 次提交
  11. 25 9月, 2013 2 次提交
  12. 14 8月, 2013 4 次提交
  13. 31 7月, 2013 1 次提交
  14. 14 6月, 2013 7 次提交
  15. 12 4月, 2013 1 次提交
  16. 11 4月, 2013 1 次提交
  17. 07 2月, 2013 1 次提交
  18. 10 1月, 2013 2 次提交
  19. 27 10月, 2012 4 次提交
  20. 03 10月, 2012 1 次提交
    • L
      workqueue: avoid using deprecated functions · 916082b0
      Linus Torvalds 提交于
      The network merge brought in a few users of functions that got
      deprecated by the workqueue cleanups: the 'system_nrt_wq' is now the
      same as the regular system_wq, since all workqueues are now non-
      reentrant.
      
      Similarly, remove one use of flush_work_sync() - the regular
      flush_work() has become synchronous, and the "_sync()" version is thus
      deprecated as being superfluous.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      916082b0
  21. 25 9月, 2012 1 次提交
    • T
      NFC: Use system_nrt_wq instead of custom ones · 474fee3d
      Tejun Heo 提交于
      NFC is using a number of custom ordered workqueues w/ WQ_MEM_RECLAIM.
      WQ_MEM_RECLAIM is unnecessary unless NFC is gonna be used as transport
      for storage device, and all use cases match one work item to one
      ordered workqueue - IOW, there's no actual ordering going on at all
      and using system_nrt_wq gives the same behavior.
      
      There's nothing to be gained by using custom workqueues.  Use
      system_nrt_wq instead and drop all the custom ones.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      474fee3d
  22. 10 7月, 2012 2 次提交