Re: ALI 1543 broken in 2.3.99-pre9 and above

From: Peter Steiner (p.steiner@t-online.de)
Date: Mon May 29 2000 - 07:55:30 EST


Jan Niehusmann <list005@gondor.com> wrote:

>So either we need another if(m5229_revision < or > something... ),
>or we need some other way to detect validity of the 80pin detecion bits.

If I understood Andre correctly, there's a validity bit that should be
consulted:

>-------------------------
--- alim15x3.c~ Fri May 26 18:33:11 2000
+++ alim15x3.c Fri May 26 18:41:42 2000
@@ -372,10 +372,9 @@
         struct hd_driveid *id = drive->id;
         ide_hwif_t *hwif = HWIF(drive);
         byte speed = 0x00;
- byte ultra66 = ((hwif->udma_four) && (id->hw_config & 0x2000)) ? 1 : 0;
+ byte ultra66 = ((hwif->udma_four) &&
+ ((id->hw_config & 0x6000)==0x6000)) ? 1 : 0;
         int rval;
 
         if ((id->dma_ultra & 0x0010) && (ultra66) && (ultra33)) {
                 speed = XFER_UDMA_4;
>-------------------------

Peter

-- 
  _   x    ___   p.steiner@t-online.de (Peter Steiner)
 / \_/_\_ /,--' Linux User #55148 (http://counter.li.org/)
 \/>'~~~~//
   \_____/ perl -e'while(<>){s/=\n//g;s/=([\dA-F]{2})/chr(hex($1))/eg;print;}'

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:21 EST