]> git.baikalelectronics.ru Git - kernel.git/commit
ata_piix: verify SIDPR access before enabling it
authorTejun Heo <htejun@gmail.com>
Thu, 1 May 2008 01:03:08 +0000 (10:03 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 6 May 2008 15:33:53 +0000 (11:33 -0400)
commit6396a4f673987e43bcb8824c1ee38df7397cff67
treeed6f4ef6d78fe448aa8ec782b4eef6f83364aaa5
parenta04cca195e7174c287f00ba8a7cf43f9a8c7b143
ata_piix: verify SIDPR access before enabling it

On certain configurations (certain macbooks), even though all the
conditions for SIDPR access described in the datasheet are met,
actually reading those registers just returns 0 and have no effect on
write.  Verify SIDPR is actually working before enabling it.

This is reported by Ryan Roth in bz#10512.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Ryan Roth <ryan.roth@ch2m.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ata_piix.c