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>
Thu, 10 Feb 2022 02:54:51 +0000 (11:54 +0900)
commitd7dd4b3dd411a35f99985424c0f7d37c04ef6413
tree52593d9c3b90f9567513eb90d53818442cfef939
parent0c72a87889d6996a831642b8b77032e8efe07654
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