1. 11 10月, 2010 1 次提交
  2. 05 10月, 2010 1 次提交
    • D
      Input: wacom - fix runtime PM related deadlock · f6cd3783
      Dmitry Torokhov 提交于
      When runtime PM is enabled by default for input devices, X hangs in
      wacom open:
      [<ffffffff814a00ea>] mutex_lock+0x1a/0x40
      [<ffffffffa02bc94b>] wacom_resume+0x3b/0x90 [wacom]
      [<ffffffff81327a32>] usb_resume_interface+0xd2/0x190
      [<ffffffff81327b5d>] usb_resume_both+0x6d/0x110
      [<ffffffff81327c24>] usb_runtime_resume+0x24/0x40
      [<ffffffff8130a2cf>] __pm_runtime_resume+0x26f/0x450
      [<ffffffff8130a23a>] __pm_runtime_resume+0x1da/0x450
      [<ffffffff8130a53a>] pm_runtime_resume+0x2a/0x50
      [<ffffffff81328176>] usb_autopm_get_interface+0x26/0x60
      [<ffffffffa02bc626>] wacom_open+0x36/0x90 [wacom]
      
      wacom_open() takes wacom->lock and calls usb_autopm_get_interface(),
      which in turn calls wacom_resume() which tries to acquire the lock
      again.
      
      The fix is to call usb_autopm_get_interface() first, before we take
      the lock.
      
      Since we do not do usb_autopm_put_interface() until wacom_close()
      is called runtime PM is effectively disabled for the driver, however
      changing it now would risk regressions so the complete fix will
      have to wait till the next merge window.
      Reported-by: NJiri Slaby <jslaby@suse.cz>
      Acked-by: NOliver Neukum <oneukum@suse.de>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      f6cd3783
  3. 30 9月, 2010 1 次提交
  4. 12 9月, 2010 5 次提交
  5. 06 9月, 2010 5 次提交
  6. 02 9月, 2010 1 次提交
  7. 29 8月, 2010 1 次提交
    • M
      Input: wacom - fix mousewheel handling for old wacom tablets · d9f66c1a
      Mike Auty 提交于
      This fixes a regression introduced in
      3b57ca0f.
      
      The data[6] byte contains either 1 or -1 depending on the whether the
      mouse wheel on older wacom tablets is moved down (1) or up (-1).  The
      patch introduced in the above commit changed the cast from (signed char)
      to (signed).  When cast as a signed integer and negated, the value of -1
      (stored in the byte as 0xff) became -255 rather than 1.  This patch
      reverts the cast to a (signed char) and also removes an unnecessary
      (signed) cast, as all the values operated on are bitmasked.
      Signed-off-by: NMike Auty <ikelos@gentoo.org>
      Reviewed-by: NPing Cheng <pingc@wacom.com>
      Cc; stable@kernel.org
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      d9f66c1a
  8. 03 8月, 2010 1 次提交
  9. 28 6月, 2010 1 次提交
  10. 23 6月, 2010 1 次提交
  11. 04 6月, 2010 1 次提交
  12. 21 5月, 2010 1 次提交
  13. 21 4月, 2010 7 次提交
  14. 16 4月, 2010 1 次提交
  15. 14 4月, 2010 10 次提交
  16. 05 3月, 2010 1 次提交
  17. 02 3月, 2010 1 次提交