Commit a52865c2 authored by Alan's avatar Alan Committed by Jeff Garzik

libata hpt3xn: Hopefully sort out the DPLL logic versus the vendor code

Rather than ending up with two layers of negation jut rename the variable
and lose one.
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 6a40da02
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <linux/libata.h> #include <linux/libata.h>
#define DRV_NAME "pata_hpt3x2n" #define DRV_NAME "pata_hpt3x2n"
#define DRV_VERSION "0.3" #define DRV_VERSION "0.3.2"
enum { enum {
HPT_PCI_FAST = (1 << 31), HPT_PCI_FAST = (1 << 31),
...@@ -297,11 +297,11 @@ static int hpt3x2n_pair_idle(struct ata_port *ap) ...@@ -297,11 +297,11 @@ static int hpt3x2n_pair_idle(struct ata_port *ap)
return 0; return 0;
} }
static int hpt3x2n_use_dpll(struct ata_port *ap, int reading) static int hpt3x2n_use_dpll(struct ata_port *ap, int writing)
{ {
long flags = (long)ap->host->private_data; long flags = (long)ap->host->private_data;
/* See if we should use the DPLL */ /* See if we should use the DPLL */
if (reading == 0) if (writing)
return USE_DPLL; /* Needed for write */ return USE_DPLL; /* Needed for write */
if (flags & PCI66) if (flags & PCI66)
return USE_DPLL; /* Needed at 66Mhz */ return USE_DPLL; /* Needed at 66Mhz */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment