]> git.baikalelectronics.ru Git - kernel.git/commit
hpt366: fix PCI clock detection for HPT374 (take 4)
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 11 Sep 2007 20:28:35 +0000 (22:28 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 11 Sep 2007 20:28:35 +0000 (22:28 +0200)
commit3d0a413af7269bfd2fb20d9ad4cc70a66f31ff7d
treebdbb37d76378bd9e96ef716130c253211ea0c46d
parent746d5a6bf10dd2adcd3ca625835b6b6bcb428aaf
hpt366: fix PCI clock detection for HPT374 (take 4)

HPT374 BIOS seems to only save f_CNT register value for the function #0 before
re-tuning DPLL (that causes the driver to report obviously distorted f_CNT for
the function #1) -- fix this by always reading the saved f_CNT register value
from the function #0 in the driver's init_chipset() method.
While at it, introduce 'chip_type' for holding the 'struct hpt_info' field
of the same name and replace the structure assignment with memcpy()...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/hpt366.c