1. 14 Jul, 2008 4 commits
    • Stefan Richter's avatar
      firewire: fw-sbp2: spin disks down on suspend and shutdown · 2635f96f
      Stefan Richter authored
      This instructs sd_mod to send START STOP UNIT on suspend and resume,
      and on driver unbinding or unloading (including when the system is shut
      down).
      
      We don't do this though if multiple initiators may log in to the target.
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      Tested-by: default avatarTino Keitel <tino.keitel@gmx.de>
      2635f96f
    • Stefan Richter's avatar
      ieee1394: sbp2: fix spindown for PL-3507 and TSB42AA9 firmwares · 3719122a
      Stefan Richter authored
      Reported by Tino Keitel:  PL-3507 with firmware from Prolific does not
      spin down the disk on START STOP UNIT with power condition = 0 and start
      = 0.  It does however work with power condition = 2 or 3.
      
      Also found while investigating this:  DViCO Momobay CX-1 and FX-3A (TI
      TSB42AA9/A based) become unresponsive after START STOP UNIT with power
      condition = 0 and start = 0.  They stay responsive if power condition is
      set when stopping the motor.
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      3719122a
    • Stefan Richter's avatar
      firewire: fw-sbp2: fix spindown for PL-3507 and TSB42AA9 firmwares · ffcaade3
      Stefan Richter authored
      Reported by Tino Keitel:  PL-3507 with firmware from Prolific does not
      spin down the disk on START STOP UNIT with power condition = 0 and start
      = 0.  It does however work with power condition = 2 or 3.
      
      Also found while investigating this:  DViCO Momobay CX-1 and FX-3A (TI
      TSB42AA9/A based) become unresponsive after START STOP UNIT with power
      condition = 0 and start = 0.  They stay responsive if power condition is
      set when stopping the motor.
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      Tested-by: default avatarTino Keitel <tino.keitel@gmx.de>
      ffcaade3
    • Stefan Richter's avatar
      scsi: sd: optionally set power condition in START STOP UNIT · d2886ea3
      Stefan Richter authored
      Adds a new scsi_device flag, start_stop_pwr_cond:  If enabled, the sd
      driver will not send plain START STOP UNIT commands but ones with the
      power condition field set to 3 (standby) or 1 (active) respectively.
      
      Some FireWire disk firmwares do not stop the motor if power condition is
      zero.  Or worse, they become unresponsive after a START STOP UNIT with
      power condition = 0 and start = 0.
      
      http://lkml.org/lkml/2008/4/29/704
      
      This patch only adds the necessary code to sd_mod but doesn't activate
      it.  Follow-up patches to the FireWire drivers will add detection of
      affected devices and enable the code for them.
      
      I did not add power condition values to scsi_error.c::scsi_eh_try_stu()
      for now.  The three firmwares which suffer from above mentioned problems
      do not need START STOP UNIT in the error handler, and they are not
      adversely affected by START STOP UNIT with power condition = 0 and start
      = 1 (like scsi_eh_try_stu() sends it if scsi_device.allow_restart is
      enabled).
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      Tested-by: default avatarTino Keitel <tino.keitel@gmx.de>
      d2886ea3
  2. 13 Jul, 2008 6 commits
  3. 12 Jul, 2008 17 commits
  4. 11 Jul, 2008 12 commits
  5. 10 Jul, 2008 1 commit