]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: pata_hpt37x: disable primary channel on HPT371
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 19 Feb 2022 17:44:43 +0000 (20:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:38:15 +0000 (11:38 +0100)
commit92cc643567015a21dd91aa7c93968736df0bb80d
tree7ac29203a392d5dc92851fb32320d900b4e10611
parent53d43a9c8dd224e66559fe86af1e473802c7130e
ata: pata_hpt37x: disable primary channel on HPT371

commit 8d093e02e898b24c58788b0289e3202317a96d2a upstream.

The HPT371 chip physically has only one channel, the secondary one,
however the primary channel registers do exist! Thus we have to
manually disable the non-existing channel if the BIOS hasn't done this
already. Similarly to the pata_hpt3x2n driver, always disable the
primary channel.

Fixes: 669a5db411d8 ("[libata] Add a bunch of PATA drivers.")
Cc: stable@vger.kernel.org
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/pata_hpt37x.c