1. 23 3月, 2006 1 次提交
  2. 22 3月, 2006 7 次提交
  3. 17 3月, 2006 2 次提交
  4. 13 3月, 2006 2 次提交
  5. 12 3月, 2006 12 次提交
  6. 06 3月, 2006 4 次提交
  7. 04 3月, 2006 4 次提交
  8. 02 3月, 2006 1 次提交
  9. 28 2月, 2006 1 次提交
  10. 21 2月, 2006 4 次提交
    • T
      [PATCH] libata: kill ata_dev_reread_id() · ba70d061
      Tejun Heo 提交于
      Kill now-unused ata_dev_reread_id().
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      ba70d061
    • T
      [PATCH] libata: separate out ata_dev_read_id() · 49016aca
      Tejun Heo 提交于
      Separate out ata_dev_read_id() from ata_dev_identify().  This is the
      first half of splitting ata_dev_identify().  ata_dev_read_id() will
      also be used for revalidation.  This patch does not make any behavior
      change.
      
      ata_dev_read_id() doesn't modify any of libata-internal data
      structures.  It simply reads IDENTIFY page and returns error code on
      failure.  INIT_DEV_PARAMS and EDD wrong class code are also handled by
      this function.
      
      Re-reading IDENTIFY after INIT_DEV_PARAMS is performed by jumping to
      retry: instead of calling ata_dev_reread_id().  This is done because
      1. there's retry label anyway 2. ata_dev_reread_id() cannot be used
      anywhere else so there's no reason to keep it.
      
      This function is probably the place to set transfer mode to PIO0
      before IDENTIFY.  However, reset -> identify -> init_dev_params order
      should be kept for pre-ATA4 devices so we cannot set transfer mode
      before IDENTIFY for them.  How do we know if a device is post-ATA4
      before IDENTIFY?
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      49016aca
    • T
      [PATCH] libata: make ata_sg_setup_one() trim zero length sg · 2e242fa9
      Tejun Heo 提交于
      This patch makes ata_sg_setup_one() trim sg entry (thus making
      qc->n_elem zero) if padding results in zero length sg entry.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      2e242fa9
    • T
      [PATCH] libata: fix WARN_ON() condition in *_fill_sg() · 9ae61c6c
      Tejun Heo 提交于
      For ATAPI commands, padding can reduce qc->n_elem by one and thus to
      zero making assert(qc->n_elem > 0)'s in ata_fill_sg() and qs_fill_sg()
      fail for legal commands.  This patch fixes the assert()'s to take
      qc->pad_len into account.
      
      Although the condition check seems a bit excessive, as this part of
      code isn't still stable yet, I think it's worth to keep those.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      9ae61c6c
  11. 20 2月, 2006 2 次提交