diff options
| author | Tejun Heo <tj@kernel.org> | 2013-01-23 09:31:01 -0800 | 
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2013-01-23 09:31:01 -0800 | 
| commit | c14afb82ffff5903a701a9fb737ac20f36d1f755 (patch) | |
| tree | 304dcc7b1d7b9a5f564f7e978228e61ef41fbef2 /drivers/ata/libata-core.c | |
| parent | 0fdff3ec6d87856cdcc99e69cf42143fdd6c56b4 (diff) | |
| parent | 1d8549085377674224bf30a368284c391a3ce40e (diff) | |
| download | olio-linux-3.10-c14afb82ffff5903a701a9fb737ac20f36d1f755.tar.xz olio-linux-3.10-c14afb82ffff5903a701a9fb737ac20f36d1f755.zip  | |
Merge branch 'master' into for-3.9-async
To receive f56c3196f251012de9b3ebaff55732a9074fdaae ("async: fix
__lowest_in_progress()").
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
| -rw-r--r-- | drivers/ata/libata-core.c | 22 | 
1 files changed, 13 insertions, 9 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 9e8b99af400..46cd3f4c6aa 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -2325,24 +2325,28 @@ int ata_dev_configure(struct ata_device *dev)  			}  		} -		/* check and mark DevSlp capability */ -		if (ata_id_has_devslp(dev->id)) -			dev->flags |= ATA_DFLAG_DEVSLP; - -		/* Obtain SATA Settings page from Identify Device Data Log, -		 * which contains DevSlp timing variables etc. -		 * Exclude old devices with ata_id_has_ncq() +		/* Check and mark DevSlp capability. Get DevSlp timing variables +		 * from SATA Settings page of Identify Device Data Log.  		 */ -		if (ata_id_has_ncq(dev->id)) { +		if (ata_id_has_devslp(dev->id)) { +			u8 sata_setting[ATA_SECT_SIZE]; +			int i, j; + +			dev->flags |= ATA_DFLAG_DEVSLP;  			err_mask = ata_read_log_page(dev,  						     ATA_LOG_SATA_ID_DEV_DATA,  						     ATA_LOG_SATA_SETTINGS, -						     dev->sata_settings, +						     sata_setting,  						     1);  			if (err_mask)  				ata_dev_dbg(dev,  					    "failed to get Identify Device Data, Emask 0x%x\n",  					    err_mask); +			else +				for (i = 0; i < ATA_LOG_DEVSLP_SIZE; i++) { +					j = ATA_LOG_DEVSLP_OFFSET + i; +					dev->devslp_timing[i] = sata_setting[j]; +				}  		}  		dev->cdb_len = 16;  |