1. 08 11月, 2011 2 次提交
  2. 11 10月, 2011 2 次提交
  3. 30 9月, 2011 1 次提交
  4. 28 9月, 2011 1 次提交
    • P
      Bluetooth: Allow ACL packets over USB in HCI_RAW mode · 9fd481e0
      Peter Hurley 提交于
      Removed tests which prevent transmission of ACL packets
      when the device is in HCI_RAW mode. These tests verified that
      there are ACL or LE links currently tracked by the HCI
      connection manager. However, a HCI_RAW mode device does not
      use the connection manager. In these circumstances, the connection
      counts will be zero, and thus, transmitted ACL packets dropped.
      
      The acl_num test is actually a vestige of a previous bulk URB
      scheme that is no longer used by this driver (bulk URBs were not
      started until at least one ACL connection was created). This was
      incompatible with some endpoint implementations and was dropped -
      see commit 43c2e57f.
      
      The utility of these tests is marginal - currently, the hci tx
      scheduler cannot send an ACL or LE packet for an untracked connection
      (except if the device is in HCI_RAW mode).
      
      Lastly, no other transport layer driver enforces these same tests.
      Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
      Acked-by: NAcked-by: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      9fd481e0
  5. 18 9月, 2011 3 次提交
  6. 12 8月, 2011 2 次提交
  7. 02 7月, 2011 1 次提交
  8. 11 6月, 2011 1 次提交
  9. 10 6月, 2011 1 次提交
  10. 04 6月, 2011 1 次提交
    • L
      Revert "tty: make receive_buf() return the amout of bytes received" · 55db4c64
      Linus Torvalds 提交于
      This reverts commit b1c43f82.
      
      It was broken in so many ways, and results in random odd pty issues.
      
      It re-introduced the buggy schedule_work() in flush_to_ldisc() that can
      cause endless work-loops (see commit a5660b41: "tty: fix endless
      work loop when the buffer fills up").
      
      It also used an "unsigned int" return value fo the ->receive_buf()
      function, but then made multiple functions return a negative error code,
      and didn't actually check for the error in the caller.
      
      And it didn't actually work at all.  BenH bisected down odd tty behavior
      to it:
        "It looks like the patch is causing some major malfunctions of the X
         server for me, possibly related to PTYs.  For example, cat'ing a
         large file in a gnome terminal hangs the kernel for -minutes- in a
         loop of what looks like flush_to_ldisc/workqueue code, (some ftrace
         data in the quoted bits further down).
      
         ...
      
         Some more data: It -looks- like what happens is that the
         flush_to_ldisc work queue entry constantly re-queues itself (because
         the PTY is full ?) and the workqueue thread will basically loop
         forver calling it without ever scheduling, thus starving the consumer
         process that could have emptied the PTY."
      
      which is pretty much exactly the problem we fixed in a5660b41.
      
      Milton Miller pointed out the 'unsigned int' issue.
      Reported-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Reported-by: NMilton Miller <miltonm@bga.com>
      Cc: Stefan Bigler <stefan.bigler@keymile.com>
      Cc: Toby Gray <toby.gray@realvnc.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      55db4c64
  11. 12 5月, 2011 1 次提交
  12. 06 5月, 2011 1 次提交
  13. 23 4月, 2011 1 次提交
  14. 13 4月, 2011 4 次提交
  15. 01 4月, 2011 2 次提交
  16. 31 3月, 2011 1 次提交
  17. 25 3月, 2011 2 次提交
  18. 24 2月, 2011 2 次提交
  19. 18 2月, 2011 1 次提交
  20. 17 2月, 2011 4 次提交
  21. 12 2月, 2011 1 次提交
  22. 08 2月, 2011 1 次提交
    • R
      Bluetooth: ath3k: Avoid duplication of code · 84f0e17f
      Rogério Brito 提交于
      In commit 86e09287, to reduce memory
      usage, the functions of the ath3k module were rewritten to release the
      firmware blob after it has been loaded (successfully or not).
      
      The resuting code has some redundancy and the compiler can potentially
      produce better code if we omit a function call that is unconditionally
      executed in
      
      ,----
      |     if (ath3k_load_firmware(udev, firmware)) {
      |             release_firmware(firmware);
      |             return -EIO;
      |     }
      |     release_firmware(firmware);
      |
      |     return 0;
      | }
      `----
      
      It may also be argued that the rewritten code becomes easier to read,
      and also to see the code coverage of the snippet in question.
      Signed-off-by: NRogério Brito <rbrito@ime.usp.br>
      Cc: Alexander Holler <holler@ahsoftware.de>
      Cc: "Gustavo F. Padovan" <padovan@profusion.mobi>
      Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      84f0e17f
  23. 27 1月, 2011 1 次提交
  24. 20 1月, 2011 1 次提交
  25. 19 1月, 2011 1 次提交
  26. 08 12月, 2010 1 次提交