aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-04-13 12:50:00 -0400
committerJeff Garzik <jgarzik@redhat.com>2009-04-16 15:22:18 -0400
commit62afe5d744047df8ff15a369f4c1ebad71c937d4 (patch)
tree58c3558ca4e39c0f2f6d25e0cccbf9b89eaabf3b /drivers/ata
parent20cbf5f8c0fe3df2ddbde1f334993b4dda18a651 (diff)
libata: use ATA_ID_CFA_*
Use ATA_ID_CFA_* constants for CFA specific identify data words 162 and 163. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index a61af3818c84..17c5d48a75d2 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1656,8 +1656,8 @@ unsigned long ata_id_xfermask(const u16 *id)
1656 /* 1656 /*
1657 * Process compact flash extended modes 1657 * Process compact flash extended modes
1658 */ 1658 */
1659 int pio = id[163] & 0x7; 1659 int pio = (id[ATA_ID_CFA_MODES] >> 0) & 0x7;
1660 int dma = (id[163] >> 3) & 7; 1660 int dma = (id[ATA_ID_CFA_MODES] >> 3) & 0x7;
1661 1661
1662 if (pio) 1662 if (pio)
1663 pio_mask |= (1 << 5); 1663 pio_mask |= (1 << 5);
@@ -2426,7 +2426,8 @@ int ata_dev_configure(struct ata_device *dev)
2426 /* ATA-specific feature tests */ 2426 /* ATA-specific feature tests */
2427 if (dev->class == ATA_DEV_ATA) { 2427 if (dev->class == ATA_DEV_ATA) {
2428 if (ata_id_is_cfa(id)) { 2428 if (ata_id_is_cfa(id)) {
2429 if (id[162] & 1) /* CPRM may make this media unusable */ 2429 /* CPRM may make this media unusable */
2430 if (id[ATA_ID_CFA_KEY_MGMT] & 1)
2430 ata_dev_printk(dev, KERN_WARNING, 2431 ata_dev_printk(dev, KERN_WARNING,
2431 "supports DRM functions and may " 2432 "supports DRM functions and may "
2432 "not be fully accessable.\n"); 2433 "not be fully accessable.\n");