1. 22 3月, 2006 4 次提交
  2. 12 3月, 2006 1 次提交
  3. 28 2月, 2006 1 次提交
  4. 20 2月, 2006 1 次提交
  5. 13 2月, 2006 3 次提交
  6. 12 2月, 2006 1 次提交
    • T
      [PATCH] libata: convert assert(X)'s in libata core layer to WARN_ON(!X)'s · a4631474
      Tejun Heo 提交于
      In an effort to kill libata-specific assert() and use generic
      WARN_ON(), this patch converts all assert(X)'s in libata core layer to
      WARN_ON(!X)'s.  Most conversions are straight-forward logical negation
      exception for the followings.
      
      * In libata-core.c:ata_fill_sg(),
        assert(qc->n_elem > 0) is converted to WARN_ON(qc->n_elem == 0) because
        qc->n_elem is unsigned and unsigned <= 0 is weird.
      
      * In libata-scsi.c:ata_gen_ata_desc/fixed_sense(),
        assert(NULL != qc->ap->ops->tf_read) is converted to
        WARN_ON(qc->ap->ops->tf_read == NULL), as there are no other users of
        'constant cond var' style in libata.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      a4631474
  7. 10 2月, 2006 3 次提交
  8. 09 2月, 2006 2 次提交
  9. 30 1月, 2006 1 次提交
  10. 29 1月, 2006 1 次提交
    • R
      Various libata documentation updates. · c893a3ae
      Randy Dunlap 提交于
      This is a merger of libata docs + cleanups from
      Martin Waitz <tali@admingilde.org> and me.
      
      From: Randy Dunlap <rdunlap@xenotime.net>
      From: Martin Waitz <tali@admingilde.org>
      
      Fix libata kernel-doc comments to match code.
      Add some function parameters to kernel-doc.
      Fix some typos/spellos.
      Put comments in <= 80 columns.
      Make one DPRINTK string unique.
      Fix sparse cast warnings.
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      c893a3ae
  11. 27 1月, 2006 4 次提交
  12. 07 1月, 2006 1 次提交
    • J
      [PATCH] Suspend support for libata · 9b847548
      Jens Axboe 提交于
      This patch adds suspend patch to libata, and ata_piix in particular. For
      most low level drivers, they should just need to add the 4 hooks to
      work. As I can only test ata_piix, I didn't enable it for more
      though.
      
      Suspend support is the single most important feature on a notebook, and
      most new notebooks have sata drives. It's quite embarrassing that we
      _still_ do not support this. Right now, it's perfectly possible to
      suspend the drive in mid-transfer.
      Signed-off-by: NJens Axboe <axboe@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9b847548
  13. 06 1月, 2006 1 次提交
  14. 24 12月, 2005 1 次提交
    • T
      [PATCH] fix libata inquiry VPD for ATAPI devices · fd71da46
      Tony Battersby 提交于
      The following patch prevents libata from incorrectly modifying inquiry
      VPD pages and command support data from ATAPI devices.  I have tested
      the patch with a SATA ATAPI tape drive on an AHCI controller.
      
      Patch is against kernel 2.4.32 with 2.4.32-libata1.patch applied.
      
      Anthony J. Battersby
      Cybernetics
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      fd71da46
  15. 13 12月, 2005 1 次提交
    • J
      [libata] mark certain hardware (or drivers) with a no-atapi flag · 50630195
      Jeff Garzik 提交于
      Some hardware does not support the PACKET command at all.
      Other hardware supports ATAPI, but the driver does something nasty such
      as calling BUG() when an ATAPI command is issued.
      
      For these such cases, we mark them with a new flag, ATA_FLAG_NO_ATAPI.
      
      Initial version contributed by Ben Collins.
      50630195
  16. 06 12月, 2005 1 次提交
  17. 04 12月, 2005 1 次提交
  18. 01 12月, 2005 1 次提交
  19. 15 11月, 2005 1 次提交
    • J
      [libata] REQUEST SENSE handling fixes · c6e6e666
      Jeff Garzik 提交于
      - Move ATAPI check-condition handling out of the timeout handler
      - Use multi-qc-issue feature to issue REQUEST SENSE ATAPI PACKET
        command upon receiving an ATAPI check-condition.
      
      This cleans things up a lot, and eliminates a nasty recursion bug.
      c6e6e666
  20. 14 11月, 2005 1 次提交
  21. 12 11月, 2005 1 次提交
  22. 10 11月, 2005 1 次提交
  23. 09 11月, 2005 1 次提交
  24. 07 11月, 2005 1 次提交
  25. 31 10月, 2005 1 次提交
    • J
      [libata] locking rewrite (== fix) · 005a5a06
      Jeff Garzik 提交于
      A lot of power packed into a little patch.
      
      This change eliminates the sharing between our controller-wide spinlock
      and the SCSI core's Scsi_Host lock.  As the locking in libata was
      already highly compartmentalized, always referencing our own lock, and
      never scsi_host::host_lock.
      
      As a side effect, this change eliminates a deadlock from calling
      scsi_finish_command() while inside our spinlock.
      005a5a06
  26. 30 10月, 2005 1 次提交
    • J
      [libata] change ata_qc_complete() to take error mask as second arg · a7dac447
      Jeff Garzik 提交于
      The second argument to ata_qc_complete() was being used for two
      purposes: communicate the ATA Status register to the completion
      function, and indicate an error.  On legacy PCI IDE hardware, the latter
      is often implicit in the former.  On more modern hardware, the driver
      often completely emulated a Status register value, passing ATA_ERR as an
      indication that something went wrong.
      
      Now that previous code changes have eliminated the need to use drv_stat
      arg to communicate the ATA Status register value, we can convert it to a
      mask of possible error classes.
      
      This will lead to more flexible error handling in the future.
      a7dac447
  27. 29 10月, 2005 1 次提交
  28. 23 10月, 2005 1 次提交
  29. 19 10月, 2005 1 次提交