1. 09 5月, 2007 2 次提交
  2. 08 5月, 2007 1 次提交
  3. 07 5月, 2007 2 次提交
  4. 05 5月, 2007 3 次提交
    • F
      CUDA ADB fixes · 0251c38c
      Finn Thain 提交于
      Fix the flakiness in the CUDA ADB driver on m68k macs (keypresses getting
      wedged down or ADB just going AWOL altogether).
      
      The only IRQ used by this driver is the VIA shift register IRQ. The PowerMac
      conditional code disables the other VIA IRQ sources, so don't mess with the
      other IRQ flags in the common code -- m68k macs need them.
      
      When polling, don't disable local interrupts when we only need to disable the
      CUDA interrupt.
      
      Unless polling, don't clear the shift register IRQ flag. On m68k macs this
      creates a race that often breaks CUDA ADB.
      
      Tested on Quadra 840av and LC630 (both m68k); also Beige G3 (powerpc).
      Signed-off-by: NFinn Thain <fthain@telegraphics.com.au>
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0251c38c
    • F
      m68k: Mac II ADB fixes · d95fd5fc
      Finn Thain 提交于
      Fix a crash caused by requests placed in the queue with the completed flag
      already set. This lead to some ADB_SYNC requests returning early and their
      request structs being popped off the stack while still queued. Stack corruption
      ensued or an invalid request callback pointer was invoked or both. Eliminate
      macii_retransmit() and its buggy implementation of macii_write(). Have
      macii_queue_poll() fully initialise the request queues.
      
      Fix a bug in macii_queue_poll() where the last_req pointer was not being set.
      This caused some requests to leave the queue before being completed (and would
      also corrupt the stack under certain conditions).
      
      Fix a race in macii_start that could set the state machine to "reading" while
      current_req was null.
      
      No longer send poll commands with the ADBREQ_REPLY flag -- doing that caused
      the replies to be stored in the request buffer where they were forgotten
      about.
      
      Don't autopoll by continuously sending new Talk commands. Get the controller to
      do that for us. This reduces the ADB interrupt rate on an idle bus to about 5
      per second. Only autopoll the devices that were probed.
      
      Explicitly clear the interrupt flag when polling.
      
      Use disable_irq rather than local_irq_save when polling.
      
      Remove excess local_irq_save/restore pairs.
      
      Improve bus timeout and service request detection.
      
      Remove unused code (last_reply, adb_dir etc) and unneeded code (prefix_len,
      first_byte etc).
      
      Change TIP and TACK to their correct names on this ADB controller (ST_EVEN and
      ST_ODD).
      
      Add some commentry.
      
      Add a generous quantity of sanity checks (BUG_ONs).
      
      Let m68k macs use the adb_sync boot param too.
      
      Tested on Mac II, Mac IIci, Quadra 650, Quadra 700 etc.
      Signed-off-by: NFinn Thain <fthain@telegraphics.com.au>
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d95fd5fc
    • F
      m68k: pmu_queue_request() declaration conflict · bff832cd
      Finn Thain 提交于
      Fixes a "static qualifier follows non-static qualifier" error from gcc 4.
      Signed-off-by: NFinn Thain <fthain@telegraphics.com.au>
      Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bff832cd
  5. 02 5月, 2007 4 次提交
  6. 27 4月, 2007 1 次提交
  7. 26 4月, 2007 1 次提交
  8. 24 4月, 2007 4 次提交
  9. 18 4月, 2007 1 次提交
  10. 13 4月, 2007 5 次提交
  11. 26 3月, 2007 1 次提交
  12. 08 3月, 2007 1 次提交
  13. 20 2月, 2007 4 次提交
  14. 15 2月, 2007 3 次提交
  15. 13 2月, 2007 3 次提交
  16. 12 2月, 2007 1 次提交
  17. 10 2月, 2007 2 次提交
  18. 08 2月, 2007 1 次提交