Re: [patch 2/2] libata: _SDD support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kristen Carlson Accardi wrote:
+	/* Don't continue if not a SATA device. */
+	if (!ata_id_is_sata(atadev->id)) {
+		if (ata_msg_probe(ap))
+			ata_dev_printk(atadev, KERN_DEBUG,
+				"%s: ata_id_is_sata is False\n", __FUNCTION__);
+		goto out;
+	}

I forgot to note this in patch #1, so this comment applies to both patch #1 and patch #2:

ata_id_is_sata() is probably not the check you want. This tests Word 93 of IDENTIFY DEVICE output, which is a check that's not in the ATA specification, but rather something I came up with. It will indicate false for ATA devices that attach via SATA cables, but have a PATA bridge chip soldered onto the ATA device.

A better test is probably "ap->cbl == ATA_CBL_SATA".


+EXPORT_SYMBOL_GPL(ata_acpi_push_id);

Remove the export, this is for exporting symbols to export kernel modules, not for making symbols visible at the C level, to other C modules.

	Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux