Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311468
b: refs/heads/master
c: b1354cb
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Jeff Garzik committed Jun 29, 2012
1 parent 16505a8 commit 4de1a38
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a606dac368eed5696fb38e16b1394f1d049c09e9
refs/heads/master: b1354cbb5bfce28f2e1ed28d77b362dfdfca638d
3 changes: 3 additions & 0 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,9 @@ int ata_dev_configure(struct ata_device *dev)
dma_dir_string = ", DMADIR";
}

if (ata_id_has_da(dev->id))
dev->flags |= ATA_DFLAG_DA;

/* print device info to dmesg */
if (ata_msg_drv(ap) && print_info)
ata_dev_info(dev,
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ static inline int ata_is_data(u8 prot)
((u64) (id)[(n) + 0]) )

#define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20)
#define ata_id_has_da(id) ((id)[77] & (1 << 4))

static inline bool ata_id_has_hipm(const u16 *id)
{
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ enum {
ATA_DFLAG_DETACH = (1 << 24),
ATA_DFLAG_DETACHED = (1 << 25),

ATA_DFLAG_DA = (1 << 26), /* device supports Device Attention */

ATA_DEV_UNKNOWN = 0, /* unknown device */
ATA_DEV_ATA = 1, /* ATA device */
ATA_DEV_ATA_UNSUP = 2, /* ATA device (unsupported) */
Expand Down

0 comments on commit 4de1a38

Please sign in to comment.