]> git.itanic.dy.fi Git - linux-stable/commit
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:01:56 +0000 (19:01 +0100)
commit0b79c5dd7bb56da0c57f8272d1746f8594b4fdac
tree7f7252f4ce46851f71f4a2d7272a9083c9d57be3
parent70959fa1a003cb7c6ed2fd0e0f887125d08b8bf6
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