ata: pata_hpt37x: fix PCI clock detection
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 19 Feb 2022 20:04:29 +0000 (23:04 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 22 Feb 2022 00:39:57 +0000 (09:39 +0900)
commit5f6b0f2d037c8864f20ff15311c695f65eb09db5
treef8d64ca82b6b072d3e14695c684167d1531d8be4
parentc8ea23d5fa59f28302d4e3370c75d9c308e64410
ata: pata_hpt37x: fix PCI clock detection

The f_CNT register (at the PCI config. address 0x78) is 16-bit, not
8-bit! The bug was there from the very start... :-(

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Fixes: 669a5db411d8 ("[libata] Add a bunch of PATA drivers.")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_hpt37x.c