]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Strict checking for identify reporting
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 22 Aug 2007 22:31:43 +0000 (23:31 +0100)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:37 +0000 (14:55 -0400)
commit6a7dce36527e5506b39f10c6619518bcb6b8db50
tree837cb89920034e7983b483f1d8db5fb96c454414
parent1e6bbfcc93b81bd7eb483c7bb38061845a355192
libata: Strict checking for identify reporting

The ATA specifications require checks on certain flags before assuming
the validity of other data. Go through the methods and correct those
needing extra checks. Also note limits on ata_id_major_version with
respect to ATA-1 and ATA-2. Correct the 32bit PIO check.

Wants to sit in -mm for a bit in case of a screwup on my part that I
didn't hit on the test drives and also in case someone, somewhere has
a drive that gets it wrong.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/ata.h