ata: pata_hpt37x: fix PCI clock detection
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 19 Feb 2022 20:04:29 +0000 (23:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:33 +0000 (19:12 +0100)
commitb2a3068d5f152c027a4615413e2d162859183bfb
tree8602980b4d9336cf75b51bec8068f7ac4efcefc9
parente0bcd6b5779352aed88f2e538a82a39f1a7715bb
ata: pata_hpt37x: fix PCI clock detection

[ Upstream commit 5f6b0f2d037c8864f20ff15311c695f65eb09db5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/pata_hpt37x.c