pata_hpt3x2n: check channel enable bits
authorSergey Shtylyov <s.shtylyov@omp.ru>
Mon, 7 Feb 2022 14:26:13 +0000 (17:26 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sat, 19 Feb 2022 02:18:42 +0000 (11:18 +0900)
commita565ed1b9b1dc11cabed10e1c7c1b245c8db1aef
tree52593d9c3b90f9567513eb90d53818442cfef939
parentec87cf3782f7b05ae15e061d36c763c35488f292
pata_hpt3x2n: check channel enable bits

The driver's prereset() method still doesn't check the channel enable bits.
The bug was there for the entire time the driver has existed. :-/

Alan Cox fixed the HPT37x driver in commit b5bf24b94c65 ("[PATCH] hpt37x:
Check the enablebits") 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