]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sata_promise: PHYMODE4 fixup
authorMikael Pettersson <mikpe@it.uu.se>
Fri, 1 Dec 2006 09:55:58 +0000 (10:55 +0100)
committerJeff Garzik <jeff@garzik.org>
Sun, 3 Dec 2006 13:05:14 +0000 (08:05 -0500)
commitd381f9492100ff92dcef0c4f41e4ef889bc61462
treeccadf142dd726377376ecaf1df9ecf355b1237e3
parenta45169e25e06b4e6b24827e621a4db22058de398
[PATCH] sata_promise: PHYMODE4 fixup

This patch adds code to fix up the PHYMODE4 "align timing"
register value on second-generation Promise SATA chips.
Failure to correct this value on non-x86 machines makes
drive detection prone to failure due to timeouts. (I've
observed about 50% detection failure rates on SPARC64.)

The HW boots with a bad value in this register, but on x86
machines the Promise BIOS corrects it to the value recommended
by the manual, so most people have been unaffected by this issue.

After developing the patch I checked Promise's SATAII driver,
and discovered that it also corrects PHYMODE4 just like this
patch does.

This patch depends on the sata_promise SATAII updates
patch I sent recently.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_promise.c