* [PATCH 1/5] pata_hpt3x2n: always stretch UltraDMA timing
@ 2009-12-07 19:25 Sergei Shtylyov
2009-12-08 19:28 ` Bartlomiej Zolnierkiewicz
2009-12-17 6:21 ` Jeff Garzik
0 siblings, 2 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2009-12-07 19:25 UTC (permalink / raw)
To: jgarzik; +Cc: linux-ide, stable, alan
The UltraDMA Tss timing must be stretched with ATA clock of 66 MHz, but the
driver only does this when PCI clock is 66 MHz, whereas it always programs
DPLL clock (which is used as the ATA clock) to 66 MHz.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: <stable@kernel.org>
---
The patch is against the recent Linus' tree. It's intended to go into all
stable kernels up to 2.6.22 -- when HPT371N support was merged.
drivers/ata/pata_hpt3x2n.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Index: linux-2.6/drivers/ata/pata_hpt3x2n.c
===================================================================
--- linux-2.6.orig/drivers/ata/pata_hpt3x2n.c
+++ linux-2.6/drivers/ata/pata_hpt3x2n.c
@@ -25,7 +25,7 @@
#include <linux/libata.h>
#define DRV_NAME "pata_hpt3x2n"
-#define DRV_VERSION "0.3.8"
+#define DRV_VERSION "0.3.9"
enum {
HPT_PCI_FAST = (1 << 31),
@@ -547,16 +547,16 @@ static int hpt3x2n_init_one(struct pci_d
pci_mhz);
/* Set our private data up. We only need a few flags so we use
it directly */
- if (pci_mhz > 60) {
+ if (pci_mhz > 60)
hpriv = (void *)(PCI66 | USE_DPLL);
- /*
- * On HPT371N, if ATA clock is 66 MHz we must set bit 2 in
- * the MISC. register to stretch the UltraDMA Tss timing.
- * NOTE: This register is only writeable via I/O space.
- */
- if (dev->device == PCI_DEVICE_ID_TTI_HPT371)
- outb(inb(iobase + 0x9c) | 0x04, iobase + 0x9c);
- }
+
+ /*
+ * On HPT371N, if ATA clock is 66 MHz we must set bit 2 in
+ * the MISC. register to stretch the UltraDMA Tss timing.
+ * NOTE: This register is only writeable via I/O space.
+ */
+ if (dev->device == PCI_DEVICE_ID_TTI_HPT371)
+ outb(inb(iobase + 0x9c) | 0x04, iobase + 0x9c);
/* Now kick off ATA set up */
return ata_pci_sff_init_one(dev, ppi, &hpt3x2n_sht, hpriv);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/5] pata_hpt3x2n: always stretch UltraDMA timing
2009-12-07 19:25 [PATCH 1/5] pata_hpt3x2n: always stretch UltraDMA timing Sergei Shtylyov
@ 2009-12-08 19:28 ` Bartlomiej Zolnierkiewicz
2009-12-17 6:21 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-12-08 19:28 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: jgarzik, linux-ide, stable, alan
Hi,
On Monday 07 December 2009 08:25:52 pm Sergei Shtylyov wrote:
> The UltraDMA Tss timing must be stretched with ATA clock of 66 MHz, but the
> driver only does this when PCI clock is 66 MHz, whereas it always programs
> DPLL clock (which is used as the ATA clock) to 66 MHz.
>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
I've reviewed those patches and they all look fine to me.
Same with your other HPT3xx pending fixes, namely:
* hpt366: fix clock turnaround
* pata_hpt3x2n: fix clock turnaround
* hpt366: add debounce delay to cable_detect() method
PS everything is in my ATA fixes tree now
--
Bartlomiej Zolnierkiewicz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/5] pata_hpt3x2n: always stretch UltraDMA timing
2009-12-07 19:25 [PATCH 1/5] pata_hpt3x2n: always stretch UltraDMA timing Sergei Shtylyov
2009-12-08 19:28 ` Bartlomiej Zolnierkiewicz
@ 2009-12-17 6:21 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2009-12-17 6:21 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-ide, stable, alan
On 12/07/2009 02:25 PM, Sergei Shtylyov wrote:
> The UltraDMA Tss timing must be stretched with ATA clock of 66 MHz, but the
> driver only does this when PCI clock is 66 MHz, whereas it always programs
> DPLL clock (which is used as the ATA clock) to 66 MHz.
>
> Signed-off-by: Sergei Shtylyov<sshtylyov@ru.mvista.com>
> Cc:<stable@kernel.org>
>
> ---
> The patch is against the recent Linus' tree. It's intended to go into all
> stable kernels up to 2.6.22 -- when HPT371N support was merged.
>
> drivers/ata/pata_hpt3x2n.c | 20 ++++++++++----------
> 1 files changed, 10 insertions(+), 10 deletions(-)
applied 1-5
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-17 6:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 19:25 [PATCH 1/5] pata_hpt3x2n: always stretch UltraDMA timing Sergei Shtylyov
2009-12-08 19:28 ` Bartlomiej Zolnierkiewicz
2009-12-17 6:21 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).