Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143483
b: refs/heads/master
c: 62afe5d
h: refs/heads/master
i:
  143481: a9be423
  143479: 62121d3
v: v3
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed Apr 16, 2009
1 parent 7cc704a commit 4f287e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20cbf5f8c0fe3df2ddbde1f334993b4dda18a651
refs/heads/master: 62afe5d744047df8ff15a369f4c1ebad71c937d4
7 changes: 4 additions & 3 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,8 @@ unsigned long ata_id_xfermask(const u16 *id)
/*
* Process compact flash extended modes
*/
int pio = id[163] & 0x7;
int dma = (id[163] >> 3) & 7;
int pio = (id[ATA_ID_CFA_MODES] >> 0) & 0x7;
int dma = (id[ATA_ID_CFA_MODES] >> 3) & 0x7;

if (pio)
pio_mask |= (1 << 5);
Expand Down Expand Up @@ -2426,7 +2426,8 @@ int ata_dev_configure(struct ata_device *dev)
/* ATA-specific feature tests */
if (dev->class == ATA_DEV_ATA) {
if (ata_id_is_cfa(id)) {
if (id[162] & 1) /* CPRM may make this media unusable */
/* CPRM may make this media unusable */
if (id[ATA_ID_CFA_KEY_MGMT] & 1)
ata_dev_printk(dev, KERN_WARNING,
"supports DRM functions and may "
"not be fully accessable.\n");
Expand Down

0 comments on commit 4f287e1

Please sign in to comment.