]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Media rotation rate and form factor heuristics
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 May 2009 04:40:35 +0000 (00:40 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 15 May 2009 18:14:56 +0000 (14:14 -0400)
commit3ca02c61cff8419d1fe45217a29a88643aaac341
tree54188630bb30858acf409df5bd07b7f31bf575ec
parent2d61931331503a28b16a9bd483aa4518dd78df64
libata: Media rotation rate and form factor heuristics

This patch provides new heuristics for parsing both the form factor and
media rotation rate ATA IDENFITY words.

The reported ATA version must be 7 or greater and the device must return
values defined as valid in the standard.  Only then are the
characteristics reported to SCSI via the VPD B1 page.

This seems like a reasonable compromise to me considering that we have
been shipping several kernel releases that key off the rotation rate bit
without any version checking whatsoever.  With no complaints so far.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-scsi.c
include/linux/ata.h