1. 25 9月, 2012 2 次提交
    • T
      NFC: Don't use WQ_MEM_RECLAIM for pn533 · 58637c9b
      Tejun Heo 提交于
      NFC driver doesn't sit in memory reclaim path and has no reason to use
      WQ_MEM_RECLAIM.  Drop WQ_MEM_RECLAIM from pn533->wq and use
      alloc_ordered_workqueue() instead of WQ_UNBOUND w/ max_active == 1.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      58637c9b
    • S
      NFC: Queue pn533 commands · 5d50b364
      Samuel Ortiz 提交于
      Instead of returning EBUSY when getting a command while another one is
      running, we queue them. Upon completion of the pending command, the next
      one is processed.
      Besides the fact that it simplifies the pn533 locking scheme, it also
      comes with the nice side effect of fixing the following warning:
      
      [   82.274297] =====================================
      [   82.274297] [ BUG: bad unlock balance detected! ]
      [   82.274298] 3.5.0-rc1+ #1 Not tainted
      [   82.274299] -------------------------------------
      [   82.274300] kworker/u:1/16 is trying to release lock (&dev->cmd_lock) at:
      [   82.274305] [<ffffffff8144f246>] mutex_unlock+0x9/0xb
      [   82.274305] but there are no more locks to release!
      [   82.274306]
      [   82.274306] other info that might help us debug this:
      [   82.274306] 2 locks held by kworker/u:1/16:
      [   82.274311]  #0:  (pn533){.+.+..}, at: [<ffffffff8103a67d>]
      +process_one_work+0x145/0x2e2
      [   82.274314]  #1:  ((&dev->cmd_work)){+.+...}, at: [<ffffffff8103a67d>]
      +process_one_work+0x145/0x2e2
      [   82.274314]
      [   82.274314] stack backtrace:
      [   82.274315] Pid: 16, comm: kworker/u:1 Not tainted 3.5.0-rc1+ #1
      [   82.274315] Call Trace:
      [   82.274317]  [<ffffffff8144f246>] ? mutex_unlock+0x9/0xb
      [   82.274321]  [<ffffffff81059841>] print_unlock_inbalance_bug+0xda/0xe4
      [   82.274323]  [<ffffffff8105c74c>] lock_release_non_nested+0xb2/0x232
      [   82.274325]  [<ffffffff8105a61e>] ? mark_held_locks+0x6d/0x95
      [   82.274326]  [<ffffffff8144f246>] ? mutex_unlock+0x9/0xb
      [   82.274328]  [<ffffffff81451105>] ? _raw_spin_unlock_irqrestore+0x40/0x5c
      [   82.274329]  [<ffffffff8144f246>] ? mutex_unlock+0x9/0xb
      [   82.274330]  [<ffffffff8105ca42>] lock_release+0x176/0x1ac
      [   82.274333]  [<ffffffff8123de14>] ? pn533_send_complete+0xa8/0xa8
      [   82.274334]  [<ffffffff8144f1d6>] __mutex_unlock_slowpath+0xb0/0x117
      [   82.274336]  [<ffffffff8144f246>] mutex_unlock+0x9/0xb
      [   82.274337]  [<ffffffff8123de65>] pn533_wq_cmd_complete+0x51/0x55
      [   82.274338]  [<ffffffff8103a6db>] process_one_work+0x1a3/0x2e2
      [   82.274340]  [<ffffffff8103a67d>] ? process_one_work+0x145/0x2e2
      [   82.274341]  [<ffffffff8103b119>] worker_thread+0xcf/0x153
      [   82.274343]  [<ffffffff8103b04a>] ? manage_workers.isra.22+0x16b/0x16b
      [   82.274344]  [<ffffffff8103b04a>] ? manage_workers.isra.22+0x16b/0x16b
      [   82.274346]  [<ffffffff8103eb11>] kthread+0x95/0x9d
      [   82.274348]  [<ffffffff81452ef4>] kernel_thread_helper+0x4/0x10
      [   82.274351]  [<ffffffff81046561>] ? finish_task_switch+0x45/0xc3
      [   82.274352]  [<ffffffff814514f0>] ? retint_restore_args+0x13/0x13
      [   82.274353]  [<ffffffff8103ea7c>] ? __init_kthread_worker+0x55/0x55
      [   82.274354]  [<ffffffff81452ef0>] ? gs_change+0x13/0x13
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      5d50b364
  2. 10 7月, 2012 3 次提交
  3. 05 6月, 2012 15 次提交
  4. 16 5月, 2012 2 次提交
  5. 13 4月, 2012 2 次提交
  6. 07 3月, 2012 6 次提交
  7. 15 12月, 2011 3 次提交
  8. 01 12月, 2011 1 次提交
  9. 19 11月, 2011 1 次提交
    • G
      USB: convert some miscellanies drivers to use module_usb_driver() · fe748483
      Greg Kroah-Hartman 提交于
      This converts the remaining USB drivers in the kernel to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Till Harbaum <till@harbaum.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
      Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fe748483
  10. 21 9月, 2011 2 次提交
  11. 25 8月, 2011 1 次提交
  12. 27 7月, 2011 1 次提交
  13. 06 7月, 2011 1 次提交