Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344419
b: refs/heads/master
c: de90cd7
h: refs/heads/master
i:
  344417: 0f5348e
  344415: b9509cb
v: v3
  • Loading branch information
Shane Huang authored and Jeff Garzik committed Dec 3, 2012
1 parent 2db05ea commit f074c80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: 0d0cdb028f9d9771e2b346038707734121f906e3
refs/heads/master: de90cd71f68e947d3bd6c3f2ef5731ead010a768
3 changes: 1 addition & 2 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2330,9 +2330,8 @@ int ata_dev_configure(struct ata_device *dev)

/* Obtain SATA Settings page from Identify Device Data Log,
* which contains DevSlp timing variables etc.
* Exclude old devices with ata_id_has_ncq()
*/
if (ata_id_has_ncq(dev->id)) {
if (ata_id_has_hw_feature_ctrl(dev->id)) {
err_mask = ata_read_log_page(dev,
ATA_LOG_SATA_ID_DEV_DATA,
ATA_LOG_SATA_SETTINGS,
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 @@ -593,6 +593,7 @@ static inline int ata_is_data(u8 prot)
#define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20)
#define ata_id_has_da(id) ((id)[ATA_ID_SATA_CAPABILITY_2] & (1 << 4))
#define ata_id_has_devslp(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 8))
#define ata_id_has_hw_feature_ctrl(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 5))

static inline bool ata_id_has_hipm(const u16 *id)
{
Expand Down

0 comments on commit f074c80

Please sign in to comment.