pata_hpt3x2n: fix writing to wrong register in hpt3x2n_bmdma_stop()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Mon, 7 Feb 2022 20:32:20 +0000 (23:32 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sat, 19 Feb 2022 02:18:42 +0000 (11:18 +0900)
commit5dfb84982ed2e3a77d42f912625c275bc0e82f91
tree2de29cec184565334ef08ac26a8fd2b98259cbcf
parenta565ed1b9b1dc11cabed10e1c7c1b245c8db1aef
pata_hpt3x2n: fix writing to wrong register in hpt3x2n_bmdma_stop()

The driver's bmdma_stop() method writes to the wrong PCI config register
(0x52 intead of 0x54) when trying to clear the state machine on secondary
channel -- "luckily", the write falls on a read-only part of the primary
channel MISC. control 3 register, so no collateral damage is done...

Alan Cox fixed the HPT37x driver in commit 6929da4427b4 ("[PATCH] hpt37x:
Two important bug fixes") but forgot to check the HPT3x2N driver which has
the same bug. :-/

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_hpt3x2n.c