Matthieu Helder wrote: > I've compiled and installed the 2.6.26.2 kernel. Can you please apply the attached patch and report the resulting detection log? Thanks. -- tejun
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 9bef1a8..6670d4a 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3451,6 +3451,7 @@ int sata_link_debounce(struct ata_link *link, const unsigned long *params, /* DET stable? */ if (cur == last) { + ata_link_printk(link, "XXX debounce: DET stable %x\n", cur); if (cur == 1 && time_before(jiffies, deadline)) continue; if (time_after(jiffies, @@ -3459,6 +3460,7 @@ int sata_link_debounce(struct ata_link *link, const unsigned long *params, continue; } + ata_link_printk(link, "XXX debounce: DET unstable %x\n", cur); /* unstable, start over */ last = cur; last_jiffies = jiffies; diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 3ead02f..a215c2a 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c @@ -615,7 +615,8 @@ static int inic_hardreset(struct ata_link *link, unsigned int *class, struct ata_port *ap = link->ap; void __iomem *port_base = inic_port_base(ap); void __iomem *idma_ctl = port_base + PORT_IDMA_CTL; - const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context); + //const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context); + const unsigned long *timing = sata_deb_timing_long; int rc; /* hammer it into sane state */