diff options
author | Jeff Garzik <jeff@garzik.org> | 2012-12-14 09:34:01 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-12-14 09:34:01 -0500 |
commit | 8349e5aeaadd160b7cce554a62a05be4b2d894aa (patch) | |
tree | 63025f59280dcf5276e9b551391025481f59ac84 | |
parent | 84043ac26ed120826db8e6198531da888c6e57b0 (diff) |
Revert "libata: check SATA_SETTINGS log with HW Feature Ctrl"
This reverts commit de90cd71f68e947d3bd6c3f2ef5731ead010a768.
Shane Huang writes:
Please suspend this patch because I just received two new
DevSlp drives but found word 78 bit 5 is _not_ set.
I'm checking with the drive vendor whether he gave me
the wrong information. If bit 5 is not the necessary and
sufficient condition, I will implement another patch to
replace ata_device->sata_settings into ->devslp_timing.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | drivers/ata/libata-core.c | 3 | ||||
-rw-r--r-- | include/linux/ata.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 47d59616fe3d..9e8b99af400d 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -2331,8 +2331,9 @@ int ata_dev_configure(struct ata_device *dev) | |||
2331 | 2331 | ||
2332 | /* Obtain SATA Settings page from Identify Device Data Log, | 2332 | /* Obtain SATA Settings page from Identify Device Data Log, |
2333 | * which contains DevSlp timing variables etc. | 2333 | * which contains DevSlp timing variables etc. |
2334 | * Exclude old devices with ata_id_has_ncq() | ||
2334 | */ | 2335 | */ |
2335 | if (ata_id_has_hw_feature_ctrl(dev->id)) { | 2336 | if (ata_id_has_ncq(dev->id)) { |
2336 | err_mask = ata_read_log_page(dev, | 2337 | err_mask = ata_read_log_page(dev, |
2337 | ATA_LOG_SATA_ID_DEV_DATA, | 2338 | ATA_LOG_SATA_ID_DEV_DATA, |
2338 | ATA_LOG_SATA_SETTINGS, | 2339 | ATA_LOG_SATA_SETTINGS, |
diff --git a/include/linux/ata.h b/include/linux/ata.h index 18cbb93fdbca..408da9502177 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h | |||
@@ -593,7 +593,6 @@ static inline int ata_is_data(u8 prot) | |||
593 | #define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20) | 593 | #define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20) |
594 | #define ata_id_has_da(id) ((id)[ATA_ID_SATA_CAPABILITY_2] & (1 << 4)) | 594 | #define ata_id_has_da(id) ((id)[ATA_ID_SATA_CAPABILITY_2] & (1 << 4)) |
595 | #define ata_id_has_devslp(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 8)) | 595 | #define ata_id_has_devslp(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 8)) |
596 | #define ata_id_has_hw_feature_ctrl(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 5)) | ||
597 | 596 | ||
598 | static inline bool ata_id_has_hipm(const u16 *id) | 597 | static inline bool ata_id_has_hipm(const u16 *id) |
599 | { | 598 | { |