aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-08-08 09:27:00 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-12 14:55:32 -0400
commit50a99018787aa1aed812e09ad5b27647475656a0 (patch)
tree371cfd54028da85abc8313cd72501541f7c6f06d
parentbaf4fdfaaf5cb9f4fb1c341c8cef60a64e580582 (diff)
libata-core: Document some limits/assumptions about ID_ATA
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/ata/libata-core.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 75ccf46972d8..d2141a04fff1 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1618,6 +1618,9 @@ static u32 ata_pio_mask_no_iordy(const struct ata_device *adev)
1618 * devices. This function also issues ATA_CMD_INIT_DEV_PARAMS 1618 * devices. This function also issues ATA_CMD_INIT_DEV_PARAMS
1619 * for pre-ATA4 drives. 1619 * for pre-ATA4 drives.
1620 * 1620 *
1621 * FIXME: ATA_CMD_ID_ATA is optional for early drives and right
1622 * now we abort if we hit that case.
1623 *
1621 * LOCKING: 1624 * LOCKING:
1622 * Kernel thread context (may sleep) 1625 * Kernel thread context (may sleep)
1623 * 1626 *
@@ -1745,10 +1748,13 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
1745 /* 1748 /*
1746 * The exact sequence expected by certain pre-ATA4 drives is: 1749 * The exact sequence expected by certain pre-ATA4 drives is:
1747 * SRST RESET 1750 * SRST RESET
1748 * IDENTIFY 1751 * IDENTIFY (optional in early ATA)
1749 * INITIALIZE DEVICE PARAMETERS 1752 * INITIALIZE DEVICE PARAMETERS (later IDE and ATA)
1750 * anything else.. 1753 * anything else..
1751 * Some drives were very specific about that exact sequence. 1754 * Some drives were very specific about that exact sequence.
1755 *
1756 * Note that ATA4 says lba is mandatory so the second check
1757 * shoud never trigger.
1752 */ 1758 */
1753 if (ata_id_major_version(id) < 4 || !ata_id_has_lba(id)) { 1759 if (ata_id_major_version(id) < 4 || !ata_id_has_lba(id)) {
1754 err_mask = ata_dev_init_params(dev, id[3], id[6]); 1760 err_mask = ata_dev_init_params(dev, id[3], id[6]);