Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=93104654c4cb64b1fc56f3d021dbc8bc7ea142fc
Commit:     93104654c4cb64b1fc56f3d021dbc8bc7ea142fc
Parent:     ffbcb017371d82abff6de9a714b6df30d56ee896
Author:     Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 16 22:29:53 2007 +0200
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 22:29:53 2007 +0200

    cs5530: always tune PIO
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/pci/cs5530.c |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/drivers/ide/pci/cs5530.c b/drivers/ide/pci/cs5530.c
index e412157..c972eb9 100644
--- a/drivers/ide/pci/cs5530.c
+++ b/drivers/ide/pci/cs5530.c
@@ -1,5 +1,5 @@
 /*
- * linux/drivers/ide/pci/cs5530.c              Version 0.74    Jul 28 2007
+ * linux/drivers/ide/pci/cs5530.c              Version 0.75    Aug 2 2007
  *
  * Copyright (C) 2000                  Andre Hedrick <[EMAIL PROTECTED]>
  * Copyright (C) 2000                  Mark Lord <[EMAIL PROTECTED]>
@@ -270,20 +270,13 @@ static void __devinit init_hwif_cs5530 (ide_hwif_t *hwif)
 
        basereg = CS5530_BASEREG(hwif);
        d0_timings = inl(basereg + 0);
-       if (CS5530_BAD_PIO(d0_timings)) {
-               /* PIO timings not initialized? */
+       if (CS5530_BAD_PIO(d0_timings))
                outl(cs5530_pio_timings[(d0_timings >> 31) & 1][0], basereg + 
0);
-               if (!hwif->drives[0].autotune)
-                       hwif->drives[0].autotune = 1;
-                       /* needs autotuning later */
-       }
-       if (CS5530_BAD_PIO(inl(basereg + 8))) {
-               /* PIO timings not initialized? */
+       if (CS5530_BAD_PIO(inl(basereg + 8)))
                outl(cs5530_pio_timings[(d0_timings >> 31) & 1][0], basereg + 
8);
-               if (!hwif->drives[1].autotune)
-                       hwif->drives[1].autotune = 1;
-                       /* needs autotuning later */
-       }
+
+       hwif->drives[0].autotune = 1;
+       hwif->drives[1].autotune = 1;
 
        if (hwif->dma_base == 0)
                return;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to