aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
Commit message (Collapse)AuthorAgeFilesLines
* libata: const-ification bombing runJeff Garzik2005-10-221-12/+12
| | | | | | | Enforce access rules where appropriate. If the compiler is smart enough, this may buy us an optimization or two as a side effect.
* [PATCH] libata CHS: calculate read/write commands and protocol on the fly ↵Albert Lee2005-10-181-7/+6
| | | | | | | | | | | | | | | (revise #6) - merge ata_prot_to_cmd() and ata_dev_set_protocol() as ata_rwcmd_protocol() - pave road for read/write multiple support - remove usage of pre-cached command and protocol values and call ata_rwcmd_protocol() instead Signed-off-by: Albert Lee <albertcc@tw.ibm.com> ============== Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
* [PATCH] libata CHS: move the initialization of taskfile LBA flags (revise #6)Albert Lee2005-10-181-17/+25
| | | | | | | | | | | move the initialization of taskfile LBA flags "ATA_TFLAG_LBA" and "ATA_TFLAG_LBA48 flags" to the SCSI translation functions Signed-off-by: Albert Lee <albertcc@tw.ibm.com> ============= Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
* [libata scsi] improve scsi error handling with ata_scsi_set_sense()Douglas Gilbert2005-10-091-63/+121
| | | | | | | | | | | | | | - change "xlat" and "fill" actors in libata-scsi so they are responsible for SCSI status and sense data when they return 1. This allows GOOD status or a specialized error to be set. - yield an error for mode sense requests for saved values [sat-r06] - remove static inlines for ata_bad_scsiop() and ata_bad_cdb() which are no longer used Signed-off-by: Douglas Gilbert <dougg@torque.net> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
* [libata scsi] add ata_scsi_set_sense helperDouglas Gilbert2005-10-091-0/+28
| | | | | | | | - add extern ata_scsi_set_sense() to build SCSI fixed sense data and corresponding SCSI status Signed-off-by: Douglas Gilbert <dougg@torque.net> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
* libata: minor cleanupsJeff Garzik2005-10-051-4/+8
| | | | | | | A few code shuffles, to make merging future code easier. Add (DRIVER_SENSE << 24) to certain result codes, as noted by Douglas Gilbert.
* libata: move atapi_request_sense() to libata-scsi moduleJeff Garzik2005-10-051-0/+46
| | | | No content changes, just moving code around.
* libata: ATAPI command completion tweaks and notesJeff Garzik2005-10-051-3/+28
| | | | | | | | | | 1) note urgent bug, that completes command twice 2) only fix up INQUIRY data if the SCSI version is zero (typically indicates ATAPI MMC-ish device) 3) if there is a problem on the ATA bus, don't bother with REQUEST SENSE, just directly handle the error based on Status/Error registers.
* Merge branch 'scsi-scan'Jeff Garzik2005-10-041-0/+16
|\
| * [libata] improve device scan even moreJeff Garzik2005-10-031-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * [libata] improve device scanJeff Garzik2005-10-031-0/+12
| | | | | | | | | | | | | | | | 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.
* | [libata scsi] add CHS support to ata_scsi_start_stop_xlat()Albert Lee2005-10-041-4/+15
| |
* | [libata scsi] tidy up SCSI lba and xfer len calculationsAlbert Lee2005-10-041-64/+115
| | | | | | | | | | move the redundant SCSI lba and transfer length calculation code from ata_scsi_verify_xlat() and ata_scsi_rw_xlat() to common functions.
* | libata: minor whitespace, comment, debug message updatesAlbert Lee2005-10-041-8/+17
| |
* | Merge /spare/repo/linux-2.6/ Jeff Garzik2005-09-081-4/+4
|\ \ | |/
| * [libata] fix ATAPI-enable typoJeff Garzik2005-08-301-1/+1
| | | | | | | | Dumb typo spotted by Mark Lord.
| * [libata] allow ATAPI to be enabled with new atapi_enabled module optionJeff Garzik2005-08-301-4/+4
| | | | | | | | | | | | | | | | ATAPI is getting close to being ready. To increase exposure, we enable the code in the upstream kernel, but default it to off (present behavior). Users must pass atapi_enabled=1 as a module option (if module) or on the kernel command line (if built in) to turn on discovery of their ATAPI devices.
* | Merge libata branch 'chs-support' to latest upstream kernel.Jeff Garzik2005-08-291-21/+91
|\ \ | |/
| * Merge /spare/repo/linux-2.6/Jeff Garzik2005-08-291-0/+66
| |\
| | * [libata scsi] fix read/write translation edge casesJeff Garzik2005-08-271-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bugs for unlikely edge cases noticed by Douglas Gilbert: - When READ(6)/WRITE(6) sector count == 0, treat it as 256 sectors - For other READ(x)/WRITE(x), when sector count == 0, error. We don't support successfully completing zero-length transfers at this time.
| | * [libata scsi] add START STOP UNIT translationDouglas Gilbert2005-08-111-0/+56
| | |
| * | [libata] license change, other bitsJeff Garzik2005-08-281-21/+32
| |/ | | | | | | | | | | | | | | | | | | | | - changes license of all code from OSL+GPL to plain ole GPL - except for NVIDIA, who hasn't yet responded about sata_nv - copyright holders were already contacted privately - adds info in each driver about where hardware/protocol docs may be obtained - where I have made major contributions, updated copyright dates
* | /spare/repo/libata-dev branch 'v2.6.13'Jeff Garzik2005-08-291-5/+12
|\ \ | |/
| * libata: fix EH-related lockup by properly cleaning EH command listTejun Heo2005-08-101-0/+1
| | | | | | | | | | Yet another hack due to the fact that libata is the only user of SCSI's ->eh_strategy_handler() hook.
| * [PATCH] libata fix read capacity handling for more than 2TBPhilip Pokorny2005-06-271-5/+11
| | | | | | | | This is a multi-part message in MIME format.
* | Merge upstream kernel changes into 'C/H/S support' branch of libata.Jeff Garzik2005-06-221-2/+5
|\ \ | |/
| * libata: doc updatesJeff Garzik2005-05-301-1/+1
| |
| * [PATCH] libata: stop setting sdev->host->max_sectors for lba48 drivesJohn W. Linville2005-05-151-1/+4
| | | | | | | | | | | | | | | | Avoid changing sdev->host->max_sectors because it can prevent use of non-lba48 drives on other ports of the same adapter. Signed-off-by: Stuart Hayes <stuart_hayes@Dell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | [libata] C/H/S support, for older devicesAlbert Lee2005-05-121-103/+177
|/
* [PATCH] remove old scsi data direction macros2005-04-181-6/+6
| | | | | | | | | | these have been wrappers for the generic dma direction bits since 2.5.x. This patch converts the few remaining drivers and removes the macros. Arjan noticed there's some hunk in here that shouldn't. Updated patch below: Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
* Linux-2.6.12-rc2Linus Torvalds2005-04-161-0/+1593
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!