1. 04 Oct, 2005 1 commit
    • Jeff Garzik's avatar
      [libata] improve device scan even more · 3f19ee8c
      Jeff Garzik authored
      Since our max_lun is unconditionally set to 1, we might as well
      hardcode a LUN 0 probe, rather than a wildcard LUN scan.
      
      The ide-scsi driver sets max_lun to a value greater than under
      certain conditions:
      
              if ((drive->id->last_lun & 0x7) != 7)
                      host->max_lun = (drive->id->last_lun & 0x7) + 1;
              else
                      host->max_lun = 1;
      
      last_lun is Word 126 of IDENTIFY PACKET DEVICE, marked as obsolete
      and undocumented in non-ancient specs.  We'll leave it out for now.
      Should the need arise to support multi-LUN ATAPI devices, we'll
      probably want to add the above code.
      
      Finally, there have been reports of REPORT LUNS commands locking up
      ATAPI drives.  Eliminating the wildcard LUN scan could help reduce
      the trouble from problematic drives.
      3f19ee8c
  2. 03 Oct, 2005 1 commit
    • Jeff Garzik's avatar
      [libata] improve device scan · 644dd0cc
      Jeff Garzik authored
      Replace SCSI's legacy "bang at the door" method of probing with one
      directly controlled by the underlying ATA transport layer.
      
      We now only call scsi_scan_target() for devices we find, rather than
      probing every possible channel/id within a certain range.
      644dd0cc
  3. 23 Sep, 2005 38 commits